[2025-01-15 00:00:05] Production.INFO: next invoice date [2025-01-15 00:00:05] Production.INFO: 2025-02-15 [2025-01-15 00:00:05] Production.INFO: getdaysdiff [2025-01-15 00:00:05] Production.INFO: +31 [2025-01-15 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (146,21,2,31,31,'RMScheduler',2025-01-15 00:00:05,1,0,,,0) [2025-01-15 00:00:05] Production.INFO: next invoice date [2025-01-15 00:00:05] Production.INFO: 2025-02-15 [2025-01-15 00:00:05] Production.INFO: getdaysdiff [2025-01-15 00:00:05] Production.INFO: +31 [2025-01-15 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (230,16,1,31,31,'RMScheduler',2025-01-15 00:00:05,1,0,,,0) [2025-01-15 00:00:05] Production.INFO: next invoice date [2025-01-15 00:00:05] Production.INFO: 2025-02-15 [2025-01-15 00:00:05] Production.INFO: getdaysdiff [2025-01-15 00:00:05] Production.INFO: +31 [2025-01-15 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (230,13,2,31,31,'RMScheduler',2025-01-15 00:00:05,1,0,,,0) [2025-01-15 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:00:06 [end_date_ymd] => 2025-01-15 00:00:06 [RateCDR] => 1 ) [2025-01-15 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:00:06' and `end` < '2025-01-15 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:00:19] Production.INFO: count ==615 [2025-01-15 00:00:19] Production.ERROR: pbx CDR StartTime 2025-01-14 21:00:06 - End Time 2025-01-15 00:00:06 [2025-01-15 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249804', 'tblTempUsageDetail_20' ) start [2025-01-15 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249804', 'tblTempUsageDetail_20' ) end [2025-01-15 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249804', 'tblTempVendorCDR_20' ) start [2025-01-15 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249804', 'tblTempVendorCDR_20' ) end [2025-01-15 00:00:19] Production.INFO: ProcessCDR(1,14249804,1,1,2) [2025-01-15 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249804', 'tblTempUsageDetail_20' ) start [2025-01-15 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249804', 'tblTempUsageDetail_20' ) end [2025-01-15 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:00:25] Production.INFO: ==17356== Releasing lock... [2025-01-15 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:00:25] Production.INFO: 33.75 MB #Memory Used# [2025-01-15 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:01:04 [end_date_ymd] => 2025-01-15 00:01:04 [RateCDR] => 1 ) [2025-01-15 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:01:04' and `end` < '2025-01-15 00:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:01:27] Production.INFO: count ==586 [2025-01-15 00:01:27] Production.ERROR: pbx CDR StartTime 2025-01-14 21:01:04 - End Time 2025-01-15 00:01:04 [2025-01-15 00:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249809', 'tblTempUsageDetail_20' ) start [2025-01-15 00:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249809', 'tblTempUsageDetail_20' ) end [2025-01-15 00:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249809', 'tblTempVendorCDR_20' ) start [2025-01-15 00:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249809', 'tblTempVendorCDR_20' ) end [2025-01-15 00:01:27] Production.INFO: ProcessCDR(1,14249809,1,1,2) [2025-01-15 00:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249809', 'tblTempUsageDetail_20' ) start [2025-01-15 00:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249809', 'tblTempUsageDetail_20' ) end [2025-01-15 00:01:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:01:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:01:31] Production.INFO: ==17457== Releasing lock... [2025-01-15 00:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:01:31] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:02:06 [end_date_ymd] => 2025-01-15 00:02:06 [RateCDR] => 1 ) [2025-01-15 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-01-14 21:02:06' and `end` < '2025-01-15 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-01-15 00:02:27] Production.INFO: count ==97 [2025-01-15 00:02:27] Production.ERROR: pbx CDR StartTime 2025-01-14 21:02:06 - End Time 2025-01-15 00:02:06 [2025-01-15 00:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249814', 'tblTempUsageDetail_20' ) start [2025-01-15 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249814', 'tblTempUsageDetail_20' ) end [2025-01-15 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249814', 'tblTempVendorCDR_20' ) start [2025-01-15 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249814', 'tblTempVendorCDR_20' ) end [2025-01-15 00:02:27] Production.INFO: ProcessCDR(1,14249814,1,1,2) [2025-01-15 00:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249814', 'tblTempUsageDetail_20' ) start [2025-01-15 00:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249814', 'tblTempUsageDetail_20' ) end [2025-01-15 00:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:02:31] Production.INFO: ==17546== Releasing lock... [2025-01-15 00:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:02:31] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:03:05 [end_date_ymd] => 2025-01-15 00:03:05 [RateCDR] => 1 ) [2025-01-15 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:03:05' and `end` < '2025-01-15 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:03:33] Production.INFO: count ==97 [2025-01-15 00:03:33] Production.ERROR: pbx CDR StartTime 2025-01-14 21:03:05 - End Time 2025-01-15 00:03:05 [2025-01-15 00:03:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249819', 'tblTempUsageDetail_20' ) start [2025-01-15 00:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249819', 'tblTempUsageDetail_20' ) end [2025-01-15 00:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249819', 'tblTempVendorCDR_20' ) start [2025-01-15 00:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249819', 'tblTempVendorCDR_20' ) end [2025-01-15 00:03:33] Production.INFO: ProcessCDR(1,14249819,1,1,2) [2025-01-15 00:03:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:03:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:03:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:03:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:03:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249819', 'tblTempUsageDetail_20' ) start [2025-01-15 00:03:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249819', 'tblTempUsageDetail_20' ) end [2025-01-15 00:03:36] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:03:36] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:03:36] Production.INFO: ==17630== Releasing lock... [2025-01-15 00:03:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:03:36] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:04:05 [end_date_ymd] => 2025-01-15 00:04:05 [RateCDR] => 1 ) [2025-01-15 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:04:05' and `end` < '2025-01-15 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:04:29] Production.INFO: count ==97 [2025-01-15 00:04:29] Production.ERROR: pbx CDR StartTime 2025-01-14 21:04:05 - End Time 2025-01-15 00:04:05 [2025-01-15 00:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249824', 'tblTempUsageDetail_20' ) start [2025-01-15 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249824', 'tblTempUsageDetail_20' ) end [2025-01-15 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249824', 'tblTempVendorCDR_20' ) start [2025-01-15 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249824', 'tblTempVendorCDR_20' ) end [2025-01-15 00:04:29] Production.INFO: ProcessCDR(1,14249824,1,1,2) [2025-01-15 00:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249824', 'tblTempUsageDetail_20' ) start [2025-01-15 00:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249824', 'tblTempUsageDetail_20' ) end [2025-01-15 00:04:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:04:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:04:32] Production.INFO: ==17712== Releasing lock... [2025-01-15 00:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:04:32] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:05:04 [end_date_ymd] => 2025-01-15 00:05:04 [RateCDR] => 1 ) [2025-01-15 00:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:05:04' and `end` < '2025-01-15 00:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:05:27] Production.INFO: count ==99 [2025-01-15 00:05:27] Production.ERROR: pbx CDR StartTime 2025-01-14 21:05:04 - End Time 2025-01-15 00:05:04 [2025-01-15 00:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249829', 'tblTempUsageDetail_20' ) start [2025-01-15 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249829', 'tblTempUsageDetail_20' ) end [2025-01-15 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249829', 'tblTempVendorCDR_20' ) start [2025-01-15 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249829', 'tblTempVendorCDR_20' ) end [2025-01-15 00:05:27] Production.INFO: ProcessCDR(1,14249829,1,1,2) [2025-01-15 00:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249829', 'tblTempUsageDetail_20' ) start [2025-01-15 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249829', 'tblTempUsageDetail_20' ) end [2025-01-15 00:05:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:05:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:05:32] Production.INFO: ==17815== Releasing lock... [2025-01-15 00:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:05:32] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:06:05 [end_date_ymd] => 2025-01-15 00:06:05 [RateCDR] => 1 ) [2025-01-15 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:06:05' and `end` < '2025-01-15 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:06:22] Production.INFO: count ==102 [2025-01-15 00:06:22] Production.ERROR: pbx CDR StartTime 2025-01-14 21:06:05 - End Time 2025-01-15 00:06:05 [2025-01-15 00:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249834', 'tblTempUsageDetail_20' ) start [2025-01-15 00:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249834', 'tblTempUsageDetail_20' ) end [2025-01-15 00:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249834', 'tblTempVendorCDR_20' ) start [2025-01-15 00:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249834', 'tblTempVendorCDR_20' ) end [2025-01-15 00:06:22] Production.INFO: ProcessCDR(1,14249834,1,1,2) [2025-01-15 00:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249834', 'tblTempUsageDetail_20' ) start [2025-01-15 00:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249834', 'tblTempUsageDetail_20' ) end [2025-01-15 00:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:06:26] Production.INFO: ==17896== Releasing lock... [2025-01-15 00:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:06:26] Production.INFO: 29 MB #Memory Used# [2025-01-15 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:07:05 [end_date_ymd] => 2025-01-15 00:07:05 [RateCDR] => 1 ) [2025-01-15 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:07:05' and `end` < '2025-01-15 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:07:18] Production.INFO: count ==101 [2025-01-15 00:07:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:07:05 - End Time 2025-01-15 00:07:05 [2025-01-15 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249839', 'tblTempUsageDetail_20' ) start [2025-01-15 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249839', 'tblTempUsageDetail_20' ) end [2025-01-15 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249839', 'tblTempVendorCDR_20' ) start [2025-01-15 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249839', 'tblTempVendorCDR_20' ) end [2025-01-15 00:07:18] Production.INFO: ProcessCDR(1,14249839,1,1,2) [2025-01-15 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249839', 'tblTempUsageDetail_20' ) start [2025-01-15 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249839', 'tblTempUsageDetail_20' ) end [2025-01-15 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:07:21] Production.INFO: ==17981== Releasing lock... [2025-01-15 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:07:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:08:06 [end_date_ymd] => 2025-01-15 00:08:06 [RateCDR] => 1 ) [2025-01-15 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-01-14 21:08:06' and `end` < '2025-01-15 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-01-15 00:08:20] Production.INFO: count ==104 [2025-01-15 00:08:20] Production.ERROR: pbx CDR StartTime 2025-01-14 21:08:06 - End Time 2025-01-15 00:08:06 [2025-01-15 00:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249844', 'tblTempUsageDetail_20' ) start [2025-01-15 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249844', 'tblTempUsageDetail_20' ) end [2025-01-15 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249844', 'tblTempVendorCDR_20' ) start [2025-01-15 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249844', 'tblTempVendorCDR_20' ) end [2025-01-15 00:08:20] Production.INFO: ProcessCDR(1,14249844,1,1,2) [2025-01-15 00:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249844', 'tblTempUsageDetail_20' ) start [2025-01-15 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249844', 'tblTempUsageDetail_20' ) end [2025-01-15 00:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:08:23] Production.INFO: ==18065== Releasing lock... [2025-01-15 00:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:08:23] Production.INFO: 29 MB #Memory Used# [2025-01-15 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:09:05 [end_date_ymd] => 2025-01-15 00:09:05 [RateCDR] => 1 ) [2025-01-15 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:09:05' and `end` < '2025-01-15 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:09:19] Production.INFO: count ==101 [2025-01-15 00:09:19] Production.ERROR: pbx CDR StartTime 2025-01-14 21:09:05 - End Time 2025-01-15 00:09:05 [2025-01-15 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249849', 'tblTempUsageDetail_20' ) start [2025-01-15 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249849', 'tblTempUsageDetail_20' ) end [2025-01-15 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249849', 'tblTempVendorCDR_20' ) start [2025-01-15 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249849', 'tblTempVendorCDR_20' ) end [2025-01-15 00:09:19] Production.INFO: ProcessCDR(1,14249849,1,1,2) [2025-01-15 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249849', 'tblTempUsageDetail_20' ) start [2025-01-15 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249849', 'tblTempUsageDetail_20' ) end [2025-01-15 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:09:22] Production.INFO: ==18148== Releasing lock... [2025-01-15 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:09:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:10:06 [end_date_ymd] => 2025-01-15 00:10:06 [RateCDR] => 1 ) [2025-01-15 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:10:06' and `end` < '2025-01-15 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:10:37] Production.INFO: count ==107 [2025-01-15 00:10:37] Production.ERROR: pbx CDR StartTime 2025-01-14 21:10:06 - End Time 2025-01-15 00:10:06 [2025-01-15 00:10:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249854', 'tblTempUsageDetail_20' ) start [2025-01-15 00:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249854', 'tblTempUsageDetail_20' ) end [2025-01-15 00:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249854', 'tblTempVendorCDR_20' ) start [2025-01-15 00:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249854', 'tblTempVendorCDR_20' ) end [2025-01-15 00:10:37] Production.INFO: ProcessCDR(1,14249854,1,1,2) [2025-01-15 00:10:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:10:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:10:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:10:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:10:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249854', 'tblTempUsageDetail_20' ) start [2025-01-15 00:10:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249854', 'tblTempUsageDetail_20' ) end [2025-01-15 00:10:41] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:10:41] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:10:41] Production.INFO: ==18233== Releasing lock... [2025-01-15 00:10:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:10:41] Production.INFO: 29 MB #Memory Used# [2025-01-15 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:11:05 [end_date_ymd] => 2025-01-15 00:11:05 [RateCDR] => 1 ) [2025-01-15 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:11:05' and `end` < '2025-01-15 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:11:25] Production.INFO: count ==107 [2025-01-15 00:11:25] Production.ERROR: pbx CDR StartTime 2025-01-14 21:11:05 - End Time 2025-01-15 00:11:05 [2025-01-15 00:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249860', 'tblTempUsageDetail_20' ) start [2025-01-15 00:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249860', 'tblTempUsageDetail_20' ) end [2025-01-15 00:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249860', 'tblTempVendorCDR_20' ) start [2025-01-15 00:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249860', 'tblTempVendorCDR_20' ) end [2025-01-15 00:11:25] Production.INFO: ProcessCDR(1,14249860,1,1,2) [2025-01-15 00:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249860', 'tblTempUsageDetail_20' ) start [2025-01-15 00:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249860', 'tblTempUsageDetail_20' ) end [2025-01-15 00:11:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:11:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:11:29] Production.INFO: ==18318== Releasing lock... [2025-01-15 00:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:11:29] Production.INFO: 29 MB #Memory Used# [2025-01-15 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:12:05 [end_date_ymd] => 2025-01-15 00:12:05 [RateCDR] => 1 ) [2025-01-15 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:12:05' and `end` < '2025-01-15 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:12:20] Production.INFO: count ==106 [2025-01-15 00:12:20] Production.ERROR: pbx CDR StartTime 2025-01-14 21:12:05 - End Time 2025-01-15 00:12:05 [2025-01-15 00:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249865', 'tblTempUsageDetail_20' ) start [2025-01-15 00:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249865', 'tblTempUsageDetail_20' ) end [2025-01-15 00:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249865', 'tblTempVendorCDR_20' ) start [2025-01-15 00:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249865', 'tblTempVendorCDR_20' ) end [2025-01-15 00:12:20] Production.INFO: ProcessCDR(1,14249865,1,1,2) [2025-01-15 00:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249865', 'tblTempUsageDetail_20' ) start [2025-01-15 00:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249865', 'tblTempUsageDetail_20' ) end [2025-01-15 00:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:12:24] Production.INFO: ==18440== Releasing lock... [2025-01-15 00:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:12:24] Production.INFO: 29 MB #Memory Used# [2025-01-15 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:13:05 [end_date_ymd] => 2025-01-15 00:13:05 [RateCDR] => 1 ) [2025-01-15 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:13:05' and `end` < '2025-01-15 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:13:20] Production.INFO: count ==106 [2025-01-15 00:13:20] Production.ERROR: pbx CDR StartTime 2025-01-14 21:13:05 - End Time 2025-01-15 00:13:05 [2025-01-15 00:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249870', 'tblTempUsageDetail_20' ) start [2025-01-15 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249870', 'tblTempUsageDetail_20' ) end [2025-01-15 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249870', 'tblTempVendorCDR_20' ) start [2025-01-15 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249870', 'tblTempVendorCDR_20' ) end [2025-01-15 00:13:20] Production.INFO: ProcessCDR(1,14249870,1,1,2) [2025-01-15 00:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249870', 'tblTempUsageDetail_20' ) start [2025-01-15 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249870', 'tblTempUsageDetail_20' ) end [2025-01-15 00:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:13:23] Production.INFO: ==18522== Releasing lock... [2025-01-15 00:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:13:23] Production.INFO: 29 MB #Memory Used# [2025-01-15 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:14:05 [end_date_ymd] => 2025-01-15 00:14:05 [RateCDR] => 1 ) [2025-01-15 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:14:05' and `end` < '2025-01-15 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:14:18] Production.INFO: count ==106 [2025-01-15 00:14:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:14:05 - End Time 2025-01-15 00:14:05 [2025-01-15 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249875', 'tblTempUsageDetail_20' ) start [2025-01-15 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249875', 'tblTempUsageDetail_20' ) end [2025-01-15 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249875', 'tblTempVendorCDR_20' ) start [2025-01-15 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249875', 'tblTempVendorCDR_20' ) end [2025-01-15 00:14:18] Production.INFO: ProcessCDR(1,14249875,1,1,2) [2025-01-15 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249875', 'tblTempUsageDetail_20' ) start [2025-01-15 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249875', 'tblTempUsageDetail_20' ) end [2025-01-15 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:14:21] Production.INFO: ==18608== Releasing lock... [2025-01-15 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:14:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 00:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:15:04 [end_date_ymd] => 2025-01-15 00:15:04 [RateCDR] => 1 ) [2025-01-15 00:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:15:04' and `end` < '2025-01-15 00:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:15:17] Production.INFO: count ==106 [2025-01-15 00:15:17] Production.ERROR: pbx CDR StartTime 2025-01-14 21:15:04 - End Time 2025-01-15 00:15:04 [2025-01-15 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249880', 'tblTempUsageDetail_20' ) start [2025-01-15 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249880', 'tblTempUsageDetail_20' ) end [2025-01-15 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249880', 'tblTempVendorCDR_20' ) start [2025-01-15 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249880', 'tblTempVendorCDR_20' ) end [2025-01-15 00:15:17] Production.INFO: ProcessCDR(1,14249880,1,1,2) [2025-01-15 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249880', 'tblTempUsageDetail_20' ) start [2025-01-15 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249880', 'tblTempUsageDetail_20' ) end [2025-01-15 00:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:15:20] Production.INFO: ==18691== Releasing lock... [2025-01-15 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:15:20] Production.INFO: 29 MB #Memory Used# [2025-01-15 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:16:05 [end_date_ymd] => 2025-01-15 00:16:05 [RateCDR] => 1 ) [2025-01-15 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:16:05' and `end` < '2025-01-15 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:16:17] Production.INFO: count ==106 [2025-01-15 00:16:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:16:05 - End Time 2025-01-15 00:16:05 [2025-01-15 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249885', 'tblTempUsageDetail_20' ) start [2025-01-15 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249885', 'tblTempUsageDetail_20' ) end [2025-01-15 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249885', 'tblTempVendorCDR_20' ) start [2025-01-15 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249885', 'tblTempVendorCDR_20' ) end [2025-01-15 00:16:18] Production.INFO: ProcessCDR(1,14249885,1,1,2) [2025-01-15 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249885', 'tblTempUsageDetail_20' ) start [2025-01-15 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249885', 'tblTempUsageDetail_20' ) end [2025-01-15 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:16:21] Production.INFO: ==18774== Releasing lock... [2025-01-15 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:16:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:17:05 [end_date_ymd] => 2025-01-15 00:17:05 [RateCDR] => 1 ) [2025-01-15 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:17:05' and `end` < '2025-01-15 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:17:19] Production.INFO: count ==106 [2025-01-15 00:17:19] Production.ERROR: pbx CDR StartTime 2025-01-14 21:17:05 - End Time 2025-01-15 00:17:05 [2025-01-15 00:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249890', 'tblTempUsageDetail_20' ) start [2025-01-15 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249890', 'tblTempUsageDetail_20' ) end [2025-01-15 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249890', 'tblTempVendorCDR_20' ) start [2025-01-15 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249890', 'tblTempVendorCDR_20' ) end [2025-01-15 00:17:19] Production.INFO: ProcessCDR(1,14249890,1,1,2) [2025-01-15 00:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249890', 'tblTempUsageDetail_20' ) start [2025-01-15 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249890', 'tblTempUsageDetail_20' ) end [2025-01-15 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:17:22] Production.INFO: ==18857== Releasing lock... [2025-01-15 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:17:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:18:06 [end_date_ymd] => 2025-01-15 00:18:06 [RateCDR] => 1 ) [2025-01-15 00:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:18:06' and `end` < '2025-01-15 00:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:18:18] Production.INFO: count ==104 [2025-01-15 00:18:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:18:06 - End Time 2025-01-15 00:18:06 [2025-01-15 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249895', 'tblTempUsageDetail_20' ) start [2025-01-15 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249895', 'tblTempUsageDetail_20' ) end [2025-01-15 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249895', 'tblTempVendorCDR_20' ) start [2025-01-15 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249895', 'tblTempVendorCDR_20' ) end [2025-01-15 00:18:18] Production.INFO: ProcessCDR(1,14249895,1,1,2) [2025-01-15 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249895', 'tblTempUsageDetail_20' ) start [2025-01-15 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249895', 'tblTempUsageDetail_20' ) end [2025-01-15 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:18:22] Production.INFO: ==18952== Releasing lock... [2025-01-15 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:18:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:19:05 [end_date_ymd] => 2025-01-15 00:19:05 [RateCDR] => 1 ) [2025-01-15 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:19:05' and `end` < '2025-01-15 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:19:21] Production.INFO: count ==103 [2025-01-15 00:19:21] Production.ERROR: pbx CDR StartTime 2025-01-14 21:19:05 - End Time 2025-01-15 00:19:05 [2025-01-15 00:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249900', 'tblTempUsageDetail_20' ) start [2025-01-15 00:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249900', 'tblTempUsageDetail_20' ) end [2025-01-15 00:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249900', 'tblTempVendorCDR_20' ) start [2025-01-15 00:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249900', 'tblTempVendorCDR_20' ) end [2025-01-15 00:19:21] Production.INFO: ProcessCDR(1,14249900,1,1,2) [2025-01-15 00:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249900', 'tblTempUsageDetail_20' ) start [2025-01-15 00:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249900', 'tblTempUsageDetail_20' ) end [2025-01-15 00:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:19:24] Production.INFO: ==19031== Releasing lock... [2025-01-15 00:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:19:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:20:06 [end_date_ymd] => 2025-01-15 00:20:06 [RateCDR] => 1 ) [2025-01-15 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:20:06' and `end` < '2025-01-15 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:20:22] Production.INFO: count ==113 [2025-01-15 00:20:22] Production.ERROR: pbx CDR StartTime 2025-01-14 21:20:06 - End Time 2025-01-15 00:20:06 [2025-01-15 00:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249906', 'tblTempUsageDetail_20' ) start [2025-01-15 00:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249906', 'tblTempUsageDetail_20' ) end [2025-01-15 00:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249906', 'tblTempVendorCDR_20' ) start [2025-01-15 00:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249906', 'tblTempVendorCDR_20' ) end [2025-01-15 00:20:22] Production.INFO: ProcessCDR(1,14249906,1,1,2) [2025-01-15 00:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249906', 'tblTempUsageDetail_20' ) start [2025-01-15 00:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249906', 'tblTempUsageDetail_20' ) end [2025-01-15 00:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:20:25] Production.INFO: ==19120== Releasing lock... [2025-01-15 00:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:20:25] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:21:05 [end_date_ymd] => 2025-01-15 00:21:05 [RateCDR] => 1 ) [2025-01-15 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:21:05' and `end` < '2025-01-15 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:21:17] Production.INFO: count ==113 [2025-01-15 00:21:17] Production.ERROR: pbx CDR StartTime 2025-01-14 21:21:05 - End Time 2025-01-15 00:21:05 [2025-01-15 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249911', 'tblTempUsageDetail_20' ) start [2025-01-15 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249911', 'tblTempUsageDetail_20' ) end [2025-01-15 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249911', 'tblTempVendorCDR_20' ) start [2025-01-15 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249911', 'tblTempVendorCDR_20' ) end [2025-01-15 00:21:17] Production.INFO: ProcessCDR(1,14249911,1,1,2) [2025-01-15 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249911', 'tblTempUsageDetail_20' ) start [2025-01-15 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249911', 'tblTempUsageDetail_20' ) end [2025-01-15 00:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:21:20] Production.INFO: ==19201== Releasing lock... [2025-01-15 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:21:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:22:05 [end_date_ymd] => 2025-01-15 00:22:05 [RateCDR] => 1 ) [2025-01-15 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:22:05' and `end` < '2025-01-15 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:22:18] Production.INFO: count ==113 [2025-01-15 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:22:05 - End Time 2025-01-15 00:22:05 [2025-01-15 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249916', 'tblTempUsageDetail_20' ) start [2025-01-15 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249916', 'tblTempUsageDetail_20' ) end [2025-01-15 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249916', 'tblTempVendorCDR_20' ) start [2025-01-15 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249916', 'tblTempVendorCDR_20' ) end [2025-01-15 00:22:18] Production.INFO: ProcessCDR(1,14249916,1,1,2) [2025-01-15 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249916', 'tblTempUsageDetail_20' ) start [2025-01-15 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249916', 'tblTempUsageDetail_20' ) end [2025-01-15 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:22:21] Production.INFO: ==19282== Releasing lock... [2025-01-15 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:23:05 [end_date_ymd] => 2025-01-15 00:23:05 [RateCDR] => 1 ) [2025-01-15 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:23:05' and `end` < '2025-01-15 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:23:18] Production.INFO: count ==116 [2025-01-15 00:23:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:23:05 - End Time 2025-01-15 00:23:05 [2025-01-15 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249921', 'tblTempUsageDetail_20' ) start [2025-01-15 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249921', 'tblTempUsageDetail_20' ) end [2025-01-15 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249921', 'tblTempVendorCDR_20' ) start [2025-01-15 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249921', 'tblTempVendorCDR_20' ) end [2025-01-15 00:23:18] Production.INFO: ProcessCDR(1,14249921,1,1,2) [2025-01-15 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249921', 'tblTempUsageDetail_20' ) start [2025-01-15 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249921', 'tblTempUsageDetail_20' ) end [2025-01-15 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:23:22] Production.INFO: ==19362== Releasing lock... [2025-01-15 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:23:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:24:05 [end_date_ymd] => 2025-01-15 00:24:05 [RateCDR] => 1 ) [2025-01-15 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:24:05' and `end` < '2025-01-15 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:24:17] Production.INFO: count ==116 [2025-01-15 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:24:05 - End Time 2025-01-15 00:24:05 [2025-01-15 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249923', 'tblTempUsageDetail_20' ) start [2025-01-15 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249923', 'tblTempUsageDetail_20' ) end [2025-01-15 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249923', 'tblTempVendorCDR_20' ) start [2025-01-15 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249923', 'tblTempVendorCDR_20' ) end [2025-01-15 00:24:18] Production.INFO: ProcessCDR(1,14249923,1,1,2) [2025-01-15 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249923', 'tblTempUsageDetail_20' ) start [2025-01-15 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249923', 'tblTempUsageDetail_20' ) end [2025-01-15 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:24:21] Production.INFO: ==19443== Releasing lock... [2025-01-15 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:25:04 [end_date_ymd] => 2025-01-15 00:25:04 [RateCDR] => 1 ) [2025-01-15 00:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:25:04' and `end` < '2025-01-15 00:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:25:17] Production.INFO: count ==115 [2025-01-15 00:25:17] Production.ERROR: pbx CDR StartTime 2025-01-14 21:25:04 - End Time 2025-01-15 00:25:04 [2025-01-15 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249931', 'tblTempUsageDetail_20' ) start [2025-01-15 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249931', 'tblTempUsageDetail_20' ) end [2025-01-15 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249931', 'tblTempVendorCDR_20' ) start [2025-01-15 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249931', 'tblTempVendorCDR_20' ) end [2025-01-15 00:25:17] Production.INFO: ProcessCDR(1,14249931,1,1,2) [2025-01-15 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249931', 'tblTempUsageDetail_20' ) start [2025-01-15 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249931', 'tblTempUsageDetail_20' ) end [2025-01-15 00:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:25:20] Production.INFO: ==19524== Releasing lock... [2025-01-15 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:25:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:26:05 [end_date_ymd] => 2025-01-15 00:26:05 [RateCDR] => 1 ) [2025-01-15 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:26:05' and `end` < '2025-01-15 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:26:18] Production.INFO: count ==115 [2025-01-15 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:26:05 - End Time 2025-01-15 00:26:05 [2025-01-15 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249936', 'tblTempUsageDetail_20' ) start [2025-01-15 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249936', 'tblTempUsageDetail_20' ) end [2025-01-15 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249936', 'tblTempVendorCDR_20' ) start [2025-01-15 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249936', 'tblTempVendorCDR_20' ) end [2025-01-15 00:26:18] Production.INFO: ProcessCDR(1,14249936,1,1,2) [2025-01-15 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249936', 'tblTempUsageDetail_20' ) start [2025-01-15 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249936', 'tblTempUsageDetail_20' ) end [2025-01-15 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:26:21] Production.INFO: ==19604== Releasing lock... [2025-01-15 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:27:05 [end_date_ymd] => 2025-01-15 00:27:05 [RateCDR] => 1 ) [2025-01-15 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:27:05' and `end` < '2025-01-15 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:27:17] Production.INFO: count ==112 [2025-01-15 00:27:17] Production.ERROR: pbx CDR StartTime 2025-01-14 21:27:05 - End Time 2025-01-15 00:27:05 [2025-01-15 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249941', 'tblTempUsageDetail_20' ) start [2025-01-15 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249941', 'tblTempUsageDetail_20' ) end [2025-01-15 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249941', 'tblTempVendorCDR_20' ) start [2025-01-15 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249941', 'tblTempVendorCDR_20' ) end [2025-01-15 00:27:17] Production.INFO: ProcessCDR(1,14249941,1,1,2) [2025-01-15 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249941', 'tblTempUsageDetail_20' ) start [2025-01-15 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249941', 'tblTempUsageDetail_20' ) end [2025-01-15 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:27:21] Production.INFO: ==19684== Releasing lock... [2025-01-15 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:27:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:28:05 [end_date_ymd] => 2025-01-15 00:28:05 [RateCDR] => 1 ) [2025-01-15 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:28:05' and `end` < '2025-01-15 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:28:17] Production.INFO: count ==112 [2025-01-15 00:28:17] Production.ERROR: pbx CDR StartTime 2025-01-14 21:28:05 - End Time 2025-01-15 00:28:05 [2025-01-15 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249946', 'tblTempUsageDetail_20' ) start [2025-01-15 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249946', 'tblTempUsageDetail_20' ) end [2025-01-15 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249946', 'tblTempVendorCDR_20' ) start [2025-01-15 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249946', 'tblTempVendorCDR_20' ) end [2025-01-15 00:28:17] Production.INFO: ProcessCDR(1,14249946,1,1,2) [2025-01-15 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249946', 'tblTempUsageDetail_20' ) start [2025-01-15 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249946', 'tblTempUsageDetail_20' ) end [2025-01-15 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:28:21] Production.INFO: ==19806== Releasing lock... [2025-01-15 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:28:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:29:05 [end_date_ymd] => 2025-01-15 00:29:05 [RateCDR] => 1 ) [2025-01-15 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:29:05' and `end` < '2025-01-15 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:29:17] Production.INFO: count ==112 [2025-01-15 00:29:17] Production.ERROR: pbx CDR StartTime 2025-01-14 21:29:05 - End Time 2025-01-15 00:29:05 [2025-01-15 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249951', 'tblTempUsageDetail_20' ) start [2025-01-15 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249951', 'tblTempUsageDetail_20' ) end [2025-01-15 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249951', 'tblTempVendorCDR_20' ) start [2025-01-15 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249951', 'tblTempVendorCDR_20' ) end [2025-01-15 00:29:17] Production.INFO: ProcessCDR(1,14249951,1,1,2) [2025-01-15 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249951', 'tblTempUsageDetail_20' ) start [2025-01-15 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249951', 'tblTempUsageDetail_20' ) end [2025-01-15 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:29:21] Production.INFO: ==19887== Releasing lock... [2025-01-15 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:29:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:30:06 [end_date_ymd] => 2025-01-15 00:30:06 [RateCDR] => 1 ) [2025-01-15 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:30:06' and `end` < '2025-01-15 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:30:18] Production.INFO: count ==120 [2025-01-15 00:30:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:30:06 - End Time 2025-01-15 00:30:06 [2025-01-15 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249956', 'tblTempUsageDetail_20' ) start [2025-01-15 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249956', 'tblTempUsageDetail_20' ) end [2025-01-15 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249956', 'tblTempVendorCDR_20' ) start [2025-01-15 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249956', 'tblTempVendorCDR_20' ) end [2025-01-15 00:30:18] Production.INFO: ProcessCDR(1,14249956,1,1,2) [2025-01-15 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249956', 'tblTempUsageDetail_20' ) start [2025-01-15 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249956', 'tblTempUsageDetail_20' ) end [2025-01-15 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:30:21] Production.INFO: ==19973== Releasing lock... [2025-01-15 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:30:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:31:05 [end_date_ymd] => 2025-01-15 00:31:05 [RateCDR] => 1 ) [2025-01-15 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:31:05' and `end` < '2025-01-15 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:31:18] Production.INFO: count ==146 [2025-01-15 00:31:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:31:05 - End Time 2025-01-15 00:31:05 [2025-01-15 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249962', 'tblTempUsageDetail_20' ) start [2025-01-15 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249962', 'tblTempUsageDetail_20' ) end [2025-01-15 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249962', 'tblTempVendorCDR_20' ) start [2025-01-15 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249962', 'tblTempVendorCDR_20' ) end [2025-01-15 00:31:18] Production.INFO: ProcessCDR(1,14249962,1,1,2) [2025-01-15 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249962', 'tblTempUsageDetail_20' ) start [2025-01-15 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249962', 'tblTempUsageDetail_20' ) end [2025-01-15 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:31:22] Production.INFO: ==20065== Releasing lock... [2025-01-15 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:31:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:32:05 [end_date_ymd] => 2025-01-15 00:32:05 [RateCDR] => 1 ) [2025-01-15 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:32:05' and `end` < '2025-01-15 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:32:17] Production.INFO: count ==145 [2025-01-15 00:32:17] Production.ERROR: pbx CDR StartTime 2025-01-14 21:32:05 - End Time 2025-01-15 00:32:05 [2025-01-15 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249967', 'tblTempUsageDetail_20' ) start [2025-01-15 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249967', 'tblTempUsageDetail_20' ) end [2025-01-15 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249967', 'tblTempVendorCDR_20' ) start [2025-01-15 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249967', 'tblTempVendorCDR_20' ) end [2025-01-15 00:32:17] Production.INFO: ProcessCDR(1,14249967,1,1,2) [2025-01-15 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249967', 'tblTempUsageDetail_20' ) start [2025-01-15 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249967', 'tblTempUsageDetail_20' ) end [2025-01-15 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:32:21] Production.INFO: ==20153== Releasing lock... [2025-01-15 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:33:06 [end_date_ymd] => 2025-01-15 00:33:06 [RateCDR] => 1 ) [2025-01-15 00:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:33:06' and `end` < '2025-01-15 00:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:33:18] Production.INFO: count ==147 [2025-01-15 00:33:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:33:06 - End Time 2025-01-15 00:33:06 [2025-01-15 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249972', 'tblTempUsageDetail_20' ) start [2025-01-15 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249972', 'tblTempUsageDetail_20' ) end [2025-01-15 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249972', 'tblTempVendorCDR_20' ) start [2025-01-15 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249972', 'tblTempVendorCDR_20' ) end [2025-01-15 00:33:18] Production.INFO: ProcessCDR(1,14249972,1,1,2) [2025-01-15 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249972', 'tblTempUsageDetail_20' ) start [2025-01-15 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249972', 'tblTempUsageDetail_20' ) end [2025-01-15 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:33:22] Production.INFO: ==20238== Releasing lock... [2025-01-15 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:33:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:34:05 [end_date_ymd] => 2025-01-15 00:34:05 [RateCDR] => 1 ) [2025-01-15 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:34:05' and `end` < '2025-01-15 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:34:18] Production.INFO: count ==151 [2025-01-15 00:34:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:34:05 - End Time 2025-01-15 00:34:05 [2025-01-15 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249977', 'tblTempUsageDetail_20' ) start [2025-01-15 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249977', 'tblTempUsageDetail_20' ) end [2025-01-15 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249977', 'tblTempVendorCDR_20' ) start [2025-01-15 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249977', 'tblTempVendorCDR_20' ) end [2025-01-15 00:34:18] Production.INFO: ProcessCDR(1,14249977,1,1,2) [2025-01-15 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249977', 'tblTempUsageDetail_20' ) start [2025-01-15 00:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249977', 'tblTempUsageDetail_20' ) end [2025-01-15 00:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:34:23] Production.INFO: ==20321== Releasing lock... [2025-01-15 00:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:34:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:35:05 [end_date_ymd] => 2025-01-15 00:35:05 [RateCDR] => 1 ) [2025-01-15 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-01-14 21:35:05' and `end` < '2025-01-15 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-01-15 00:35:18] Production.INFO: count ==151 [2025-01-15 00:35:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:35:05 - End Time 2025-01-15 00:35:05 [2025-01-15 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249982', 'tblTempUsageDetail_20' ) start [2025-01-15 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249982', 'tblTempUsageDetail_20' ) end [2025-01-15 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249982', 'tblTempVendorCDR_20' ) start [2025-01-15 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249982', 'tblTempVendorCDR_20' ) end [2025-01-15 00:35:18] Production.INFO: ProcessCDR(1,14249982,1,1,2) [2025-01-15 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249982', 'tblTempUsageDetail_20' ) start [2025-01-15 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249982', 'tblTempUsageDetail_20' ) end [2025-01-15 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:35:22] Production.INFO: ==20407== Releasing lock... [2025-01-15 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:35:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:36:05 [end_date_ymd] => 2025-01-15 00:36:05 [RateCDR] => 1 ) [2025-01-15 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:36:05' and `end` < '2025-01-15 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:36:17] Production.INFO: count ==150 [2025-01-15 00:36:17] Production.ERROR: pbx CDR StartTime 2025-01-14 21:36:05 - End Time 2025-01-15 00:36:05 [2025-01-15 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249987', 'tblTempUsageDetail_20' ) start [2025-01-15 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249987', 'tblTempUsageDetail_20' ) end [2025-01-15 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249987', 'tblTempVendorCDR_20' ) start [2025-01-15 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249987', 'tblTempVendorCDR_20' ) end [2025-01-15 00:36:17] Production.INFO: ProcessCDR(1,14249987,1,1,2) [2025-01-15 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249987', 'tblTempUsageDetail_20' ) start [2025-01-15 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249987', 'tblTempUsageDetail_20' ) end [2025-01-15 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:36:21] Production.INFO: ==20492== Releasing lock... [2025-01-15 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:37:05 [end_date_ymd] => 2025-01-15 00:37:05 [RateCDR] => 1 ) [2025-01-15 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:37:05' and `end` < '2025-01-15 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:37:17] Production.INFO: count ==149 [2025-01-15 00:37:17] Production.ERROR: pbx CDR StartTime 2025-01-14 21:37:05 - End Time 2025-01-15 00:37:05 [2025-01-15 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249992', 'tblTempUsageDetail_20' ) start [2025-01-15 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249992', 'tblTempUsageDetail_20' ) end [2025-01-15 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249992', 'tblTempVendorCDR_20' ) start [2025-01-15 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249992', 'tblTempVendorCDR_20' ) end [2025-01-15 00:37:17] Production.INFO: ProcessCDR(1,14249992,1,1,2) [2025-01-15 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249992', 'tblTempUsageDetail_20' ) start [2025-01-15 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249992', 'tblTempUsageDetail_20' ) end [2025-01-15 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:37:21] Production.INFO: ==20576== Releasing lock... [2025-01-15 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:38:05 [end_date_ymd] => 2025-01-15 00:38:05 [RateCDR] => 1 ) [2025-01-15 00:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:38:05' and `end` < '2025-01-15 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:38:18] Production.INFO: count ==151 [2025-01-15 00:38:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:38:05 - End Time 2025-01-15 00:38:05 [2025-01-15 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249997', 'tblTempUsageDetail_20' ) start [2025-01-15 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249997', 'tblTempUsageDetail_20' ) end [2025-01-15 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249997', 'tblTempVendorCDR_20' ) start [2025-01-15 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249997', 'tblTempVendorCDR_20' ) end [2025-01-15 00:38:18] Production.INFO: ProcessCDR(1,14249997,1,1,2) [2025-01-15 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249997', 'tblTempUsageDetail_20' ) start [2025-01-15 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249997', 'tblTempUsageDetail_20' ) end [2025-01-15 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:38:22] Production.INFO: ==20661== Releasing lock... [2025-01-15 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:38:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:39:05 [end_date_ymd] => 2025-01-15 00:39:05 [RateCDR] => 1 ) [2025-01-15 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:39:05' and `end` < '2025-01-15 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:39:18] Production.INFO: count ==152 [2025-01-15 00:39:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:39:05 - End Time 2025-01-15 00:39:05 [2025-01-15 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250002', 'tblTempUsageDetail_20' ) start [2025-01-15 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250002', 'tblTempUsageDetail_20' ) end [2025-01-15 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250002', 'tblTempVendorCDR_20' ) start [2025-01-15 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250002', 'tblTempVendorCDR_20' ) end [2025-01-15 00:39:18] Production.INFO: ProcessCDR(1,14250002,1,1,2) [2025-01-15 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250002', 'tblTempUsageDetail_20' ) start [2025-01-15 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250002', 'tblTempUsageDetail_20' ) end [2025-01-15 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:39:22] Production.INFO: ==20745== Releasing lock... [2025-01-15 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:39:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:40:06 [end_date_ymd] => 2025-01-15 00:40:06 [RateCDR] => 1 ) [2025-01-15 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:40:06' and `end` < '2025-01-15 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:40:19] Production.INFO: count ==151 [2025-01-15 00:40:19] Production.ERROR: pbx CDR StartTime 2025-01-14 21:40:06 - End Time 2025-01-15 00:40:06 [2025-01-15 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250008', 'tblTempUsageDetail_20' ) start [2025-01-15 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250008', 'tblTempUsageDetail_20' ) end [2025-01-15 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250008', 'tblTempVendorCDR_20' ) start [2025-01-15 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250008', 'tblTempVendorCDR_20' ) end [2025-01-15 00:40:19] Production.INFO: ProcessCDR(1,14250008,1,1,2) [2025-01-15 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250008', 'tblTempUsageDetail_20' ) start [2025-01-15 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250008', 'tblTempUsageDetail_20' ) end [2025-01-15 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:40:22] Production.INFO: ==20829== Releasing lock... [2025-01-15 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:41:06 [end_date_ymd] => 2025-01-15 00:41:06 [RateCDR] => 1 ) [2025-01-15 00:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:41:06' and `end` < '2025-01-15 00:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:41:19] Production.INFO: count ==150 [2025-01-15 00:41:19] Production.ERROR: pbx CDR StartTime 2025-01-14 21:41:06 - End Time 2025-01-15 00:41:06 [2025-01-15 00:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250013', 'tblTempUsageDetail_20' ) start [2025-01-15 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250013', 'tblTempUsageDetail_20' ) end [2025-01-15 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250013', 'tblTempVendorCDR_20' ) start [2025-01-15 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250013', 'tblTempVendorCDR_20' ) end [2025-01-15 00:41:19] Production.INFO: ProcessCDR(1,14250013,1,1,2) [2025-01-15 00:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250013', 'tblTempUsageDetail_20' ) start [2025-01-15 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250013', 'tblTempUsageDetail_20' ) end [2025-01-15 00:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:41:23] Production.INFO: ==20915== Releasing lock... [2025-01-15 00:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:41:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:42:05 [end_date_ymd] => 2025-01-15 00:42:05 [RateCDR] => 1 ) [2025-01-15 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:42:05' and `end` < '2025-01-15 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:42:18] Production.INFO: count ==150 [2025-01-15 00:42:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:42:05 - End Time 2025-01-15 00:42:05 [2025-01-15 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250018', 'tblTempUsageDetail_20' ) start [2025-01-15 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250018', 'tblTempUsageDetail_20' ) end [2025-01-15 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250018', 'tblTempVendorCDR_20' ) start [2025-01-15 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250018', 'tblTempVendorCDR_20' ) end [2025-01-15 00:42:18] Production.INFO: ProcessCDR(1,14250018,1,1,2) [2025-01-15 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250018', 'tblTempUsageDetail_20' ) start [2025-01-15 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250018', 'tblTempUsageDetail_20' ) end [2025-01-15 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:42:22] Production.INFO: ==20995== Releasing lock... [2025-01-15 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:42:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:43:06 [end_date_ymd] => 2025-01-15 00:43:06 [RateCDR] => 1 ) [2025-01-15 00:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:43:06' and `end` < '2025-01-15 00:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:43:19] Production.INFO: count ==150 [2025-01-15 00:43:19] Production.ERROR: pbx CDR StartTime 2025-01-14 21:43:06 - End Time 2025-01-15 00:43:06 [2025-01-15 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250023', 'tblTempUsageDetail_20' ) start [2025-01-15 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250023', 'tblTempUsageDetail_20' ) end [2025-01-15 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250023', 'tblTempVendorCDR_20' ) start [2025-01-15 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250023', 'tblTempVendorCDR_20' ) end [2025-01-15 00:43:19] Production.INFO: ProcessCDR(1,14250023,1,1,2) [2025-01-15 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250023', 'tblTempUsageDetail_20' ) start [2025-01-15 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250023', 'tblTempUsageDetail_20' ) end [2025-01-15 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:43:22] Production.INFO: ==21115== Releasing lock... [2025-01-15 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:43:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:44:05 [end_date_ymd] => 2025-01-15 00:44:05 [RateCDR] => 1 ) [2025-01-15 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:44:05' and `end` < '2025-01-15 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:44:17] Production.INFO: count ==150 [2025-01-15 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:44:05 - End Time 2025-01-15 00:44:05 [2025-01-15 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250028', 'tblTempUsageDetail_20' ) start [2025-01-15 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250028', 'tblTempUsageDetail_20' ) end [2025-01-15 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250028', 'tblTempVendorCDR_20' ) start [2025-01-15 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250028', 'tblTempVendorCDR_20' ) end [2025-01-15 00:44:18] Production.INFO: ProcessCDR(1,14250028,1,1,2) [2025-01-15 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250028', 'tblTempUsageDetail_20' ) start [2025-01-15 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250028', 'tblTempUsageDetail_20' ) end [2025-01-15 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:44:21] Production.INFO: ==21197== Releasing lock... [2025-01-15 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:45:05 [end_date_ymd] => 2025-01-15 00:45:05 [RateCDR] => 1 ) [2025-01-15 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:45:05' and `end` < '2025-01-15 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:45:18] Production.INFO: count ==149 [2025-01-15 00:45:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:45:05 - End Time 2025-01-15 00:45:05 [2025-01-15 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250033', 'tblTempUsageDetail_20' ) start [2025-01-15 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250033', 'tblTempUsageDetail_20' ) end [2025-01-15 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250033', 'tblTempVendorCDR_20' ) start [2025-01-15 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250033', 'tblTempVendorCDR_20' ) end [2025-01-15 00:45:18] Production.INFO: ProcessCDR(1,14250033,1,1,2) [2025-01-15 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250033', 'tblTempUsageDetail_20' ) start [2025-01-15 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250033', 'tblTempUsageDetail_20' ) end [2025-01-15 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:45:21] Production.INFO: ==21285== Releasing lock... [2025-01-15 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:46:05 [end_date_ymd] => 2025-01-15 00:46:05 [RateCDR] => 1 ) [2025-01-15 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:46:05' and `end` < '2025-01-15 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:46:18] Production.INFO: count ==149 [2025-01-15 00:46:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:46:05 - End Time 2025-01-15 00:46:05 [2025-01-15 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250038', 'tblTempUsageDetail_20' ) start [2025-01-15 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250038', 'tblTempUsageDetail_20' ) end [2025-01-15 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250038', 'tblTempVendorCDR_20' ) start [2025-01-15 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250038', 'tblTempVendorCDR_20' ) end [2025-01-15 00:46:18] Production.INFO: ProcessCDR(1,14250038,1,1,2) [2025-01-15 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250038', 'tblTempUsageDetail_20' ) start [2025-01-15 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250038', 'tblTempUsageDetail_20' ) end [2025-01-15 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:46:22] Production.INFO: ==21366== Releasing lock... [2025-01-15 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:46:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:47:06 [end_date_ymd] => 2025-01-15 00:47:06 [RateCDR] => 1 ) [2025-01-15 00:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:47:06' and `end` < '2025-01-15 00:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:47:18] Production.INFO: count ==147 [2025-01-15 00:47:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:47:06 - End Time 2025-01-15 00:47:06 [2025-01-15 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250043', 'tblTempUsageDetail_20' ) start [2025-01-15 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250043', 'tblTempUsageDetail_20' ) end [2025-01-15 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250043', 'tblTempVendorCDR_20' ) start [2025-01-15 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250043', 'tblTempVendorCDR_20' ) end [2025-01-15 00:47:18] Production.INFO: ProcessCDR(1,14250043,1,1,2) [2025-01-15 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250043', 'tblTempUsageDetail_20' ) start [2025-01-15 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250043', 'tblTempUsageDetail_20' ) end [2025-01-15 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:47:22] Production.INFO: ==21450== Releasing lock... [2025-01-15 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:47:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:48:05 [end_date_ymd] => 2025-01-15 00:48:05 [RateCDR] => 1 ) [2025-01-15 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:48:05' and `end` < '2025-01-15 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:48:17] Production.INFO: count ==147 [2025-01-15 00:48:17] Production.ERROR: pbx CDR StartTime 2025-01-14 21:48:05 - End Time 2025-01-15 00:48:05 [2025-01-15 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250048', 'tblTempUsageDetail_20' ) start [2025-01-15 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250048', 'tblTempUsageDetail_20' ) end [2025-01-15 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250048', 'tblTempVendorCDR_20' ) start [2025-01-15 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250048', 'tblTempVendorCDR_20' ) end [2025-01-15 00:48:17] Production.INFO: ProcessCDR(1,14250048,1,1,2) [2025-01-15 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250048', 'tblTempUsageDetail_20' ) start [2025-01-15 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250048', 'tblTempUsageDetail_20' ) end [2025-01-15 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:48:21] Production.INFO: ==21531== Releasing lock... [2025-01-15 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:49:06 [end_date_ymd] => 2025-01-15 00:49:06 [RateCDR] => 1 ) [2025-01-15 00:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:49:06' and `end` < '2025-01-15 00:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:49:18] Production.INFO: count ==147 [2025-01-15 00:49:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:49:06 - End Time 2025-01-15 00:49:06 [2025-01-15 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250053', 'tblTempUsageDetail_20' ) start [2025-01-15 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250053', 'tblTempUsageDetail_20' ) end [2025-01-15 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250053', 'tblTempVendorCDR_20' ) start [2025-01-15 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250053', 'tblTempVendorCDR_20' ) end [2025-01-15 00:49:18] Production.INFO: ProcessCDR(1,14250053,1,1,2) [2025-01-15 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250053', 'tblTempUsageDetail_20' ) start [2025-01-15 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250053', 'tblTempUsageDetail_20' ) end [2025-01-15 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:49:22] Production.INFO: ==21612== Releasing lock... [2025-01-15 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:49:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:50:06 [end_date_ymd] => 2025-01-15 00:50:06 [RateCDR] => 1 ) [2025-01-15 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:50:06' and `end` < '2025-01-15 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:50:19] Production.INFO: count ==154 [2025-01-15 00:50:19] Production.ERROR: pbx CDR StartTime 2025-01-14 21:50:06 - End Time 2025-01-15 00:50:06 [2025-01-15 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250059', 'tblTempUsageDetail_20' ) start [2025-01-15 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250059', 'tblTempUsageDetail_20' ) end [2025-01-15 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250059', 'tblTempVendorCDR_20' ) start [2025-01-15 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250059', 'tblTempVendorCDR_20' ) end [2025-01-15 00:50:19] Production.INFO: ProcessCDR(1,14250059,1,1,2) [2025-01-15 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250059', 'tblTempUsageDetail_20' ) start [2025-01-15 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250059', 'tblTempUsageDetail_20' ) end [2025-01-15 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:50:22] Production.INFO: ==21696== Releasing lock... [2025-01-15 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:51:05 [end_date_ymd] => 2025-01-15 00:51:05 [RateCDR] => 1 ) [2025-01-15 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:51:05' and `end` < '2025-01-15 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:51:17] Production.INFO: count ==172 [2025-01-15 00:51:17] Production.ERROR: pbx CDR StartTime 2025-01-14 21:51:05 - End Time 2025-01-15 00:51:05 [2025-01-15 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250064', 'tblTempUsageDetail_20' ) start [2025-01-15 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250064', 'tblTempUsageDetail_20' ) end [2025-01-15 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250064', 'tblTempVendorCDR_20' ) start [2025-01-15 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250064', 'tblTempVendorCDR_20' ) end [2025-01-15 00:51:17] Production.INFO: ProcessCDR(1,14250064,1,1,2) [2025-01-15 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250064', 'tblTempUsageDetail_20' ) start [2025-01-15 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250064', 'tblTempUsageDetail_20' ) end [2025-01-15 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:51:21] Production.INFO: ==21780== Releasing lock... [2025-01-15 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:52:05 [end_date_ymd] => 2025-01-15 00:52:05 [RateCDR] => 1 ) [2025-01-15 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:52:05' and `end` < '2025-01-15 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:52:17] Production.INFO: count ==172 [2025-01-15 00:52:17] Production.ERROR: pbx CDR StartTime 2025-01-14 21:52:05 - End Time 2025-01-15 00:52:05 [2025-01-15 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250069', 'tblTempUsageDetail_20' ) start [2025-01-15 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250069', 'tblTempUsageDetail_20' ) end [2025-01-15 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250069', 'tblTempVendorCDR_20' ) start [2025-01-15 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250069', 'tblTempVendorCDR_20' ) end [2025-01-15 00:52:17] Production.INFO: ProcessCDR(1,14250069,1,1,2) [2025-01-15 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250069', 'tblTempUsageDetail_20' ) start [2025-01-15 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250069', 'tblTempUsageDetail_20' ) end [2025-01-15 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:52:21] Production.INFO: ==21865== Releasing lock... [2025-01-15 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:53:05 [end_date_ymd] => 2025-01-15 00:53:05 [RateCDR] => 1 ) [2025-01-15 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:53:05' and `end` < '2025-01-15 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:53:20] Production.INFO: count ==172 [2025-01-15 00:53:20] Production.ERROR: pbx CDR StartTime 2025-01-14 21:53:05 - End Time 2025-01-15 00:53:05 [2025-01-15 00:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250074', 'tblTempUsageDetail_20' ) start [2025-01-15 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250074', 'tblTempUsageDetail_20' ) end [2025-01-15 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250074', 'tblTempVendorCDR_20' ) start [2025-01-15 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250074', 'tblTempVendorCDR_20' ) end [2025-01-15 00:53:20] Production.INFO: ProcessCDR(1,14250074,1,1,2) [2025-01-15 00:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250074', 'tblTempUsageDetail_20' ) start [2025-01-15 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250074', 'tblTempUsageDetail_20' ) end [2025-01-15 00:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:53:23] Production.INFO: ==21948== Releasing lock... [2025-01-15 00:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:53:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:54:05 [end_date_ymd] => 2025-01-15 00:54:05 [RateCDR] => 1 ) [2025-01-15 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:54:05' and `end` < '2025-01-15 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:54:17] Production.INFO: count ==172 [2025-01-15 00:54:17] Production.ERROR: pbx CDR StartTime 2025-01-14 21:54:05 - End Time 2025-01-15 00:54:05 [2025-01-15 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250079', 'tblTempUsageDetail_20' ) start [2025-01-15 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250079', 'tblTempUsageDetail_20' ) end [2025-01-15 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250079', 'tblTempVendorCDR_20' ) start [2025-01-15 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250079', 'tblTempVendorCDR_20' ) end [2025-01-15 00:54:17] Production.INFO: ProcessCDR(1,14250079,1,1,2) [2025-01-15 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250079', 'tblTempUsageDetail_20' ) start [2025-01-15 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250079', 'tblTempUsageDetail_20' ) end [2025-01-15 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:54:21] Production.INFO: ==22031== Releasing lock... [2025-01-15 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:55:05 [end_date_ymd] => 2025-01-15 00:55:05 [RateCDR] => 1 ) [2025-01-15 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-01-14 21:55:05' and `end` < '2025-01-15 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-01-15 00:55:18] Production.INFO: count ==172 [2025-01-15 00:55:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:55:05 - End Time 2025-01-15 00:55:05 [2025-01-15 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250084', 'tblTempUsageDetail_20' ) start [2025-01-15 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250084', 'tblTempUsageDetail_20' ) end [2025-01-15 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250084', 'tblTempVendorCDR_20' ) start [2025-01-15 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250084', 'tblTempVendorCDR_20' ) end [2025-01-15 00:55:18] Production.INFO: ProcessCDR(1,14250084,1,1,2) [2025-01-15 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250084', 'tblTempUsageDetail_20' ) start [2025-01-15 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250084', 'tblTempUsageDetail_20' ) end [2025-01-15 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:55:21] Production.INFO: ==22114== Releasing lock... [2025-01-15 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:56:05 [end_date_ymd] => 2025-01-15 00:56:05 [RateCDR] => 1 ) [2025-01-15 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:56:05' and `end` < '2025-01-15 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:56:18] Production.INFO: count ==172 [2025-01-15 00:56:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:56:05 - End Time 2025-01-15 00:56:05 [2025-01-15 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250089', 'tblTempUsageDetail_20' ) start [2025-01-15 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250089', 'tblTempUsageDetail_20' ) end [2025-01-15 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250089', 'tblTempVendorCDR_20' ) start [2025-01-15 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250089', 'tblTempVendorCDR_20' ) end [2025-01-15 00:56:18] Production.INFO: ProcessCDR(1,14250089,1,1,2) [2025-01-15 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250089', 'tblTempUsageDetail_20' ) start [2025-01-15 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250089', 'tblTempUsageDetail_20' ) end [2025-01-15 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:56:21] Production.INFO: ==22197== Releasing lock... [2025-01-15 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:57:05 [end_date_ymd] => 2025-01-15 00:57:05 [RateCDR] => 1 ) [2025-01-15 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:57:05' and `end` < '2025-01-15 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:57:18] Production.INFO: count ==172 [2025-01-15 00:57:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:57:05 - End Time 2025-01-15 00:57:05 [2025-01-15 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250094', 'tblTempUsageDetail_20' ) start [2025-01-15 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250094', 'tblTempUsageDetail_20' ) end [2025-01-15 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250094', 'tblTempVendorCDR_20' ) start [2025-01-15 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250094', 'tblTempVendorCDR_20' ) end [2025-01-15 00:57:18] Production.INFO: ProcessCDR(1,14250094,1,1,2) [2025-01-15 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250094', 'tblTempUsageDetail_20' ) start [2025-01-15 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250094', 'tblTempUsageDetail_20' ) end [2025-01-15 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:57:21] Production.INFO: ==22281== Releasing lock... [2025-01-15 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:58:06 [end_date_ymd] => 2025-01-15 00:58:06 [RateCDR] => 1 ) [2025-01-15 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-01-14 21:58:06' and `end` < '2025-01-15 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-01-15 00:58:19] Production.INFO: count ==176 [2025-01-15 00:58:19] Production.ERROR: pbx CDR StartTime 2025-01-14 21:58:06 - End Time 2025-01-15 00:58:06 [2025-01-15 00:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250099', 'tblTempUsageDetail_20' ) start [2025-01-15 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250099', 'tblTempUsageDetail_20' ) end [2025-01-15 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250099', 'tblTempVendorCDR_20' ) start [2025-01-15 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250099', 'tblTempVendorCDR_20' ) end [2025-01-15 00:58:19] Production.INFO: ProcessCDR(1,14250099,1,1,2) [2025-01-15 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250099', 'tblTempUsageDetail_20' ) start [2025-01-15 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250099', 'tblTempUsageDetail_20' ) end [2025-01-15 00:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:58:23] Production.INFO: ==22370== Releasing lock... [2025-01-15 00:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:58:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 21:59:05 [end_date_ymd] => 2025-01-15 00:59:05 [RateCDR] => 1 ) [2025-01-15 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 21:59:05' and `end` < '2025-01-15 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 00:59:18] Production.INFO: count ==175 [2025-01-15 00:59:18] Production.ERROR: pbx CDR StartTime 2025-01-14 21:59:05 - End Time 2025-01-15 00:59:05 [2025-01-15 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250104', 'tblTempUsageDetail_20' ) start [2025-01-15 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250104', 'tblTempUsageDetail_20' ) end [2025-01-15 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250104', 'tblTempVendorCDR_20' ) start [2025-01-15 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250104', 'tblTempVendorCDR_20' ) end [2025-01-15 00:59:18] Production.INFO: ProcessCDR(1,14250104,1,1,2) [2025-01-15 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250104', 'tblTempUsageDetail_20' ) start [2025-01-15 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250104', 'tblTempUsageDetail_20' ) end [2025-01-15 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 00:59:21] Production.INFO: ==22497== Releasing lock... [2025-01-15 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 00:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:00:06 [end_date_ymd] => 2025-01-15 01:00:06 [RateCDR] => 1 ) [2025-01-15 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:00:06' and `end` < '2025-01-15 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:00:18] Production.INFO: count ==183 [2025-01-15 01:00:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:00:06 - End Time 2025-01-15 01:00:06 [2025-01-15 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250109', 'tblTempUsageDetail_20' ) start [2025-01-15 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250109', 'tblTempUsageDetail_20' ) end [2025-01-15 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250109', 'tblTempVendorCDR_20' ) start [2025-01-15 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250109', 'tblTempVendorCDR_20' ) end [2025-01-15 01:00:18] Production.INFO: ProcessCDR(1,14250109,1,1,2) [2025-01-15 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250109', 'tblTempUsageDetail_20' ) start [2025-01-15 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250109', 'tblTempUsageDetail_20' ) end [2025-01-15 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:00:21] Production.INFO: ==22583== Releasing lock... [2025-01-15 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:00:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 01:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:01:04 [end_date_ymd] => 2025-01-15 01:01:04 [RateCDR] => 1 ) [2025-01-15 01:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:01:04' and `end` < '2025-01-15 01:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:01:17] Production.INFO: count ==189 [2025-01-15 01:01:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:01:04 - End Time 2025-01-15 01:01:04 [2025-01-15 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250115', 'tblTempUsageDetail_20' ) start [2025-01-15 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250115', 'tblTempUsageDetail_20' ) end [2025-01-15 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250115', 'tblTempVendorCDR_20' ) start [2025-01-15 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250115', 'tblTempVendorCDR_20' ) end [2025-01-15 01:01:17] Production.INFO: ProcessCDR(1,14250115,1,1,2) [2025-01-15 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250115', 'tblTempUsageDetail_20' ) start [2025-01-15 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250115', 'tblTempUsageDetail_20' ) end [2025-01-15 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:01:21] Production.INFO: ==22683== Releasing lock... [2025-01-15 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:02:06 [end_date_ymd] => 2025-01-15 01:02:06 [RateCDR] => 1 ) [2025-01-15 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-01-14 22:02:06' and `end` < '2025-01-15 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-01-15 01:02:19] Production.INFO: count ==191 [2025-01-15 01:02:19] Production.ERROR: pbx CDR StartTime 2025-01-14 22:02:06 - End Time 2025-01-15 01:02:06 [2025-01-15 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250120', 'tblTempUsageDetail_20' ) start [2025-01-15 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250120', 'tblTempUsageDetail_20' ) end [2025-01-15 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250120', 'tblTempVendorCDR_20' ) start [2025-01-15 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250120', 'tblTempVendorCDR_20' ) end [2025-01-15 01:02:19] Production.INFO: ProcessCDR(1,14250120,1,1,2) [2025-01-15 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250120', 'tblTempUsageDetail_20' ) start [2025-01-15 01:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250120', 'tblTempUsageDetail_20' ) end [2025-01-15 01:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:02:25] Production.INFO: ==22769== Releasing lock... [2025-01-15 01:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:02:25] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:03:05 [end_date_ymd] => 2025-01-15 01:03:05 [RateCDR] => 1 ) [2025-01-15 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:03:05' and `end` < '2025-01-15 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:03:18] Production.INFO: count ==191 [2025-01-15 01:03:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:03:05 - End Time 2025-01-15 01:03:05 [2025-01-15 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250125', 'tblTempUsageDetail_20' ) start [2025-01-15 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250125', 'tblTempUsageDetail_20' ) end [2025-01-15 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250125', 'tblTempVendorCDR_20' ) start [2025-01-15 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250125', 'tblTempVendorCDR_20' ) end [2025-01-15 01:03:18] Production.INFO: ProcessCDR(1,14250125,1,1,2) [2025-01-15 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250125', 'tblTempUsageDetail_20' ) start [2025-01-15 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250125', 'tblTempUsageDetail_20' ) end [2025-01-15 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:03:21] Production.INFO: ==22852== Releasing lock... [2025-01-15 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:04:05 [end_date_ymd] => 2025-01-15 01:04:05 [RateCDR] => 1 ) [2025-01-15 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:04:05' and `end` < '2025-01-15 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:04:19] Production.INFO: count ==192 [2025-01-15 01:04:19] Production.ERROR: pbx CDR StartTime 2025-01-14 22:04:05 - End Time 2025-01-15 01:04:05 [2025-01-15 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250130', 'tblTempUsageDetail_20' ) start [2025-01-15 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250130', 'tblTempUsageDetail_20' ) end [2025-01-15 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250130', 'tblTempVendorCDR_20' ) start [2025-01-15 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250130', 'tblTempVendorCDR_20' ) end [2025-01-15 01:04:19] Production.INFO: ProcessCDR(1,14250130,1,1,2) [2025-01-15 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250130', 'tblTempUsageDetail_20' ) start [2025-01-15 01:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250130', 'tblTempUsageDetail_20' ) end [2025-01-15 01:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:04:24] Production.INFO: ==22934== Releasing lock... [2025-01-15 01:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:04:24] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:05:05 [end_date_ymd] => 2025-01-15 01:05:05 [RateCDR] => 1 ) [2025-01-15 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:05:05' and `end` < '2025-01-15 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:05:19] Production.INFO: count ==192 [2025-01-15 01:05:19] Production.ERROR: pbx CDR StartTime 2025-01-14 22:05:05 - End Time 2025-01-15 01:05:05 [2025-01-15 01:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250135', 'tblTempUsageDetail_20' ) start [2025-01-15 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250135', 'tblTempUsageDetail_20' ) end [2025-01-15 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250135', 'tblTempVendorCDR_20' ) start [2025-01-15 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250135', 'tblTempVendorCDR_20' ) end [2025-01-15 01:05:19] Production.INFO: ProcessCDR(1,14250135,1,1,2) [2025-01-15 01:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250135', 'tblTempUsageDetail_20' ) start [2025-01-15 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250135', 'tblTempUsageDetail_20' ) end [2025-01-15 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:05:22] Production.INFO: ==23019== Releasing lock... [2025-01-15 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:06:05 [end_date_ymd] => 2025-01-15 01:06:05 [RateCDR] => 1 ) [2025-01-15 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:06:05' and `end` < '2025-01-15 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:06:18] Production.INFO: count ==188 [2025-01-15 01:06:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:06:05 - End Time 2025-01-15 01:06:05 [2025-01-15 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250140', 'tblTempUsageDetail_20' ) start [2025-01-15 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250140', 'tblTempUsageDetail_20' ) end [2025-01-15 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250140', 'tblTempVendorCDR_20' ) start [2025-01-15 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250140', 'tblTempVendorCDR_20' ) end [2025-01-15 01:06:18] Production.INFO: ProcessCDR(1,14250140,1,1,2) [2025-01-15 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250140', 'tblTempUsageDetail_20' ) start [2025-01-15 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250140', 'tblTempUsageDetail_20' ) end [2025-01-15 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:06:21] Production.INFO: ==23103== Releasing lock... [2025-01-15 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:07:05 [end_date_ymd] => 2025-01-15 01:07:05 [RateCDR] => 1 ) [2025-01-15 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:07:05' and `end` < '2025-01-15 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:07:18] Production.INFO: count ==188 [2025-01-15 01:07:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:07:05 - End Time 2025-01-15 01:07:05 [2025-01-15 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250145', 'tblTempUsageDetail_20' ) start [2025-01-15 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250145', 'tblTempUsageDetail_20' ) end [2025-01-15 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250145', 'tblTempVendorCDR_20' ) start [2025-01-15 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250145', 'tblTempVendorCDR_20' ) end [2025-01-15 01:07:18] Production.INFO: ProcessCDR(1,14250145,1,1,2) [2025-01-15 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250145', 'tblTempUsageDetail_20' ) start [2025-01-15 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250145', 'tblTempUsageDetail_20' ) end [2025-01-15 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:07:22] Production.INFO: ==23189== Releasing lock... [2025-01-15 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:08:05 [end_date_ymd] => 2025-01-15 01:08:05 [RateCDR] => 1 ) [2025-01-15 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:08:05' and `end` < '2025-01-15 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:08:17] Production.INFO: count ==185 [2025-01-15 01:08:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:08:05 - End Time 2025-01-15 01:08:05 [2025-01-15 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250150', 'tblTempUsageDetail_20' ) start [2025-01-15 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250150', 'tblTempUsageDetail_20' ) end [2025-01-15 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250150', 'tblTempVendorCDR_20' ) start [2025-01-15 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250150', 'tblTempVendorCDR_20' ) end [2025-01-15 01:08:17] Production.INFO: ProcessCDR(1,14250150,1,1,2) [2025-01-15 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250150', 'tblTempUsageDetail_20' ) start [2025-01-15 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250150', 'tblTempUsageDetail_20' ) end [2025-01-15 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:08:21] Production.INFO: ==23271== Releasing lock... [2025-01-15 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:09:05 [end_date_ymd] => 2025-01-15 01:09:05 [RateCDR] => 1 ) [2025-01-15 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:09:05' and `end` < '2025-01-15 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:09:17] Production.INFO: count ==184 [2025-01-15 01:09:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:09:05 - End Time 2025-01-15 01:09:05 [2025-01-15 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250155', 'tblTempUsageDetail_20' ) start [2025-01-15 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250155', 'tblTempUsageDetail_20' ) end [2025-01-15 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250155', 'tblTempVendorCDR_20' ) start [2025-01-15 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250155', 'tblTempVendorCDR_20' ) end [2025-01-15 01:09:17] Production.INFO: ProcessCDR(1,14250155,1,1,2) [2025-01-15 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250155', 'tblTempUsageDetail_20' ) start [2025-01-15 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250155', 'tblTempUsageDetail_20' ) end [2025-01-15 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:09:21] Production.INFO: ==23354== Releasing lock... [2025-01-15 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:10:06 [end_date_ymd] => 2025-01-15 01:10:06 [RateCDR] => 1 ) [2025-01-15 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:10:06' and `end` < '2025-01-15 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:10:19] Production.INFO: count ==188 [2025-01-15 01:10:19] Production.ERROR: pbx CDR StartTime 2025-01-14 22:10:06 - End Time 2025-01-15 01:10:06 [2025-01-15 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250161', 'tblTempUsageDetail_20' ) start [2025-01-15 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250161', 'tblTempUsageDetail_20' ) end [2025-01-15 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250161', 'tblTempVendorCDR_20' ) start [2025-01-15 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250161', 'tblTempVendorCDR_20' ) end [2025-01-15 01:10:19] Production.INFO: ProcessCDR(1,14250161,1,1,2) [2025-01-15 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250161', 'tblTempUsageDetail_20' ) start [2025-01-15 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250161', 'tblTempUsageDetail_20' ) end [2025-01-15 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:10:22] Production.INFO: ==23438== Releasing lock... [2025-01-15 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:11:05 [end_date_ymd] => 2025-01-15 01:11:05 [RateCDR] => 1 ) [2025-01-15 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:11:05' and `end` < '2025-01-15 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:11:17] Production.INFO: count ==187 [2025-01-15 01:11:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:11:05 - End Time 2025-01-15 01:11:05 [2025-01-15 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250166', 'tblTempUsageDetail_20' ) start [2025-01-15 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250166', 'tblTempUsageDetail_20' ) end [2025-01-15 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250166', 'tblTempVendorCDR_20' ) start [2025-01-15 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250166', 'tblTempVendorCDR_20' ) end [2025-01-15 01:11:17] Production.INFO: ProcessCDR(1,14250166,1,1,2) [2025-01-15 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250166', 'tblTempUsageDetail_20' ) start [2025-01-15 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250166', 'tblTempUsageDetail_20' ) end [2025-01-15 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:11:21] Production.INFO: ==23520== Releasing lock... [2025-01-15 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:12:05 [end_date_ymd] => 2025-01-15 01:12:05 [RateCDR] => 1 ) [2025-01-15 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:12:05' and `end` < '2025-01-15 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:12:18] Production.INFO: count ==187 [2025-01-15 01:12:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:12:05 - End Time 2025-01-15 01:12:05 [2025-01-15 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250171', 'tblTempUsageDetail_20' ) start [2025-01-15 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250171', 'tblTempUsageDetail_20' ) end [2025-01-15 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250171', 'tblTempVendorCDR_20' ) start [2025-01-15 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250171', 'tblTempVendorCDR_20' ) end [2025-01-15 01:12:18] Production.INFO: ProcessCDR(1,14250171,1,1,2) [2025-01-15 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250171', 'tblTempUsageDetail_20' ) start [2025-01-15 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250171', 'tblTempUsageDetail_20' ) end [2025-01-15 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:12:22] Production.INFO: ==23607== Releasing lock... [2025-01-15 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:12:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:13:05 [end_date_ymd] => 2025-01-15 01:13:05 [RateCDR] => 1 ) [2025-01-15 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:13:05' and `end` < '2025-01-15 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:13:17] Production.INFO: count ==187 [2025-01-15 01:13:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:13:05 - End Time 2025-01-15 01:13:05 [2025-01-15 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250176', 'tblTempUsageDetail_20' ) start [2025-01-15 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250176', 'tblTempUsageDetail_20' ) end [2025-01-15 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250176', 'tblTempVendorCDR_20' ) start [2025-01-15 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250176', 'tblTempVendorCDR_20' ) end [2025-01-15 01:13:17] Production.INFO: ProcessCDR(1,14250176,1,1,2) [2025-01-15 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250176', 'tblTempUsageDetail_20' ) start [2025-01-15 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250176', 'tblTempUsageDetail_20' ) end [2025-01-15 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:13:21] Production.INFO: ==23693== Releasing lock... [2025-01-15 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:14:05 [end_date_ymd] => 2025-01-15 01:14:05 [RateCDR] => 1 ) [2025-01-15 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:14:05' and `end` < '2025-01-15 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:14:17] Production.INFO: count ==187 [2025-01-15 01:14:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:14:05 - End Time 2025-01-15 01:14:05 [2025-01-15 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250181', 'tblTempUsageDetail_20' ) start [2025-01-15 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250181', 'tblTempUsageDetail_20' ) end [2025-01-15 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250181', 'tblTempVendorCDR_20' ) start [2025-01-15 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250181', 'tblTempVendorCDR_20' ) end [2025-01-15 01:14:17] Production.INFO: ProcessCDR(1,14250181,1,1,2) [2025-01-15 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250181', 'tblTempUsageDetail_20' ) start [2025-01-15 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250181', 'tblTempUsageDetail_20' ) end [2025-01-15 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:14:21] Production.INFO: ==23780== Releasing lock... [2025-01-15 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:15:05 [end_date_ymd] => 2025-01-15 01:15:05 [RateCDR] => 1 ) [2025-01-15 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-01-14 22:15:05' and `end` < '2025-01-15 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-01-15 01:15:17] Production.INFO: count ==186 [2025-01-15 01:15:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:15:05 - End Time 2025-01-15 01:15:05 [2025-01-15 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250186', 'tblTempUsageDetail_20' ) start [2025-01-15 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250186', 'tblTempUsageDetail_20' ) end [2025-01-15 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250186', 'tblTempVendorCDR_20' ) start [2025-01-15 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250186', 'tblTempVendorCDR_20' ) end [2025-01-15 01:15:17] Production.INFO: ProcessCDR(1,14250186,1,1,2) [2025-01-15 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250186', 'tblTempUsageDetail_20' ) start [2025-01-15 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250186', 'tblTempUsageDetail_20' ) end [2025-01-15 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:15:21] Production.INFO: ==23900== Releasing lock... [2025-01-15 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:16:05 [end_date_ymd] => 2025-01-15 01:16:05 [RateCDR] => 1 ) [2025-01-15 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:16:05' and `end` < '2025-01-15 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:16:18] Production.INFO: count ==185 [2025-01-15 01:16:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:16:05 - End Time 2025-01-15 01:16:05 [2025-01-15 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250191', 'tblTempUsageDetail_20' ) start [2025-01-15 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250191', 'tblTempUsageDetail_20' ) end [2025-01-15 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250191', 'tblTempVendorCDR_20' ) start [2025-01-15 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250191', 'tblTempVendorCDR_20' ) end [2025-01-15 01:16:18] Production.INFO: ProcessCDR(1,14250191,1,1,2) [2025-01-15 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250191', 'tblTempUsageDetail_20' ) start [2025-01-15 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250191', 'tblTempUsageDetail_20' ) end [2025-01-15 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:16:22] Production.INFO: ==23984== Releasing lock... [2025-01-15 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:16:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:17:05 [end_date_ymd] => 2025-01-15 01:17:05 [RateCDR] => 1 ) [2025-01-15 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:17:05' and `end` < '2025-01-15 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:17:19] Production.INFO: count ==185 [2025-01-15 01:17:19] Production.ERROR: pbx CDR StartTime 2025-01-14 22:17:05 - End Time 2025-01-15 01:17:05 [2025-01-15 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250196', 'tblTempUsageDetail_20' ) start [2025-01-15 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250196', 'tblTempUsageDetail_20' ) end [2025-01-15 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250196', 'tblTempVendorCDR_20' ) start [2025-01-15 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250196', 'tblTempVendorCDR_20' ) end [2025-01-15 01:17:19] Production.INFO: ProcessCDR(1,14250196,1,1,2) [2025-01-15 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250196', 'tblTempUsageDetail_20' ) start [2025-01-15 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250196', 'tblTempUsageDetail_20' ) end [2025-01-15 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:17:22] Production.INFO: ==24066== Releasing lock... [2025-01-15 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:17:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:18:05 [end_date_ymd] => 2025-01-15 01:18:05 [RateCDR] => 1 ) [2025-01-15 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:18:05' and `end` < '2025-01-15 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:18:18] Production.INFO: count ==185 [2025-01-15 01:18:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:18:05 - End Time 2025-01-15 01:18:05 [2025-01-15 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250201', 'tblTempUsageDetail_20' ) start [2025-01-15 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250201', 'tblTempUsageDetail_20' ) end [2025-01-15 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250201', 'tblTempVendorCDR_20' ) start [2025-01-15 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250201', 'tblTempVendorCDR_20' ) end [2025-01-15 01:18:18] Production.INFO: ProcessCDR(1,14250201,1,1,2) [2025-01-15 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250201', 'tblTempUsageDetail_20' ) start [2025-01-15 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250201', 'tblTempUsageDetail_20' ) end [2025-01-15 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:18:21] Production.INFO: ==24148== Releasing lock... [2025-01-15 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:19:05 [end_date_ymd] => 2025-01-15 01:19:05 [RateCDR] => 1 ) [2025-01-15 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:19:05' and `end` < '2025-01-15 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:19:17] Production.INFO: count ==183 [2025-01-15 01:19:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:19:05 - End Time 2025-01-15 01:19:05 [2025-01-15 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250206', 'tblTempUsageDetail_20' ) start [2025-01-15 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250206', 'tblTempUsageDetail_20' ) end [2025-01-15 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250206', 'tblTempVendorCDR_20' ) start [2025-01-15 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250206', 'tblTempVendorCDR_20' ) end [2025-01-15 01:19:17] Production.INFO: ProcessCDR(1,14250206,1,1,2) [2025-01-15 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250206', 'tblTempUsageDetail_20' ) start [2025-01-15 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250206', 'tblTempUsageDetail_20' ) end [2025-01-15 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:19:22] Production.INFO: ==24235== Releasing lock... [2025-01-15 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:19:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:20:06 [end_date_ymd] => 2025-01-15 01:20:06 [RateCDR] => 1 ) [2025-01-15 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:20:06' and `end` < '2025-01-15 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:20:18] Production.INFO: count ==191 [2025-01-15 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:20:06 - End Time 2025-01-15 01:20:06 [2025-01-15 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250211', 'tblTempUsageDetail_20' ) start [2025-01-15 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250211', 'tblTempUsageDetail_20' ) end [2025-01-15 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250211', 'tblTempVendorCDR_20' ) start [2025-01-15 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250211', 'tblTempVendorCDR_20' ) end [2025-01-15 01:20:18] Production.INFO: ProcessCDR(1,14250211,1,1,2) [2025-01-15 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250211', 'tblTempUsageDetail_20' ) start [2025-01-15 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250211', 'tblTempUsageDetail_20' ) end [2025-01-15 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:20:22] Production.INFO: ==24321== Releasing lock... [2025-01-15 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:21:06 [end_date_ymd] => 2025-01-15 01:21:06 [RateCDR] => 1 ) [2025-01-15 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-01-14 22:21:06' and `end` < '2025-01-15 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-01-15 01:21:18] Production.INFO: count ==190 [2025-01-15 01:21:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:21:06 - End Time 2025-01-15 01:21:06 [2025-01-15 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250217', 'tblTempUsageDetail_20' ) start [2025-01-15 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250217', 'tblTempUsageDetail_20' ) end [2025-01-15 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250217', 'tblTempVendorCDR_20' ) start [2025-01-15 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250217', 'tblTempVendorCDR_20' ) end [2025-01-15 01:21:18] Production.INFO: ProcessCDR(1,14250217,1,1,2) [2025-01-15 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250217', 'tblTempUsageDetail_20' ) start [2025-01-15 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250217', 'tblTempUsageDetail_20' ) end [2025-01-15 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:21:21] Production.INFO: ==24403== Releasing lock... [2025-01-15 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:22:05 [end_date_ymd] => 2025-01-15 01:22:05 [RateCDR] => 1 ) [2025-01-15 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:22:05' and `end` < '2025-01-15 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:22:18] Production.INFO: count ==189 [2025-01-15 01:22:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:22:05 - End Time 2025-01-15 01:22:05 [2025-01-15 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250222', 'tblTempUsageDetail_20' ) start [2025-01-15 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250222', 'tblTempUsageDetail_20' ) end [2025-01-15 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250222', 'tblTempVendorCDR_20' ) start [2025-01-15 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250222', 'tblTempVendorCDR_20' ) end [2025-01-15 01:22:18] Production.INFO: ProcessCDR(1,14250222,1,1,2) [2025-01-15 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250222', 'tblTempUsageDetail_20' ) start [2025-01-15 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250222', 'tblTempUsageDetail_20' ) end [2025-01-15 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:22:21] Production.INFO: ==24483== Releasing lock... [2025-01-15 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:22:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:23:05 [end_date_ymd] => 2025-01-15 01:23:05 [RateCDR] => 1 ) [2025-01-15 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:23:05' and `end` < '2025-01-15 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:23:17] Production.INFO: count ==189 [2025-01-15 01:23:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:23:05 - End Time 2025-01-15 01:23:05 [2025-01-15 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250227', 'tblTempUsageDetail_20' ) start [2025-01-15 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250227', 'tblTempUsageDetail_20' ) end [2025-01-15 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250227', 'tblTempVendorCDR_20' ) start [2025-01-15 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250227', 'tblTempVendorCDR_20' ) end [2025-01-15 01:23:17] Production.INFO: ProcessCDR(1,14250227,1,1,2) [2025-01-15 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250227', 'tblTempUsageDetail_20' ) start [2025-01-15 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250227', 'tblTempUsageDetail_20' ) end [2025-01-15 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:23:21] Production.INFO: ==24563== Releasing lock... [2025-01-15 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:23:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 01:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:24:04 [end_date_ymd] => 2025-01-15 01:24:04 [RateCDR] => 1 ) [2025-01-15 01:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:24:04' and `end` < '2025-01-15 01:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:24:17] Production.INFO: count ==189 [2025-01-15 01:24:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:24:04 - End Time 2025-01-15 01:24:04 [2025-01-15 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250232', 'tblTempUsageDetail_20' ) start [2025-01-15 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250232', 'tblTempUsageDetail_20' ) end [2025-01-15 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250232', 'tblTempVendorCDR_20' ) start [2025-01-15 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250232', 'tblTempVendorCDR_20' ) end [2025-01-15 01:24:17] Production.INFO: ProcessCDR(1,14250232,1,1,2) [2025-01-15 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250232', 'tblTempUsageDetail_20' ) start [2025-01-15 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250232', 'tblTempUsageDetail_20' ) end [2025-01-15 01:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:24:20] Production.INFO: ==24645== Releasing lock... [2025-01-15 01:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:24:20] Production.INFO: 29 MB #Memory Used# [2025-01-15 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:25:05 [end_date_ymd] => 2025-01-15 01:25:05 [RateCDR] => 1 ) [2025-01-15 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:25:05' and `end` < '2025-01-15 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:25:19] Production.INFO: count ==189 [2025-01-15 01:25:19] Production.ERROR: pbx CDR StartTime 2025-01-14 22:25:05 - End Time 2025-01-15 01:25:05 [2025-01-15 01:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250237', 'tblTempUsageDetail_20' ) start [2025-01-15 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250237', 'tblTempUsageDetail_20' ) end [2025-01-15 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250237', 'tblTempVendorCDR_20' ) start [2025-01-15 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250237', 'tblTempVendorCDR_20' ) end [2025-01-15 01:25:19] Production.INFO: ProcessCDR(1,14250237,1,1,2) [2025-01-15 01:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250237', 'tblTempUsageDetail_20' ) start [2025-01-15 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250237', 'tblTempUsageDetail_20' ) end [2025-01-15 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:25:23] Production.INFO: ==24724== Releasing lock... [2025-01-15 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:25:23] Production.INFO: 29 MB #Memory Used# [2025-01-15 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:26:05 [end_date_ymd] => 2025-01-15 01:26:05 [RateCDR] => 1 ) [2025-01-15 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-01-14 22:26:05' and `end` < '2025-01-15 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-01-15 01:26:18] Production.INFO: count ==189 [2025-01-15 01:26:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:26:05 - End Time 2025-01-15 01:26:05 [2025-01-15 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250242', 'tblTempUsageDetail_20' ) start [2025-01-15 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250242', 'tblTempUsageDetail_20' ) end [2025-01-15 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250242', 'tblTempVendorCDR_20' ) start [2025-01-15 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250242', 'tblTempVendorCDR_20' ) end [2025-01-15 01:26:18] Production.INFO: ProcessCDR(1,14250242,1,1,2) [2025-01-15 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250242', 'tblTempUsageDetail_20' ) start [2025-01-15 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250242', 'tblTempUsageDetail_20' ) end [2025-01-15 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:26:21] Production.INFO: ==24811== Releasing lock... [2025-01-15 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:26:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:27:05 [end_date_ymd] => 2025-01-15 01:27:05 [RateCDR] => 1 ) [2025-01-15 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:27:05' and `end` < '2025-01-15 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:27:18] Production.INFO: count ==189 [2025-01-15 01:27:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:27:05 - End Time 2025-01-15 01:27:05 [2025-01-15 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250247', 'tblTempUsageDetail_20' ) start [2025-01-15 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250247', 'tblTempUsageDetail_20' ) end [2025-01-15 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250247', 'tblTempVendorCDR_20' ) start [2025-01-15 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250247', 'tblTempVendorCDR_20' ) end [2025-01-15 01:27:18] Production.INFO: ProcessCDR(1,14250247,1,1,2) [2025-01-15 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250247', 'tblTempUsageDetail_20' ) start [2025-01-15 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250247', 'tblTempUsageDetail_20' ) end [2025-01-15 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:27:22] Production.INFO: ==24895== Releasing lock... [2025-01-15 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:27:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:28:05 [end_date_ymd] => 2025-01-15 01:28:05 [RateCDR] => 1 ) [2025-01-15 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-01-14 22:28:05' and `end` < '2025-01-15 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-01-15 01:28:18] Production.INFO: count ==190 [2025-01-15 01:28:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:28:05 - End Time 2025-01-15 01:28:05 [2025-01-15 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250252', 'tblTempUsageDetail_20' ) start [2025-01-15 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250252', 'tblTempUsageDetail_20' ) end [2025-01-15 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250252', 'tblTempVendorCDR_20' ) start [2025-01-15 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250252', 'tblTempVendorCDR_20' ) end [2025-01-15 01:28:18] Production.INFO: ProcessCDR(1,14250252,1,1,2) [2025-01-15 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250252', 'tblTempUsageDetail_20' ) start [2025-01-15 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250252', 'tblTempUsageDetail_20' ) end [2025-01-15 01:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:28:23] Production.INFO: ==24975== Releasing lock... [2025-01-15 01:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:28:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:29:05 [end_date_ymd] => 2025-01-15 01:29:05 [RateCDR] => 1 ) [2025-01-15 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:29:05' and `end` < '2025-01-15 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:29:18] Production.INFO: count ==190 [2025-01-15 01:29:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:29:05 - End Time 2025-01-15 01:29:05 [2025-01-15 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250257', 'tblTempUsageDetail_20' ) start [2025-01-15 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250257', 'tblTempUsageDetail_20' ) end [2025-01-15 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250257', 'tblTempVendorCDR_20' ) start [2025-01-15 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250257', 'tblTempVendorCDR_20' ) end [2025-01-15 01:29:18] Production.INFO: ProcessCDR(1,14250257,1,1,2) [2025-01-15 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250257', 'tblTempUsageDetail_20' ) start [2025-01-15 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250257', 'tblTempUsageDetail_20' ) end [2025-01-15 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:29:21] Production.INFO: ==25056== Releasing lock... [2025-01-15 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:30:06 [end_date_ymd] => 2025-01-15 01:30:06 [RateCDR] => 1 ) [2025-01-15 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:30:06' and `end` < '2025-01-15 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:30:19] Production.INFO: count ==198 [2025-01-15 01:30:19] Production.ERROR: pbx CDR StartTime 2025-01-14 22:30:06 - End Time 2025-01-15 01:30:06 [2025-01-15 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250263', 'tblTempUsageDetail_20' ) start [2025-01-15 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250263', 'tblTempUsageDetail_20' ) end [2025-01-15 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250263', 'tblTempVendorCDR_20' ) start [2025-01-15 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250263', 'tblTempVendorCDR_20' ) end [2025-01-15 01:30:19] Production.INFO: ProcessCDR(1,14250263,1,1,2) [2025-01-15 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250263', 'tblTempUsageDetail_20' ) start [2025-01-15 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250263', 'tblTempUsageDetail_20' ) end [2025-01-15 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:30:22] Production.INFO: ==25177== Releasing lock... [2025-01-15 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:31:05 [end_date_ymd] => 2025-01-15 01:31:05 [RateCDR] => 1 ) [2025-01-15 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:31:05' and `end` < '2025-01-15 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:31:17] Production.INFO: count ==202 [2025-01-15 01:31:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:31:05 - End Time 2025-01-15 01:31:05 [2025-01-15 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250268', 'tblTempUsageDetail_20' ) start [2025-01-15 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250268', 'tblTempUsageDetail_20' ) end [2025-01-15 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250268', 'tblTempVendorCDR_20' ) start [2025-01-15 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250268', 'tblTempVendorCDR_20' ) end [2025-01-15 01:31:17] Production.INFO: ProcessCDR(1,14250268,1,1,2) [2025-01-15 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250268', 'tblTempUsageDetail_20' ) start [2025-01-15 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250268', 'tblTempUsageDetail_20' ) end [2025-01-15 01:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:31:20] Production.INFO: ==25259== Releasing lock... [2025-01-15 01:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:31:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:32:05 [end_date_ymd] => 2025-01-15 01:32:05 [RateCDR] => 1 ) [2025-01-15 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:32:05' and `end` < '2025-01-15 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:32:18] Production.INFO: count ==202 [2025-01-15 01:32:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:32:05 - End Time 2025-01-15 01:32:05 [2025-01-15 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250273', 'tblTempUsageDetail_20' ) start [2025-01-15 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250273', 'tblTempUsageDetail_20' ) end [2025-01-15 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250273', 'tblTempVendorCDR_20' ) start [2025-01-15 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250273', 'tblTempVendorCDR_20' ) end [2025-01-15 01:32:18] Production.INFO: ProcessCDR(1,14250273,1,1,2) [2025-01-15 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250273', 'tblTempUsageDetail_20' ) start [2025-01-15 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250273', 'tblTempUsageDetail_20' ) end [2025-01-15 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:32:21] Production.INFO: ==25337== Releasing lock... [2025-01-15 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:33:05 [end_date_ymd] => 2025-01-15 01:33:05 [RateCDR] => 1 ) [2025-01-15 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:33:05' and `end` < '2025-01-15 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:33:17] Production.INFO: count ==202 [2025-01-15 01:33:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:33:05 - End Time 2025-01-15 01:33:05 [2025-01-15 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250278', 'tblTempUsageDetail_20' ) start [2025-01-15 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250278', 'tblTempUsageDetail_20' ) end [2025-01-15 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250278', 'tblTempVendorCDR_20' ) start [2025-01-15 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250278', 'tblTempVendorCDR_20' ) end [2025-01-15 01:33:17] Production.INFO: ProcessCDR(1,14250278,1,1,2) [2025-01-15 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250278', 'tblTempUsageDetail_20' ) start [2025-01-15 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250278', 'tblTempUsageDetail_20' ) end [2025-01-15 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:33:21] Production.INFO: ==25413== Releasing lock... [2025-01-15 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:34:05 [end_date_ymd] => 2025-01-15 01:34:05 [RateCDR] => 1 ) [2025-01-15 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:34:05' and `end` < '2025-01-15 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:34:19] Production.INFO: count ==202 [2025-01-15 01:34:19] Production.ERROR: pbx CDR StartTime 2025-01-14 22:34:05 - End Time 2025-01-15 01:34:05 [2025-01-15 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250283', 'tblTempUsageDetail_20' ) start [2025-01-15 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250283', 'tblTempUsageDetail_20' ) end [2025-01-15 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250283', 'tblTempVendorCDR_20' ) start [2025-01-15 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250283', 'tblTempVendorCDR_20' ) end [2025-01-15 01:34:19] Production.INFO: ProcessCDR(1,14250283,1,1,2) [2025-01-15 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250283', 'tblTempUsageDetail_20' ) start [2025-01-15 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250283', 'tblTempUsageDetail_20' ) end [2025-01-15 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:34:22] Production.INFO: ==25493== Releasing lock... [2025-01-15 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:34:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:35:04 [end_date_ymd] => 2025-01-15 01:35:04 [RateCDR] => 1 ) [2025-01-15 01:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:35:04' and `end` < '2025-01-15 01:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:35:17] Production.INFO: count ==204 [2025-01-15 01:35:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:35:04 - End Time 2025-01-15 01:35:04 [2025-01-15 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250288', 'tblTempUsageDetail_20' ) start [2025-01-15 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250288', 'tblTempUsageDetail_20' ) end [2025-01-15 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250288', 'tblTempVendorCDR_20' ) start [2025-01-15 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250288', 'tblTempVendorCDR_20' ) end [2025-01-15 01:35:17] Production.INFO: ProcessCDR(1,14250288,1,1,2) [2025-01-15 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250288', 'tblTempUsageDetail_20' ) start [2025-01-15 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250288', 'tblTempUsageDetail_20' ) end [2025-01-15 01:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:35:20] Production.INFO: ==25570== Releasing lock... [2025-01-15 01:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:35:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:36:05 [end_date_ymd] => 2025-01-15 01:36:05 [RateCDR] => 1 ) [2025-01-15 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:36:05' and `end` < '2025-01-15 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:36:18] Production.INFO: count ==204 [2025-01-15 01:36:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:36:05 - End Time 2025-01-15 01:36:05 [2025-01-15 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250293', 'tblTempUsageDetail_20' ) start [2025-01-15 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250293', 'tblTempUsageDetail_20' ) end [2025-01-15 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250293', 'tblTempVendorCDR_20' ) start [2025-01-15 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250293', 'tblTempVendorCDR_20' ) end [2025-01-15 01:36:18] Production.INFO: ProcessCDR(1,14250293,1,1,2) [2025-01-15 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250293', 'tblTempUsageDetail_20' ) start [2025-01-15 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250293', 'tblTempUsageDetail_20' ) end [2025-01-15 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:36:21] Production.INFO: ==25650== Releasing lock... [2025-01-15 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:37:04 [end_date_ymd] => 2025-01-15 01:37:04 [RateCDR] => 1 ) [2025-01-15 01:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:37:04' and `end` < '2025-01-15 01:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:37:18] Production.INFO: count ==204 [2025-01-15 01:37:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:37:04 - End Time 2025-01-15 01:37:04 [2025-01-15 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250298', 'tblTempUsageDetail_20' ) start [2025-01-15 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250298', 'tblTempUsageDetail_20' ) end [2025-01-15 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250298', 'tblTempVendorCDR_20' ) start [2025-01-15 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250298', 'tblTempVendorCDR_20' ) end [2025-01-15 01:37:18] Production.INFO: ProcessCDR(1,14250298,1,1,2) [2025-01-15 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250298', 'tblTempUsageDetail_20' ) start [2025-01-15 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250298', 'tblTempUsageDetail_20' ) end [2025-01-15 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:37:21] Production.INFO: ==25725== Releasing lock... [2025-01-15 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:38:05 [end_date_ymd] => 2025-01-15 01:38:05 [RateCDR] => 1 ) [2025-01-15 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:38:05' and `end` < '2025-01-15 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:38:18] Production.INFO: count ==204 [2025-01-15 01:38:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:38:05 - End Time 2025-01-15 01:38:05 [2025-01-15 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250303', 'tblTempUsageDetail_20' ) start [2025-01-15 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250303', 'tblTempUsageDetail_20' ) end [2025-01-15 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250303', 'tblTempVendorCDR_20' ) start [2025-01-15 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250303', 'tblTempVendorCDR_20' ) end [2025-01-15 01:38:18] Production.INFO: ProcessCDR(1,14250303,1,1,2) [2025-01-15 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250303', 'tblTempUsageDetail_20' ) start [2025-01-15 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250303', 'tblTempUsageDetail_20' ) end [2025-01-15 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:38:21] Production.INFO: ==25796== Releasing lock... [2025-01-15 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:39:05 [end_date_ymd] => 2025-01-15 01:39:05 [RateCDR] => 1 ) [2025-01-15 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:39:05' and `end` < '2025-01-15 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:39:17] Production.INFO: count ==204 [2025-01-15 01:39:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:39:05 - End Time 2025-01-15 01:39:05 [2025-01-15 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250307', 'tblTempUsageDetail_20' ) start [2025-01-15 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250307', 'tblTempUsageDetail_20' ) end [2025-01-15 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250307', 'tblTempVendorCDR_20' ) start [2025-01-15 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250307', 'tblTempVendorCDR_20' ) end [2025-01-15 01:39:17] Production.INFO: ProcessCDR(1,14250307,1,1,2) [2025-01-15 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250307', 'tblTempUsageDetail_20' ) start [2025-01-15 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250307', 'tblTempUsageDetail_20' ) end [2025-01-15 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:39:21] Production.INFO: ==25872== Releasing lock... [2025-01-15 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:40:06 [end_date_ymd] => 2025-01-15 01:40:06 [RateCDR] => 1 ) [2025-01-15 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-01-14 22:40:06' and `end` < '2025-01-15 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-01-15 01:40:19] Production.INFO: count ==213 [2025-01-15 01:40:19] Production.ERROR: pbx CDR StartTime 2025-01-14 22:40:06 - End Time 2025-01-15 01:40:06 [2025-01-15 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250314', 'tblTempUsageDetail_20' ) start [2025-01-15 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250314', 'tblTempUsageDetail_20' ) end [2025-01-15 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250314', 'tblTempVendorCDR_20' ) start [2025-01-15 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250314', 'tblTempVendorCDR_20' ) end [2025-01-15 01:40:19] Production.INFO: ProcessCDR(1,14250314,1,1,2) [2025-01-15 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250314', 'tblTempUsageDetail_20' ) start [2025-01-15 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250314', 'tblTempUsageDetail_20' ) end [2025-01-15 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:40:24] Production.INFO: ==25947== Releasing lock... [2025-01-15 01:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:40:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:41:05 [end_date_ymd] => 2025-01-15 01:41:05 [RateCDR] => 1 ) [2025-01-15 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:41:05' and `end` < '2025-01-15 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:41:17] Production.INFO: count ==215 [2025-01-15 01:41:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:41:05 - End Time 2025-01-15 01:41:05 [2025-01-15 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250319', 'tblTempUsageDetail_20' ) start [2025-01-15 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250319', 'tblTempUsageDetail_20' ) end [2025-01-15 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250319', 'tblTempVendorCDR_20' ) start [2025-01-15 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250319', 'tblTempVendorCDR_20' ) end [2025-01-15 01:41:17] Production.INFO: ProcessCDR(1,14250319,1,1,2) [2025-01-15 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250319', 'tblTempUsageDetail_20' ) start [2025-01-15 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250319', 'tblTempUsageDetail_20' ) end [2025-01-15 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:41:21] Production.INFO: ==26026== Releasing lock... [2025-01-15 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:42:05 [end_date_ymd] => 2025-01-15 01:42:05 [RateCDR] => 1 ) [2025-01-15 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:42:05' and `end` < '2025-01-15 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:42:19] Production.INFO: count ==215 [2025-01-15 01:42:19] Production.ERROR: pbx CDR StartTime 2025-01-14 22:42:05 - End Time 2025-01-15 01:42:05 [2025-01-15 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250324', 'tblTempUsageDetail_20' ) start [2025-01-15 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250324', 'tblTempUsageDetail_20' ) end [2025-01-15 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250324', 'tblTempVendorCDR_20' ) start [2025-01-15 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250324', 'tblTempVendorCDR_20' ) end [2025-01-15 01:42:19] Production.INFO: ProcessCDR(1,14250324,1,1,2) [2025-01-15 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250324', 'tblTempUsageDetail_20' ) start [2025-01-15 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250324', 'tblTempUsageDetail_20' ) end [2025-01-15 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:42:22] Production.INFO: ==26105== Releasing lock... [2025-01-15 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:42:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:43:05 [end_date_ymd] => 2025-01-15 01:43:05 [RateCDR] => 1 ) [2025-01-15 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:43:05' and `end` < '2025-01-15 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:43:17] Production.INFO: count ==214 [2025-01-15 01:43:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:43:05 - End Time 2025-01-15 01:43:05 [2025-01-15 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250329', 'tblTempUsageDetail_20' ) start [2025-01-15 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250329', 'tblTempUsageDetail_20' ) end [2025-01-15 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250329', 'tblTempVendorCDR_20' ) start [2025-01-15 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250329', 'tblTempVendorCDR_20' ) end [2025-01-15 01:43:17] Production.INFO: ProcessCDR(1,14250329,1,1,2) [2025-01-15 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250329', 'tblTempUsageDetail_20' ) start [2025-01-15 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250329', 'tblTempUsageDetail_20' ) end [2025-01-15 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:43:21] Production.INFO: ==26184== Releasing lock... [2025-01-15 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:44:06 [end_date_ymd] => 2025-01-15 01:44:06 [RateCDR] => 1 ) [2025-01-15 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:44:06' and `end` < '2025-01-15 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:44:18] Production.INFO: count ==214 [2025-01-15 01:44:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:44:06 - End Time 2025-01-15 01:44:06 [2025-01-15 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250334', 'tblTempUsageDetail_20' ) start [2025-01-15 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250334', 'tblTempUsageDetail_20' ) end [2025-01-15 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250334', 'tblTempVendorCDR_20' ) start [2025-01-15 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250334', 'tblTempVendorCDR_20' ) end [2025-01-15 01:44:18] Production.INFO: ProcessCDR(1,14250334,1,1,2) [2025-01-15 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250334', 'tblTempUsageDetail_20' ) start [2025-01-15 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250334', 'tblTempUsageDetail_20' ) end [2025-01-15 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:44:22] Production.INFO: ==26266== Releasing lock... [2025-01-15 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:44:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:45:05 [end_date_ymd] => 2025-01-15 01:45:05 [RateCDR] => 1 ) [2025-01-15 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:45:05' and `end` < '2025-01-15 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:45:17] Production.INFO: count ==214 [2025-01-15 01:45:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:45:05 - End Time 2025-01-15 01:45:05 [2025-01-15 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250339', 'tblTempUsageDetail_20' ) start [2025-01-15 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250339', 'tblTempUsageDetail_20' ) end [2025-01-15 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250339', 'tblTempVendorCDR_20' ) start [2025-01-15 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250339', 'tblTempVendorCDR_20' ) end [2025-01-15 01:45:17] Production.INFO: ProcessCDR(1,14250339,1,1,2) [2025-01-15 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250339', 'tblTempUsageDetail_20' ) start [2025-01-15 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250339', 'tblTempUsageDetail_20' ) end [2025-01-15 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:45:21] Production.INFO: ==26344== Releasing lock... [2025-01-15 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:46:04 [end_date_ymd] => 2025-01-15 01:46:04 [RateCDR] => 1 ) [2025-01-15 01:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:46:04' and `end` < '2025-01-15 01:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:46:17] Production.INFO: count ==214 [2025-01-15 01:46:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:46:04 - End Time 2025-01-15 01:46:04 [2025-01-15 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250344', 'tblTempUsageDetail_20' ) start [2025-01-15 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250344', 'tblTempUsageDetail_20' ) end [2025-01-15 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250344', 'tblTempVendorCDR_20' ) start [2025-01-15 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250344', 'tblTempVendorCDR_20' ) end [2025-01-15 01:46:17] Production.INFO: ProcessCDR(1,14250344,1,1,2) [2025-01-15 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250344', 'tblTempUsageDetail_20' ) start [2025-01-15 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250344', 'tblTempUsageDetail_20' ) end [2025-01-15 01:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:46:20] Production.INFO: ==26459== Releasing lock... [2025-01-15 01:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:46:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:47:05 [end_date_ymd] => 2025-01-15 01:47:05 [RateCDR] => 1 ) [2025-01-15 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:47:05' and `end` < '2025-01-15 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:47:17] Production.INFO: count ==214 [2025-01-15 01:47:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:47:05 - End Time 2025-01-15 01:47:05 [2025-01-15 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250349', 'tblTempUsageDetail_20' ) start [2025-01-15 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250349', 'tblTempUsageDetail_20' ) end [2025-01-15 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250349', 'tblTempVendorCDR_20' ) start [2025-01-15 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250349', 'tblTempVendorCDR_20' ) end [2025-01-15 01:47:17] Production.INFO: ProcessCDR(1,14250349,1,1,2) [2025-01-15 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250349', 'tblTempUsageDetail_20' ) start [2025-01-15 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250349', 'tblTempUsageDetail_20' ) end [2025-01-15 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:47:21] Production.INFO: ==26546== Releasing lock... [2025-01-15 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:48:05 [end_date_ymd] => 2025-01-15 01:48:05 [RateCDR] => 1 ) [2025-01-15 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:48:05' and `end` < '2025-01-15 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:48:18] Production.INFO: count ==214 [2025-01-15 01:48:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:48:05 - End Time 2025-01-15 01:48:05 [2025-01-15 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250354', 'tblTempUsageDetail_20' ) start [2025-01-15 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250354', 'tblTempUsageDetail_20' ) end [2025-01-15 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250354', 'tblTempVendorCDR_20' ) start [2025-01-15 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250354', 'tblTempVendorCDR_20' ) end [2025-01-15 01:48:18] Production.INFO: ProcessCDR(1,14250354,1,1,2) [2025-01-15 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250354', 'tblTempUsageDetail_20' ) start [2025-01-15 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250354', 'tblTempUsageDetail_20' ) end [2025-01-15 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:48:21] Production.INFO: ==26626== Releasing lock... [2025-01-15 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:49:05 [end_date_ymd] => 2025-01-15 01:49:05 [RateCDR] => 1 ) [2025-01-15 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:49:05' and `end` < '2025-01-15 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:49:18] Production.INFO: count ==213 [2025-01-15 01:49:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:49:05 - End Time 2025-01-15 01:49:05 [2025-01-15 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250359', 'tblTempUsageDetail_20' ) start [2025-01-15 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250359', 'tblTempUsageDetail_20' ) end [2025-01-15 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250359', 'tblTempVendorCDR_20' ) start [2025-01-15 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250359', 'tblTempVendorCDR_20' ) end [2025-01-15 01:49:18] Production.INFO: ProcessCDR(1,14250359,1,1,2) [2025-01-15 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250359', 'tblTempUsageDetail_20' ) start [2025-01-15 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250359', 'tblTempUsageDetail_20' ) end [2025-01-15 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:49:21] Production.INFO: ==26706== Releasing lock... [2025-01-15 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:50:06 [end_date_ymd] => 2025-01-15 01:50:06 [RateCDR] => 1 ) [2025-01-15 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:50:06' and `end` < '2025-01-15 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:50:19] Production.INFO: count ==217 [2025-01-15 01:50:19] Production.ERROR: pbx CDR StartTime 2025-01-14 22:50:06 - End Time 2025-01-15 01:50:06 [2025-01-15 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250365', 'tblTempUsageDetail_20' ) start [2025-01-15 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250365', 'tblTempUsageDetail_20' ) end [2025-01-15 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250365', 'tblTempVendorCDR_20' ) start [2025-01-15 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250365', 'tblTempVendorCDR_20' ) end [2025-01-15 01:50:19] Production.INFO: ProcessCDR(1,14250365,1,1,2) [2025-01-15 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250365', 'tblTempUsageDetail_20' ) start [2025-01-15 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250365', 'tblTempUsageDetail_20' ) end [2025-01-15 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:50:22] Production.INFO: ==26785== Releasing lock... [2025-01-15 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:51:05 [end_date_ymd] => 2025-01-15 01:51:05 [RateCDR] => 1 ) [2025-01-15 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:51:05' and `end` < '2025-01-15 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:51:17] Production.INFO: count ==217 [2025-01-15 01:51:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:51:05 - End Time 2025-01-15 01:51:05 [2025-01-15 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250370', 'tblTempUsageDetail_20' ) start [2025-01-15 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250370', 'tblTempUsageDetail_20' ) end [2025-01-15 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250370', 'tblTempVendorCDR_20' ) start [2025-01-15 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250370', 'tblTempVendorCDR_20' ) end [2025-01-15 01:51:17] Production.INFO: ProcessCDR(1,14250370,1,1,2) [2025-01-15 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250370', 'tblTempUsageDetail_20' ) start [2025-01-15 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250370', 'tblTempUsageDetail_20' ) end [2025-01-15 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:51:21] Production.INFO: ==26869== Releasing lock... [2025-01-15 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:52:05 [end_date_ymd] => 2025-01-15 01:52:05 [RateCDR] => 1 ) [2025-01-15 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:52:05' and `end` < '2025-01-15 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:52:18] Production.INFO: count ==216 [2025-01-15 01:52:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:52:05 - End Time 2025-01-15 01:52:05 [2025-01-15 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250375', 'tblTempUsageDetail_20' ) start [2025-01-15 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250375', 'tblTempUsageDetail_20' ) end [2025-01-15 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250375', 'tblTempVendorCDR_20' ) start [2025-01-15 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250375', 'tblTempVendorCDR_20' ) end [2025-01-15 01:52:18] Production.INFO: ProcessCDR(1,14250375,1,1,2) [2025-01-15 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250375', 'tblTempUsageDetail_20' ) start [2025-01-15 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250375', 'tblTempUsageDetail_20' ) end [2025-01-15 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:52:21] Production.INFO: ==26954== Releasing lock... [2025-01-15 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:53:05 [end_date_ymd] => 2025-01-15 01:53:05 [RateCDR] => 1 ) [2025-01-15 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:53:05' and `end` < '2025-01-15 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:53:18] Production.INFO: count ==216 [2025-01-15 01:53:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:53:05 - End Time 2025-01-15 01:53:05 [2025-01-15 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250380', 'tblTempUsageDetail_20' ) start [2025-01-15 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250380', 'tblTempUsageDetail_20' ) end [2025-01-15 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250380', 'tblTempVendorCDR_20' ) start [2025-01-15 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250380', 'tblTempVendorCDR_20' ) end [2025-01-15 01:53:18] Production.INFO: ProcessCDR(1,14250380,1,1,2) [2025-01-15 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250380', 'tblTempUsageDetail_20' ) start [2025-01-15 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250380', 'tblTempUsageDetail_20' ) end [2025-01-15 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:53:21] Production.INFO: ==27033== Releasing lock... [2025-01-15 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:54:05 [end_date_ymd] => 2025-01-15 01:54:05 [RateCDR] => 1 ) [2025-01-15 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:54:05' and `end` < '2025-01-15 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:54:18] Production.INFO: count ==216 [2025-01-15 01:54:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:54:05 - End Time 2025-01-15 01:54:05 [2025-01-15 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250385', 'tblTempUsageDetail_20' ) start [2025-01-15 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250385', 'tblTempUsageDetail_20' ) end [2025-01-15 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250385', 'tblTempVendorCDR_20' ) start [2025-01-15 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250385', 'tblTempVendorCDR_20' ) end [2025-01-15 01:54:18] Production.INFO: ProcessCDR(1,14250385,1,1,2) [2025-01-15 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250385', 'tblTempUsageDetail_20' ) start [2025-01-15 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250385', 'tblTempUsageDetail_20' ) end [2025-01-15 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:54:21] Production.INFO: ==27116== Releasing lock... [2025-01-15 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:55:05 [end_date_ymd] => 2025-01-15 01:55:05 [RateCDR] => 1 ) [2025-01-15 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:55:05' and `end` < '2025-01-15 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:55:17] Production.INFO: count ==216 [2025-01-15 01:55:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:55:05 - End Time 2025-01-15 01:55:05 [2025-01-15 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250390', 'tblTempUsageDetail_20' ) start [2025-01-15 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250390', 'tblTempUsageDetail_20' ) end [2025-01-15 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250390', 'tblTempVendorCDR_20' ) start [2025-01-15 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250390', 'tblTempVendorCDR_20' ) end [2025-01-15 01:55:17] Production.INFO: ProcessCDR(1,14250390,1,1,2) [2025-01-15 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250390', 'tblTempUsageDetail_20' ) start [2025-01-15 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250390', 'tblTempUsageDetail_20' ) end [2025-01-15 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:55:21] Production.INFO: ==27194== Releasing lock... [2025-01-15 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:56:05 [end_date_ymd] => 2025-01-15 01:56:05 [RateCDR] => 1 ) [2025-01-15 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:56:05' and `end` < '2025-01-15 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:56:18] Production.INFO: count ==216 [2025-01-15 01:56:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:56:05 - End Time 2025-01-15 01:56:05 [2025-01-15 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250395', 'tblTempUsageDetail_20' ) start [2025-01-15 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250395', 'tblTempUsageDetail_20' ) end [2025-01-15 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250395', 'tblTempVendorCDR_20' ) start [2025-01-15 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250395', 'tblTempVendorCDR_20' ) end [2025-01-15 01:56:18] Production.INFO: ProcessCDR(1,14250395,1,1,2) [2025-01-15 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250395', 'tblTempUsageDetail_20' ) start [2025-01-15 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250395', 'tblTempUsageDetail_20' ) end [2025-01-15 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:56:21] Production.INFO: ==27277== Releasing lock... [2025-01-15 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:57:05 [end_date_ymd] => 2025-01-15 01:57:05 [RateCDR] => 1 ) [2025-01-15 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:57:05' and `end` < '2025-01-15 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:57:18] Production.INFO: count ==219 [2025-01-15 01:57:18] Production.ERROR: pbx CDR StartTime 2025-01-14 22:57:05 - End Time 2025-01-15 01:57:05 [2025-01-15 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250400', 'tblTempUsageDetail_20' ) start [2025-01-15 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250400', 'tblTempUsageDetail_20' ) end [2025-01-15 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250400', 'tblTempVendorCDR_20' ) start [2025-01-15 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250400', 'tblTempVendorCDR_20' ) end [2025-01-15 01:57:18] Production.INFO: ProcessCDR(1,14250400,1,1,2) [2025-01-15 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250400', 'tblTempUsageDetail_20' ) start [2025-01-15 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250400', 'tblTempUsageDetail_20' ) end [2025-01-15 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:57:22] Production.INFO: ==27349== Releasing lock... [2025-01-15 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:58:05 [end_date_ymd] => 2025-01-15 01:58:05 [RateCDR] => 1 ) [2025-01-15 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:58:05' and `end` < '2025-01-15 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:58:19] Production.INFO: count ==218 [2025-01-15 01:58:19] Production.ERROR: pbx CDR StartTime 2025-01-14 22:58:05 - End Time 2025-01-15 01:58:05 [2025-01-15 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250405', 'tblTempUsageDetail_20' ) start [2025-01-15 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250405', 'tblTempUsageDetail_20' ) end [2025-01-15 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250405', 'tblTempVendorCDR_20' ) start [2025-01-15 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250405', 'tblTempVendorCDR_20' ) end [2025-01-15 01:58:19] Production.INFO: ProcessCDR(1,14250405,1,1,2) [2025-01-15 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250405', 'tblTempUsageDetail_20' ) start [2025-01-15 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250405', 'tblTempUsageDetail_20' ) end [2025-01-15 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:58:22] Production.INFO: ==27424== Releasing lock... [2025-01-15 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:58:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 22:59:05 [end_date_ymd] => 2025-01-15 01:59:05 [RateCDR] => 1 ) [2025-01-15 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 22:59:05' and `end` < '2025-01-15 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 01:59:17] Production.INFO: count ==214 [2025-01-15 01:59:17] Production.ERROR: pbx CDR StartTime 2025-01-14 22:59:05 - End Time 2025-01-15 01:59:05 [2025-01-15 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250410', 'tblTempUsageDetail_20' ) start [2025-01-15 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250410', 'tblTempUsageDetail_20' ) end [2025-01-15 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250410', 'tblTempVendorCDR_20' ) start [2025-01-15 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250410', 'tblTempVendorCDR_20' ) end [2025-01-15 01:59:17] Production.INFO: ProcessCDR(1,14250410,1,1,2) [2025-01-15 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250410', 'tblTempUsageDetail_20' ) start [2025-01-15 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250410', 'tblTempUsageDetail_20' ) end [2025-01-15 01:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 01:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 01:59:20] Production.INFO: ==27499== Releasing lock... [2025-01-15 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 01:59:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:00:06 [end_date_ymd] => 2025-01-15 02:00:06 [RateCDR] => 1 ) [2025-01-15 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:00:06' and `end` < '2025-01-15 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:00:19] Production.INFO: count ==222 [2025-01-15 02:00:19] Production.ERROR: pbx CDR StartTime 2025-01-14 23:00:06 - End Time 2025-01-15 02:00:06 [2025-01-15 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250416', 'tblTempUsageDetail_20' ) start [2025-01-15 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250416', 'tblTempUsageDetail_20' ) end [2025-01-15 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250416', 'tblTempVendorCDR_20' ) start [2025-01-15 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250416', 'tblTempVendorCDR_20' ) end [2025-01-15 02:00:19] Production.INFO: ProcessCDR(1,14250416,1,1,2) [2025-01-15 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250416', 'tblTempUsageDetail_20' ) start [2025-01-15 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250416', 'tblTempUsageDetail_20' ) end [2025-01-15 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:00:22] Production.INFO: ==27576== Releasing lock... [2025-01-15 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:00:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:01:05 [end_date_ymd] => 2025-01-15 02:01:05 [RateCDR] => 1 ) [2025-01-15 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:01:05' and `end` < '2025-01-15 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:01:17] Production.INFO: count ==222 [2025-01-15 02:01:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:01:05 - End Time 2025-01-15 02:01:05 [2025-01-15 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250421', 'tblTempUsageDetail_20' ) start [2025-01-15 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250421', 'tblTempUsageDetail_20' ) end [2025-01-15 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250421', 'tblTempVendorCDR_20' ) start [2025-01-15 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250421', 'tblTempVendorCDR_20' ) end [2025-01-15 02:01:17] Production.INFO: ProcessCDR(1,14250421,1,1,2) [2025-01-15 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250421', 'tblTempUsageDetail_20' ) start [2025-01-15 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250421', 'tblTempUsageDetail_20' ) end [2025-01-15 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:01:21] Production.INFO: ==27749== Releasing lock... [2025-01-15 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:02:06 [end_date_ymd] => 2025-01-15 02:02:06 [RateCDR] => 1 ) [2025-01-15 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-01-14 23:02:06' and `end` < '2025-01-15 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-01-15 02:02:19] Production.INFO: count ==220 [2025-01-15 02:02:19] Production.ERROR: pbx CDR StartTime 2025-01-14 23:02:06 - End Time 2025-01-15 02:02:06 [2025-01-15 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250426', 'tblTempUsageDetail_20' ) start [2025-01-15 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250426', 'tblTempUsageDetail_20' ) end [2025-01-15 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250426', 'tblTempVendorCDR_20' ) start [2025-01-15 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250426', 'tblTempVendorCDR_20' ) end [2025-01-15 02:02:19] Production.INFO: ProcessCDR(1,14250426,1,1,2) [2025-01-15 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250426', 'tblTempUsageDetail_20' ) start [2025-01-15 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250426', 'tblTempUsageDetail_20' ) end [2025-01-15 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:02:22] Production.INFO: ==27862== Releasing lock... [2025-01-15 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:02:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:03:05 [end_date_ymd] => 2025-01-15 02:03:05 [RateCDR] => 1 ) [2025-01-15 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:03:05' and `end` < '2025-01-15 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:03:17] Production.INFO: count ==218 [2025-01-15 02:03:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:03:05 - End Time 2025-01-15 02:03:05 [2025-01-15 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250431', 'tblTempUsageDetail_20' ) start [2025-01-15 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250431', 'tblTempUsageDetail_20' ) end [2025-01-15 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250431', 'tblTempVendorCDR_20' ) start [2025-01-15 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250431', 'tblTempVendorCDR_20' ) end [2025-01-15 02:03:17] Production.INFO: ProcessCDR(1,14250431,1,1,2) [2025-01-15 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250431', 'tblTempUsageDetail_20' ) start [2025-01-15 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250431', 'tblTempUsageDetail_20' ) end [2025-01-15 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:03:21] Production.INFO: ==27935== Releasing lock... [2025-01-15 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:03:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:04:06 [end_date_ymd] => 2025-01-15 02:04:06 [RateCDR] => 1 ) [2025-01-15 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:04:06' and `end` < '2025-01-15 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:04:18] Production.INFO: count ==218 [2025-01-15 02:04:19] Production.ERROR: pbx CDR StartTime 2025-01-14 23:04:06 - End Time 2025-01-15 02:04:06 [2025-01-15 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250436', 'tblTempUsageDetail_20' ) start [2025-01-15 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250436', 'tblTempUsageDetail_20' ) end [2025-01-15 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250436', 'tblTempVendorCDR_20' ) start [2025-01-15 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250436', 'tblTempVendorCDR_20' ) end [2025-01-15 02:04:19] Production.INFO: ProcessCDR(1,14250436,1,1,2) [2025-01-15 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250436', 'tblTempUsageDetail_20' ) start [2025-01-15 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250436', 'tblTempUsageDetail_20' ) end [2025-01-15 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:04:22] Production.INFO: ==28007== Releasing lock... [2025-01-15 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:04:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:05:05 [end_date_ymd] => 2025-01-15 02:05:05 [RateCDR] => 1 ) [2025-01-15 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-01-14 23:05:05' and `end` < '2025-01-15 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-01-15 02:05:17] Production.INFO: count ==218 [2025-01-15 02:05:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:05:05 - End Time 2025-01-15 02:05:05 [2025-01-15 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250441', 'tblTempUsageDetail_20' ) start [2025-01-15 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250441', 'tblTempUsageDetail_20' ) end [2025-01-15 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250441', 'tblTempVendorCDR_20' ) start [2025-01-15 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250441', 'tblTempVendorCDR_20' ) end [2025-01-15 02:05:17] Production.INFO: ProcessCDR(1,14250441,1,1,2) [2025-01-15 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250441', 'tblTempUsageDetail_20' ) start [2025-01-15 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250441', 'tblTempUsageDetail_20' ) end [2025-01-15 02:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:05:20] Production.INFO: ==28079== Releasing lock... [2025-01-15 02:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:05:20] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:06:05 [end_date_ymd] => 2025-01-15 02:06:05 [RateCDR] => 1 ) [2025-01-15 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:06:05' and `end` < '2025-01-15 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:06:18] Production.INFO: count ==218 [2025-01-15 02:06:19] Production.ERROR: pbx CDR StartTime 2025-01-14 23:06:05 - End Time 2025-01-15 02:06:05 [2025-01-15 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250446', 'tblTempUsageDetail_20' ) start [2025-01-15 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250446', 'tblTempUsageDetail_20' ) end [2025-01-15 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250446', 'tblTempVendorCDR_20' ) start [2025-01-15 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250446', 'tblTempVendorCDR_20' ) end [2025-01-15 02:06:19] Production.INFO: ProcessCDR(1,14250446,1,1,2) [2025-01-15 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250446', 'tblTempUsageDetail_20' ) start [2025-01-15 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250446', 'tblTempUsageDetail_20' ) end [2025-01-15 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:06:22] Production.INFO: ==28152== Releasing lock... [2025-01-15 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:06:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:07:05 [end_date_ymd] => 2025-01-15 02:07:05 [RateCDR] => 1 ) [2025-01-15 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:07:05' and `end` < '2025-01-15 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:07:17] Production.INFO: count ==214 [2025-01-15 02:07:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:07:05 - End Time 2025-01-15 02:07:05 [2025-01-15 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250451', 'tblTempUsageDetail_20' ) start [2025-01-15 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250451', 'tblTempUsageDetail_20' ) end [2025-01-15 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250451', 'tblTempVendorCDR_20' ) start [2025-01-15 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250451', 'tblTempVendorCDR_20' ) end [2025-01-15 02:07:17] Production.INFO: ProcessCDR(1,14250451,1,1,2) [2025-01-15 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250451', 'tblTempUsageDetail_20' ) start [2025-01-15 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250451', 'tblTempUsageDetail_20' ) end [2025-01-15 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:07:21] Production.INFO: ==28227== Releasing lock... [2025-01-15 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:07:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:08:05 [end_date_ymd] => 2025-01-15 02:08:05 [RateCDR] => 1 ) [2025-01-15 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:08:05' and `end` < '2025-01-15 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:08:20] Production.INFO: count ==215 [2025-01-15 02:08:20] Production.ERROR: pbx CDR StartTime 2025-01-14 23:08:05 - End Time 2025-01-15 02:08:05 [2025-01-15 02:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250456', 'tblTempUsageDetail_20' ) start [2025-01-15 02:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250456', 'tblTempUsageDetail_20' ) end [2025-01-15 02:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250456', 'tblTempVendorCDR_20' ) start [2025-01-15 02:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250456', 'tblTempVendorCDR_20' ) end [2025-01-15 02:08:20] Production.INFO: ProcessCDR(1,14250456,1,1,2) [2025-01-15 02:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250456', 'tblTempUsageDetail_20' ) start [2025-01-15 02:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250456', 'tblTempUsageDetail_20' ) end [2025-01-15 02:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:08:24] Production.INFO: ==28299== Releasing lock... [2025-01-15 02:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:08:24] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:09:05 [end_date_ymd] => 2025-01-15 02:09:05 [RateCDR] => 1 ) [2025-01-15 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:09:05' and `end` < '2025-01-15 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:09:19] Production.INFO: count ==216 [2025-01-15 02:09:19] Production.ERROR: pbx CDR StartTime 2025-01-14 23:09:05 - End Time 2025-01-15 02:09:05 [2025-01-15 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250461', 'tblTempUsageDetail_20' ) start [2025-01-15 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250461', 'tblTempUsageDetail_20' ) end [2025-01-15 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250461', 'tblTempVendorCDR_20' ) start [2025-01-15 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250461', 'tblTempVendorCDR_20' ) end [2025-01-15 02:09:19] Production.INFO: ProcessCDR(1,14250461,1,1,2) [2025-01-15 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250461', 'tblTempUsageDetail_20' ) start [2025-01-15 02:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250461', 'tblTempUsageDetail_20' ) end [2025-01-15 02:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:09:24] Production.INFO: ==28368== Releasing lock... [2025-01-15 02:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:09:24] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:10:05 [end_date_ymd] => 2025-01-15 02:10:05 [RateCDR] => 1 ) [2025-01-15 02:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:10:05' and `end` < '2025-01-15 02:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:10:19] Production.INFO: count ==220 [2025-01-15 02:10:19] Production.ERROR: pbx CDR StartTime 2025-01-14 23:10:05 - End Time 2025-01-15 02:10:05 [2025-01-15 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250467', 'tblTempUsageDetail_20' ) start [2025-01-15 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250467', 'tblTempUsageDetail_20' ) end [2025-01-15 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250467', 'tblTempVendorCDR_20' ) start [2025-01-15 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250467', 'tblTempVendorCDR_20' ) end [2025-01-15 02:10:19] Production.INFO: ProcessCDR(1,14250467,1,1,2) [2025-01-15 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250467', 'tblTempUsageDetail_20' ) start [2025-01-15 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250467', 'tblTempUsageDetail_20' ) end [2025-01-15 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:10:22] Production.INFO: ==28441== Releasing lock... [2025-01-15 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:10:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:11:05 [end_date_ymd] => 2025-01-15 02:11:05 [RateCDR] => 1 ) [2025-01-15 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:11:05' and `end` < '2025-01-15 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:11:18] Production.INFO: count ==220 [2025-01-15 02:11:19] Production.ERROR: pbx CDR StartTime 2025-01-14 23:11:05 - End Time 2025-01-15 02:11:05 [2025-01-15 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250472', 'tblTempUsageDetail_20' ) start [2025-01-15 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250472', 'tblTempUsageDetail_20' ) end [2025-01-15 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250472', 'tblTempVendorCDR_20' ) start [2025-01-15 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250472', 'tblTempVendorCDR_20' ) end [2025-01-15 02:11:19] Production.INFO: ProcessCDR(1,14250472,1,1,2) [2025-01-15 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250472', 'tblTempUsageDetail_20' ) start [2025-01-15 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250472', 'tblTempUsageDetail_20' ) end [2025-01-15 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:11:22] Production.INFO: ==28516== Releasing lock... [2025-01-15 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:11:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:12:06 [end_date_ymd] => 2025-01-15 02:12:06 [RateCDR] => 1 ) [2025-01-15 02:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:12:06' and `end` < '2025-01-15 02:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:12:19] Production.INFO: count ==220 [2025-01-15 02:12:19] Production.ERROR: pbx CDR StartTime 2025-01-14 23:12:06 - End Time 2025-01-15 02:12:06 [2025-01-15 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250477', 'tblTempUsageDetail_20' ) start [2025-01-15 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250477', 'tblTempUsageDetail_20' ) end [2025-01-15 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250477', 'tblTempVendorCDR_20' ) start [2025-01-15 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250477', 'tblTempVendorCDR_20' ) end [2025-01-15 02:12:19] Production.INFO: ProcessCDR(1,14250477,1,1,2) [2025-01-15 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250477', 'tblTempUsageDetail_20' ) start [2025-01-15 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250477', 'tblTempUsageDetail_20' ) end [2025-01-15 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:12:22] Production.INFO: ==28587== Releasing lock... [2025-01-15 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:12:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:13:05 [end_date_ymd] => 2025-01-15 02:13:05 [RateCDR] => 1 ) [2025-01-15 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:13:05' and `end` < '2025-01-15 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:13:18] Production.INFO: count ==220 [2025-01-15 02:13:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:13:05 - End Time 2025-01-15 02:13:05 [2025-01-15 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250482', 'tblTempUsageDetail_20' ) start [2025-01-15 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250482', 'tblTempUsageDetail_20' ) end [2025-01-15 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250482', 'tblTempVendorCDR_20' ) start [2025-01-15 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250482', 'tblTempVendorCDR_20' ) end [2025-01-15 02:13:18] Production.INFO: ProcessCDR(1,14250482,1,1,2) [2025-01-15 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250482', 'tblTempUsageDetail_20' ) start [2025-01-15 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250482', 'tblTempUsageDetail_20' ) end [2025-01-15 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:13:21] Production.INFO: ==28660== Releasing lock... [2025-01-15 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:13:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:14:05 [end_date_ymd] => 2025-01-15 02:14:05 [RateCDR] => 1 ) [2025-01-15 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:14:05' and `end` < '2025-01-15 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-01-15 02:14:18] Production.INFO: count ==220 [2025-01-15 02:14:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:14:05 - End Time 2025-01-15 02:14:05 [2025-01-15 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250487', 'tblTempUsageDetail_20' ) start [2025-01-15 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250487', 'tblTempUsageDetail_20' ) end [2025-01-15 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250487', 'tblTempVendorCDR_20' ) start [2025-01-15 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250487', 'tblTempVendorCDR_20' ) end [2025-01-15 02:14:18] Production.INFO: ProcessCDR(1,14250487,1,1,2) [2025-01-15 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250487', 'tblTempUsageDetail_20' ) start [2025-01-15 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250487', 'tblTempUsageDetail_20' ) end [2025-01-15 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:14:21] Production.INFO: ==28729== Releasing lock... [2025-01-15 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:14:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:15:05 [end_date_ymd] => 2025-01-15 02:15:05 [RateCDR] => 1 ) [2025-01-15 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:15:05' and `end` < '2025-01-15 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:15:17] Production.INFO: count ==215 [2025-01-15 02:15:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:15:05 - End Time 2025-01-15 02:15:05 [2025-01-15 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250492', 'tblTempUsageDetail_20' ) start [2025-01-15 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250492', 'tblTempUsageDetail_20' ) end [2025-01-15 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250492', 'tblTempVendorCDR_20' ) start [2025-01-15 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250492', 'tblTempVendorCDR_20' ) end [2025-01-15 02:15:17] Production.INFO: ProcessCDR(1,14250492,1,1,2) [2025-01-15 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250492', 'tblTempUsageDetail_20' ) start [2025-01-15 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250492', 'tblTempUsageDetail_20' ) end [2025-01-15 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:15:21] Production.INFO: ==28799== Releasing lock... [2025-01-15 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:15:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:16:05 [end_date_ymd] => 2025-01-15 02:16:05 [RateCDR] => 1 ) [2025-01-15 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:16:05' and `end` < '2025-01-15 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:16:17] Production.INFO: count ==215 [2025-01-15 02:16:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:16:05 - End Time 2025-01-15 02:16:05 [2025-01-15 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250497', 'tblTempUsageDetail_20' ) start [2025-01-15 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250497', 'tblTempUsageDetail_20' ) end [2025-01-15 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250497', 'tblTempVendorCDR_20' ) start [2025-01-15 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250497', 'tblTempVendorCDR_20' ) end [2025-01-15 02:16:17] Production.INFO: ProcessCDR(1,14250497,1,1,2) [2025-01-15 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250497', 'tblTempUsageDetail_20' ) start [2025-01-15 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250497', 'tblTempUsageDetail_20' ) end [2025-01-15 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:16:21] Production.INFO: ==28870== Releasing lock... [2025-01-15 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:16:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:17:05 [end_date_ymd] => 2025-01-15 02:17:05 [RateCDR] => 1 ) [2025-01-15 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:17:05' and `end` < '2025-01-15 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:17:18] Production.INFO: count ==214 [2025-01-15 02:17:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:17:05 - End Time 2025-01-15 02:17:05 [2025-01-15 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250502', 'tblTempUsageDetail_20' ) start [2025-01-15 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250502', 'tblTempUsageDetail_20' ) end [2025-01-15 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250502', 'tblTempVendorCDR_20' ) start [2025-01-15 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250502', 'tblTempVendorCDR_20' ) end [2025-01-15 02:17:18] Production.INFO: ProcessCDR(1,14250502,1,1,2) [2025-01-15 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250502', 'tblTempUsageDetail_20' ) start [2025-01-15 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250502', 'tblTempUsageDetail_20' ) end [2025-01-15 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:17:21] Production.INFO: ==28980== Releasing lock... [2025-01-15 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:17:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:18:05 [end_date_ymd] => 2025-01-15 02:18:05 [RateCDR] => 1 ) [2025-01-15 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-01-14 23:18:05' and `end` < '2025-01-15 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-01-15 02:18:17] Production.INFO: count ==213 [2025-01-15 02:18:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:18:05 - End Time 2025-01-15 02:18:05 [2025-01-15 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250507', 'tblTempUsageDetail_20' ) start [2025-01-15 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250507', 'tblTempUsageDetail_20' ) end [2025-01-15 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250507', 'tblTempVendorCDR_20' ) start [2025-01-15 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250507', 'tblTempVendorCDR_20' ) end [2025-01-15 02:18:17] Production.INFO: ProcessCDR(1,14250507,1,1,2) [2025-01-15 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250507', 'tblTempUsageDetail_20' ) start [2025-01-15 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250507', 'tblTempUsageDetail_20' ) end [2025-01-15 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:18:21] Production.INFO: ==29051== Releasing lock... [2025-01-15 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:18:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:19:06 [end_date_ymd] => 2025-01-15 02:19:06 [RateCDR] => 1 ) [2025-01-15 02:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:19:06' and `end` < '2025-01-15 02:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:19:19] Production.INFO: count ==212 [2025-01-15 02:19:19] Production.ERROR: pbx CDR StartTime 2025-01-14 23:19:06 - End Time 2025-01-15 02:19:06 [2025-01-15 02:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250512', 'tblTempUsageDetail_20' ) start [2025-01-15 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250512', 'tblTempUsageDetail_20' ) end [2025-01-15 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250512', 'tblTempVendorCDR_20' ) start [2025-01-15 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250512', 'tblTempVendorCDR_20' ) end [2025-01-15 02:19:19] Production.INFO: ProcessCDR(1,14250512,1,1,2) [2025-01-15 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250512', 'tblTempUsageDetail_20' ) start [2025-01-15 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250512', 'tblTempUsageDetail_20' ) end [2025-01-15 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:19:22] Production.INFO: ==29122== Releasing lock... [2025-01-15 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:19:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:20:06 [end_date_ymd] => 2025-01-15 02:20:06 [RateCDR] => 1 ) [2025-01-15 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:20:06' and `end` < '2025-01-15 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:20:19] Production.INFO: count ==214 [2025-01-15 02:20:19] Production.ERROR: pbx CDR StartTime 2025-01-14 23:20:06 - End Time 2025-01-15 02:20:06 [2025-01-15 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250518', 'tblTempUsageDetail_20' ) start [2025-01-15 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250518', 'tblTempUsageDetail_20' ) end [2025-01-15 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250518', 'tblTempVendorCDR_20' ) start [2025-01-15 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250518', 'tblTempVendorCDR_20' ) end [2025-01-15 02:20:19] Production.INFO: ProcessCDR(1,14250518,1,1,2) [2025-01-15 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250518', 'tblTempUsageDetail_20' ) start [2025-01-15 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250518', 'tblTempUsageDetail_20' ) end [2025-01-15 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:20:22] Production.INFO: ==29198== Releasing lock... [2025-01-15 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:20:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:21:06 [end_date_ymd] => 2025-01-15 02:21:06 [RateCDR] => 1 ) [2025-01-15 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-01-14 23:21:06' and `end` < '2025-01-15 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-01-15 02:21:19] Production.INFO: count ==214 [2025-01-15 02:21:19] Production.ERROR: pbx CDR StartTime 2025-01-14 23:21:06 - End Time 2025-01-15 02:21:06 [2025-01-15 02:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250523', 'tblTempUsageDetail_20' ) start [2025-01-15 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250523', 'tblTempUsageDetail_20' ) end [2025-01-15 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250523', 'tblTempVendorCDR_20' ) start [2025-01-15 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250523', 'tblTempVendorCDR_20' ) end [2025-01-15 02:21:19] Production.INFO: ProcessCDR(1,14250523,1,1,2) [2025-01-15 02:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250523', 'tblTempUsageDetail_20' ) start [2025-01-15 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250523', 'tblTempUsageDetail_20' ) end [2025-01-15 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:21:22] Production.INFO: ==29301== Releasing lock... [2025-01-15 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:21:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:22:05 [end_date_ymd] => 2025-01-15 02:22:05 [RateCDR] => 1 ) [2025-01-15 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:22:05' and `end` < '2025-01-15 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:22:17] Production.INFO: count ==214 [2025-01-15 02:22:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:22:05 - End Time 2025-01-15 02:22:05 [2025-01-15 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250528', 'tblTempUsageDetail_20' ) start [2025-01-15 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250528', 'tblTempUsageDetail_20' ) end [2025-01-15 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250528', 'tblTempVendorCDR_20' ) start [2025-01-15 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250528', 'tblTempVendorCDR_20' ) end [2025-01-15 02:22:17] Production.INFO: ProcessCDR(1,14250528,1,1,2) [2025-01-15 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250528', 'tblTempUsageDetail_20' ) start [2025-01-15 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250528', 'tblTempUsageDetail_20' ) end [2025-01-15 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:22:21] Production.INFO: ==29393== Releasing lock... [2025-01-15 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:22:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:23:06 [end_date_ymd] => 2025-01-15 02:23:06 [RateCDR] => 1 ) [2025-01-15 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-01-14 23:23:06' and `end` < '2025-01-15 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-01-15 02:23:19] Production.INFO: count ==214 [2025-01-15 02:23:19] Production.ERROR: pbx CDR StartTime 2025-01-14 23:23:06 - End Time 2025-01-15 02:23:06 [2025-01-15 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250533', 'tblTempUsageDetail_20' ) start [2025-01-15 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250533', 'tblTempUsageDetail_20' ) end [2025-01-15 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250533', 'tblTempVendorCDR_20' ) start [2025-01-15 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250533', 'tblTempVendorCDR_20' ) end [2025-01-15 02:23:19] Production.INFO: ProcessCDR(1,14250533,1,1,2) [2025-01-15 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250533', 'tblTempUsageDetail_20' ) start [2025-01-15 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250533', 'tblTempUsageDetail_20' ) end [2025-01-15 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:23:22] Production.INFO: ==29487== Releasing lock... [2025-01-15 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:23:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:24:05 [end_date_ymd] => 2025-01-15 02:24:05 [RateCDR] => 1 ) [2025-01-15 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:24:05' and `end` < '2025-01-15 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:24:18] Production.INFO: count ==214 [2025-01-15 02:24:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:24:05 - End Time 2025-01-15 02:24:05 [2025-01-15 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250538', 'tblTempUsageDetail_20' ) start [2025-01-15 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250538', 'tblTempUsageDetail_20' ) end [2025-01-15 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250538', 'tblTempVendorCDR_20' ) start [2025-01-15 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250538', 'tblTempVendorCDR_20' ) end [2025-01-15 02:24:18] Production.INFO: ProcessCDR(1,14250538,1,1,2) [2025-01-15 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250538', 'tblTempUsageDetail_20' ) start [2025-01-15 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250538', 'tblTempUsageDetail_20' ) end [2025-01-15 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:24:22] Production.INFO: ==29580== Releasing lock... [2025-01-15 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:24:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:25:05 [end_date_ymd] => 2025-01-15 02:25:05 [RateCDR] => 1 ) [2025-01-15 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:25:05' and `end` < '2025-01-15 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:25:17] Production.INFO: count ==214 [2025-01-15 02:25:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:25:05 - End Time 2025-01-15 02:25:05 [2025-01-15 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250543', 'tblTempUsageDetail_20' ) start [2025-01-15 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250543', 'tblTempUsageDetail_20' ) end [2025-01-15 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250543', 'tblTempVendorCDR_20' ) start [2025-01-15 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250543', 'tblTempVendorCDR_20' ) end [2025-01-15 02:25:17] Production.INFO: ProcessCDR(1,14250543,1,1,2) [2025-01-15 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250543', 'tblTempUsageDetail_20' ) start [2025-01-15 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250543', 'tblTempUsageDetail_20' ) end [2025-01-15 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:25:21] Production.INFO: ==29672== Releasing lock... [2025-01-15 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:25:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:26:05 [end_date_ymd] => 2025-01-15 02:26:05 [RateCDR] => 1 ) [2025-01-15 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:26:05' and `end` < '2025-01-15 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:26:18] Production.INFO: count ==211 [2025-01-15 02:26:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:26:05 - End Time 2025-01-15 02:26:05 [2025-01-15 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250548', 'tblTempUsageDetail_20' ) start [2025-01-15 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250548', 'tblTempUsageDetail_20' ) end [2025-01-15 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250548', 'tblTempVendorCDR_20' ) start [2025-01-15 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250548', 'tblTempVendorCDR_20' ) end [2025-01-15 02:26:18] Production.INFO: ProcessCDR(1,14250548,1,1,2) [2025-01-15 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250548', 'tblTempUsageDetail_20' ) start [2025-01-15 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250548', 'tblTempUsageDetail_20' ) end [2025-01-15 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:26:21] Production.INFO: ==29767== Releasing lock... [2025-01-15 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:26:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:27:04 [end_date_ymd] => 2025-01-15 02:27:04 [RateCDR] => 1 ) [2025-01-15 02:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:27:04' and `end` < '2025-01-15 02:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:27:17] Production.INFO: count ==211 [2025-01-15 02:27:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:27:04 - End Time 2025-01-15 02:27:04 [2025-01-15 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250549', 'tblTempUsageDetail_20' ) start [2025-01-15 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250549', 'tblTempUsageDetail_20' ) end [2025-01-15 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250549', 'tblTempVendorCDR_20' ) start [2025-01-15 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250549', 'tblTempVendorCDR_20' ) end [2025-01-15 02:27:17] Production.INFO: ProcessCDR(1,14250549,1,1,2) [2025-01-15 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250549', 'tblTempUsageDetail_20' ) start [2025-01-15 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250549', 'tblTempUsageDetail_20' ) end [2025-01-15 02:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:27:20] Production.INFO: ==29861== Releasing lock... [2025-01-15 02:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:27:20] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:28:06 [end_date_ymd] => 2025-01-15 02:28:06 [RateCDR] => 1 ) [2025-01-15 02:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:28:06' and `end` < '2025-01-15 02:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:28:19] Production.INFO: count ==211 [2025-01-15 02:28:19] Production.ERROR: pbx CDR StartTime 2025-01-14 23:28:06 - End Time 2025-01-15 02:28:06 [2025-01-15 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250558', 'tblTempUsageDetail_20' ) start [2025-01-15 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250558', 'tblTempUsageDetail_20' ) end [2025-01-15 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250558', 'tblTempVendorCDR_20' ) start [2025-01-15 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250558', 'tblTempVendorCDR_20' ) end [2025-01-15 02:28:19] Production.INFO: ProcessCDR(1,14250558,1,1,2) [2025-01-15 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250558', 'tblTempUsageDetail_20' ) start [2025-01-15 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250558', 'tblTempUsageDetail_20' ) end [2025-01-15 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:28:22] Production.INFO: ==29957== Releasing lock... [2025-01-15 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:28:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:29:05 [end_date_ymd] => 2025-01-15 02:29:05 [RateCDR] => 1 ) [2025-01-15 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:29:05' and `end` < '2025-01-15 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:29:18] Production.INFO: count ==211 [2025-01-15 02:29:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:29:05 - End Time 2025-01-15 02:29:05 [2025-01-15 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250563', 'tblTempUsageDetail_20' ) start [2025-01-15 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250563', 'tblTempUsageDetail_20' ) end [2025-01-15 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250563', 'tblTempVendorCDR_20' ) start [2025-01-15 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250563', 'tblTempVendorCDR_20' ) end [2025-01-15 02:29:18] Production.INFO: ProcessCDR(1,14250563,1,1,2) [2025-01-15 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250563', 'tblTempUsageDetail_20' ) start [2025-01-15 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250563', 'tblTempUsageDetail_20' ) end [2025-01-15 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:29:21] Production.INFO: ==30049== Releasing lock... [2025-01-15 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:29:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:30:06 [end_date_ymd] => 2025-01-15 02:30:06 [RateCDR] => 1 ) [2025-01-15 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-01-14 23:30:06' and `end` < '2025-01-15 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-01-15 02:30:18] Production.INFO: count ==210 [2025-01-15 02:30:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:30:06 - End Time 2025-01-15 02:30:06 [2025-01-15 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250569', 'tblTempUsageDetail_20' ) start [2025-01-15 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250569', 'tblTempUsageDetail_20' ) end [2025-01-15 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250569', 'tblTempVendorCDR_20' ) start [2025-01-15 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250569', 'tblTempVendorCDR_20' ) end [2025-01-15 02:30:18] Production.INFO: ProcessCDR(1,14250569,1,1,2) [2025-01-15 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250569', 'tblTempUsageDetail_20' ) start [2025-01-15 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250569', 'tblTempUsageDetail_20' ) end [2025-01-15 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:30:21] Production.INFO: ==30142== Releasing lock... [2025-01-15 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:30:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:31:05 [end_date_ymd] => 2025-01-15 02:31:05 [RateCDR] => 1 ) [2025-01-15 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:31:05' and `end` < '2025-01-15 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:31:18] Production.INFO: count ==211 [2025-01-15 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:31:05 - End Time 2025-01-15 02:31:05 [2025-01-15 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250574', 'tblTempUsageDetail_20' ) start [2025-01-15 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250574', 'tblTempUsageDetail_20' ) end [2025-01-15 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250574', 'tblTempVendorCDR_20' ) start [2025-01-15 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250574', 'tblTempVendorCDR_20' ) end [2025-01-15 02:31:18] Production.INFO: ProcessCDR(1,14250574,1,1,2) [2025-01-15 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250574', 'tblTempUsageDetail_20' ) start [2025-01-15 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250574', 'tblTempUsageDetail_20' ) end [2025-01-15 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:31:21] Production.INFO: ==30237== Releasing lock... [2025-01-15 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:31:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:32:05 [end_date_ymd] => 2025-01-15 02:32:05 [RateCDR] => 1 ) [2025-01-15 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:32:05' and `end` < '2025-01-15 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:32:17] Production.INFO: count ==211 [2025-01-15 02:32:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:32:05 - End Time 2025-01-15 02:32:05 [2025-01-15 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250579', 'tblTempUsageDetail_20' ) start [2025-01-15 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250579', 'tblTempUsageDetail_20' ) end [2025-01-15 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250579', 'tblTempVendorCDR_20' ) start [2025-01-15 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250579', 'tblTempVendorCDR_20' ) end [2025-01-15 02:32:17] Production.INFO: ProcessCDR(1,14250579,1,1,2) [2025-01-15 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250579', 'tblTempUsageDetail_20' ) start [2025-01-15 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250579', 'tblTempUsageDetail_20' ) end [2025-01-15 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:32:21] Production.INFO: ==30330== Releasing lock... [2025-01-15 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:32:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:33:05 [end_date_ymd] => 2025-01-15 02:33:05 [RateCDR] => 1 ) [2025-01-15 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:33:05' and `end` < '2025-01-15 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:33:18] Production.INFO: count ==211 [2025-01-15 02:33:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:33:05 - End Time 2025-01-15 02:33:05 [2025-01-15 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250584', 'tblTempUsageDetail_20' ) start [2025-01-15 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250584', 'tblTempUsageDetail_20' ) end [2025-01-15 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250584', 'tblTempVendorCDR_20' ) start [2025-01-15 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250584', 'tblTempVendorCDR_20' ) end [2025-01-15 02:33:18] Production.INFO: ProcessCDR(1,14250584,1,1,2) [2025-01-15 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250584', 'tblTempUsageDetail_20' ) start [2025-01-15 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250584', 'tblTempUsageDetail_20' ) end [2025-01-15 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:33:21] Production.INFO: ==30465== Releasing lock... [2025-01-15 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:33:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:34:05 [end_date_ymd] => 2025-01-15 02:34:05 [RateCDR] => 1 ) [2025-01-15 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:34:05' and `end` < '2025-01-15 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:34:17] Production.INFO: count ==211 [2025-01-15 02:34:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:34:05 - End Time 2025-01-15 02:34:05 [2025-01-15 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250589', 'tblTempUsageDetail_20' ) start [2025-01-15 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250589', 'tblTempUsageDetail_20' ) end [2025-01-15 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250589', 'tblTempVendorCDR_20' ) start [2025-01-15 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250589', 'tblTempVendorCDR_20' ) end [2025-01-15 02:34:17] Production.INFO: ProcessCDR(1,14250589,1,1,2) [2025-01-15 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250589', 'tblTempUsageDetail_20' ) start [2025-01-15 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250589', 'tblTempUsageDetail_20' ) end [2025-01-15 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:34:21] Production.INFO: ==30559== Releasing lock... [2025-01-15 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:34:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:35:05 [end_date_ymd] => 2025-01-15 02:35:05 [RateCDR] => 1 ) [2025-01-15 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:35:05' and `end` < '2025-01-15 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:35:18] Production.INFO: count ==212 [2025-01-15 02:35:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:35:05 - End Time 2025-01-15 02:35:05 [2025-01-15 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250594', 'tblTempUsageDetail_20' ) start [2025-01-15 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250594', 'tblTempUsageDetail_20' ) end [2025-01-15 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250594', 'tblTempVendorCDR_20' ) start [2025-01-15 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250594', 'tblTempVendorCDR_20' ) end [2025-01-15 02:35:18] Production.INFO: ProcessCDR(1,14250594,1,1,2) [2025-01-15 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250594', 'tblTempUsageDetail_20' ) start [2025-01-15 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250594', 'tblTempUsageDetail_20' ) end [2025-01-15 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:35:23] Production.INFO: ==30658== Releasing lock... [2025-01-15 02:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:35:23] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:36:05 [end_date_ymd] => 2025-01-15 02:36:05 [RateCDR] => 1 ) [2025-01-15 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:36:05' and `end` < '2025-01-15 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:36:18] Production.INFO: count ==212 [2025-01-15 02:36:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:36:05 - End Time 2025-01-15 02:36:05 [2025-01-15 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250599', 'tblTempUsageDetail_20' ) start [2025-01-15 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250599', 'tblTempUsageDetail_20' ) end [2025-01-15 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250599', 'tblTempVendorCDR_20' ) start [2025-01-15 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250599', 'tblTempVendorCDR_20' ) end [2025-01-15 02:36:18] Production.INFO: ProcessCDR(1,14250599,1,1,2) [2025-01-15 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250599', 'tblTempUsageDetail_20' ) start [2025-01-15 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250599', 'tblTempUsageDetail_20' ) end [2025-01-15 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:36:21] Production.INFO: ==30753== Releasing lock... [2025-01-15 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:36:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:37:05 [end_date_ymd] => 2025-01-15 02:37:05 [RateCDR] => 1 ) [2025-01-15 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:37:05' and `end` < '2025-01-15 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:37:18] Production.INFO: count ==211 [2025-01-15 02:37:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:37:05 - End Time 2025-01-15 02:37:05 [2025-01-15 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250604', 'tblTempUsageDetail_20' ) start [2025-01-15 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250604', 'tblTempUsageDetail_20' ) end [2025-01-15 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250604', 'tblTempVendorCDR_20' ) start [2025-01-15 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250604', 'tblTempVendorCDR_20' ) end [2025-01-15 02:37:18] Production.INFO: ProcessCDR(1,14250604,1,1,2) [2025-01-15 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250604', 'tblTempUsageDetail_20' ) start [2025-01-15 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250604', 'tblTempUsageDetail_20' ) end [2025-01-15 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:37:21] Production.INFO: ==30847== Releasing lock... [2025-01-15 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:37:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:38:06 [end_date_ymd] => 2025-01-15 02:38:06 [RateCDR] => 1 ) [2025-01-15 02:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:38:06' and `end` < '2025-01-15 02:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:38:19] Production.INFO: count ==207 [2025-01-15 02:38:19] Production.ERROR: pbx CDR StartTime 2025-01-14 23:38:06 - End Time 2025-01-15 02:38:06 [2025-01-15 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250609', 'tblTempUsageDetail_20' ) start [2025-01-15 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250609', 'tblTempUsageDetail_20' ) end [2025-01-15 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250609', 'tblTempVendorCDR_20' ) start [2025-01-15 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250609', 'tblTempVendorCDR_20' ) end [2025-01-15 02:38:19] Production.INFO: ProcessCDR(1,14250609,1,1,2) [2025-01-15 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250609', 'tblTempUsageDetail_20' ) start [2025-01-15 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250609', 'tblTempUsageDetail_20' ) end [2025-01-15 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:38:22] Production.INFO: ==30940== Releasing lock... [2025-01-15 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:38:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:39:05 [end_date_ymd] => 2025-01-15 02:39:05 [RateCDR] => 1 ) [2025-01-15 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:39:05' and `end` < '2025-01-15 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:39:17] Production.INFO: count ==206 [2025-01-15 02:39:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:39:05 - End Time 2025-01-15 02:39:05 [2025-01-15 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250614', 'tblTempUsageDetail_20' ) start [2025-01-15 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250614', 'tblTempUsageDetail_20' ) end [2025-01-15 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250614', 'tblTempVendorCDR_20' ) start [2025-01-15 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250614', 'tblTempVendorCDR_20' ) end [2025-01-15 02:39:18] Production.INFO: ProcessCDR(1,14250614,1,1,2) [2025-01-15 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250614', 'tblTempUsageDetail_20' ) start [2025-01-15 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250614', 'tblTempUsageDetail_20' ) end [2025-01-15 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:39:21] Production.INFO: ==31033== Releasing lock... [2025-01-15 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:39:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:40:06 [end_date_ymd] => 2025-01-15 02:40:06 [RateCDR] => 1 ) [2025-01-15 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:40:06' and `end` < '2025-01-15 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:40:19] Production.INFO: count ==210 [2025-01-15 02:40:19] Production.ERROR: pbx CDR StartTime 2025-01-14 23:40:06 - End Time 2025-01-15 02:40:06 [2025-01-15 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250618', 'tblTempUsageDetail_20' ) start [2025-01-15 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250618', 'tblTempUsageDetail_20' ) end [2025-01-15 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250618', 'tblTempVendorCDR_20' ) start [2025-01-15 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250618', 'tblTempVendorCDR_20' ) end [2025-01-15 02:40:19] Production.INFO: ProcessCDR(1,14250618,1,1,2) [2025-01-15 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250618', 'tblTempUsageDetail_20' ) start [2025-01-15 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250618', 'tblTempUsageDetail_20' ) end [2025-01-15 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:40:22] Production.INFO: ==31127== Releasing lock... [2025-01-15 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:40:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:41:05 [end_date_ymd] => 2025-01-15 02:41:05 [RateCDR] => 1 ) [2025-01-15 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:41:05' and `end` < '2025-01-15 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:41:18] Production.INFO: count ==211 [2025-01-15 02:41:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:41:05 - End Time 2025-01-15 02:41:05 [2025-01-15 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250625', 'tblTempUsageDetail_20' ) start [2025-01-15 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250625', 'tblTempUsageDetail_20' ) end [2025-01-15 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250625', 'tblTempVendorCDR_20' ) start [2025-01-15 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250625', 'tblTempVendorCDR_20' ) end [2025-01-15 02:41:18] Production.INFO: ProcessCDR(1,14250625,1,1,2) [2025-01-15 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250625', 'tblTempUsageDetail_20' ) start [2025-01-15 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250625', 'tblTempUsageDetail_20' ) end [2025-01-15 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:41:21] Production.INFO: ==31222== Releasing lock... [2025-01-15 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:41:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:42:05 [end_date_ymd] => 2025-01-15 02:42:05 [RateCDR] => 1 ) [2025-01-15 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:42:05' and `end` < '2025-01-15 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:42:18] Production.INFO: count ==211 [2025-01-15 02:42:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:42:05 - End Time 2025-01-15 02:42:05 [2025-01-15 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250630', 'tblTempUsageDetail_20' ) start [2025-01-15 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250630', 'tblTempUsageDetail_20' ) end [2025-01-15 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250630', 'tblTempVendorCDR_20' ) start [2025-01-15 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250630', 'tblTempVendorCDR_20' ) end [2025-01-15 02:42:18] Production.INFO: ProcessCDR(1,14250630,1,1,2) [2025-01-15 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250630', 'tblTempUsageDetail_20' ) start [2025-01-15 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250630', 'tblTempUsageDetail_20' ) end [2025-01-15 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:42:21] Production.INFO: ==31317== Releasing lock... [2025-01-15 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:42:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:43:05 [end_date_ymd] => 2025-01-15 02:43:05 [RateCDR] => 1 ) [2025-01-15 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:43:05' and `end` < '2025-01-15 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:43:17] Production.INFO: count ==211 [2025-01-15 02:43:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:43:05 - End Time 2025-01-15 02:43:05 [2025-01-15 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250635', 'tblTempUsageDetail_20' ) start [2025-01-15 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250635', 'tblTempUsageDetail_20' ) end [2025-01-15 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250635', 'tblTempVendorCDR_20' ) start [2025-01-15 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250635', 'tblTempVendorCDR_20' ) end [2025-01-15 02:43:17] Production.INFO: ProcessCDR(1,14250635,1,1,2) [2025-01-15 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250635', 'tblTempUsageDetail_20' ) start [2025-01-15 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250635', 'tblTempUsageDetail_20' ) end [2025-01-15 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:43:21] Production.INFO: ==31388== Releasing lock... [2025-01-15 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:43:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:44:05 [end_date_ymd] => 2025-01-15 02:44:05 [RateCDR] => 1 ) [2025-01-15 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:44:05' and `end` < '2025-01-15 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:44:17] Production.INFO: count ==211 [2025-01-15 02:44:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:44:05 - End Time 2025-01-15 02:44:05 [2025-01-15 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250640', 'tblTempUsageDetail_20' ) start [2025-01-15 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250640', 'tblTempUsageDetail_20' ) end [2025-01-15 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250640', 'tblTempVendorCDR_20' ) start [2025-01-15 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250640', 'tblTempVendorCDR_20' ) end [2025-01-15 02:44:18] Production.INFO: ProcessCDR(1,14250640,1,1,2) [2025-01-15 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250640', 'tblTempUsageDetail_20' ) start [2025-01-15 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250640', 'tblTempUsageDetail_20' ) end [2025-01-15 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:44:21] Production.INFO: ==31457== Releasing lock... [2025-01-15 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:44:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:45:05 [end_date_ymd] => 2025-01-15 02:45:05 [RateCDR] => 1 ) [2025-01-15 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:45:05' and `end` < '2025-01-15 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:45:17] Production.INFO: count ==211 [2025-01-15 02:45:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:45:05 - End Time 2025-01-15 02:45:05 [2025-01-15 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250645', 'tblTempUsageDetail_20' ) start [2025-01-15 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250645', 'tblTempUsageDetail_20' ) end [2025-01-15 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250645', 'tblTempVendorCDR_20' ) start [2025-01-15 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250645', 'tblTempVendorCDR_20' ) end [2025-01-15 02:45:17] Production.INFO: ProcessCDR(1,14250645,1,1,2) [2025-01-15 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250645', 'tblTempUsageDetail_20' ) start [2025-01-15 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250645', 'tblTempUsageDetail_20' ) end [2025-01-15 02:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:45:20] Production.INFO: ==31527== Releasing lock... [2025-01-15 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:45:20] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:46:05 [end_date_ymd] => 2025-01-15 02:46:05 [RateCDR] => 1 ) [2025-01-15 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:46:05' and `end` < '2025-01-15 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:46:18] Production.INFO: count ==211 [2025-01-15 02:46:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:46:05 - End Time 2025-01-15 02:46:05 [2025-01-15 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250650', 'tblTempUsageDetail_20' ) start [2025-01-15 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250650', 'tblTempUsageDetail_20' ) end [2025-01-15 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250650', 'tblTempVendorCDR_20' ) start [2025-01-15 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250650', 'tblTempVendorCDR_20' ) end [2025-01-15 02:46:18] Production.INFO: ProcessCDR(1,14250650,1,1,2) [2025-01-15 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250650', 'tblTempUsageDetail_20' ) start [2025-01-15 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250650', 'tblTempUsageDetail_20' ) end [2025-01-15 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:46:22] Production.INFO: ==31597== Releasing lock... [2025-01-15 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:46:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:47:04 [end_date_ymd] => 2025-01-15 02:47:04 [RateCDR] => 1 ) [2025-01-15 02:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:47:04' and `end` < '2025-01-15 02:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:47:17] Production.INFO: count ==211 [2025-01-15 02:47:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:47:04 - End Time 2025-01-15 02:47:04 [2025-01-15 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250655', 'tblTempUsageDetail_20' ) start [2025-01-15 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250655', 'tblTempUsageDetail_20' ) end [2025-01-15 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250655', 'tblTempVendorCDR_20' ) start [2025-01-15 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250655', 'tblTempVendorCDR_20' ) end [2025-01-15 02:47:17] Production.INFO: ProcessCDR(1,14250655,1,1,2) [2025-01-15 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250655', 'tblTempUsageDetail_20' ) start [2025-01-15 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250655', 'tblTempUsageDetail_20' ) end [2025-01-15 02:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:47:20] Production.INFO: ==31668== Releasing lock... [2025-01-15 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:47:20] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:48:05 [end_date_ymd] => 2025-01-15 02:48:05 [RateCDR] => 1 ) [2025-01-15 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:48:05' and `end` < '2025-01-15 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:48:18] Production.INFO: count ==211 [2025-01-15 02:48:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:48:05 - End Time 2025-01-15 02:48:05 [2025-01-15 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250660', 'tblTempUsageDetail_20' ) start [2025-01-15 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250660', 'tblTempUsageDetail_20' ) end [2025-01-15 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250660', 'tblTempVendorCDR_20' ) start [2025-01-15 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250660', 'tblTempVendorCDR_20' ) end [2025-01-15 02:48:18] Production.INFO: ProcessCDR(1,14250660,1,1,2) [2025-01-15 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250660', 'tblTempUsageDetail_20' ) start [2025-01-15 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250660', 'tblTempUsageDetail_20' ) end [2025-01-15 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:48:21] Production.INFO: ==31779== Releasing lock... [2025-01-15 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:48:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:49:05 [end_date_ymd] => 2025-01-15 02:49:05 [RateCDR] => 1 ) [2025-01-15 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:49:05' and `end` < '2025-01-15 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:49:18] Production.INFO: count ==211 [2025-01-15 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:49:05 - End Time 2025-01-15 02:49:05 [2025-01-15 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250665', 'tblTempUsageDetail_20' ) start [2025-01-15 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250665', 'tblTempUsageDetail_20' ) end [2025-01-15 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250665', 'tblTempVendorCDR_20' ) start [2025-01-15 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250665', 'tblTempVendorCDR_20' ) end [2025-01-15 02:49:18] Production.INFO: ProcessCDR(1,14250665,1,1,2) [2025-01-15 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250665', 'tblTempUsageDetail_20' ) start [2025-01-15 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250665', 'tblTempUsageDetail_20' ) end [2025-01-15 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:49:22] Production.INFO: ==31848== Releasing lock... [2025-01-15 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:49:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:50:06 [end_date_ymd] => 2025-01-15 02:50:06 [RateCDR] => 1 ) [2025-01-15 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:50:06' and `end` < '2025-01-15 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:50:19] Production.INFO: count ==213 [2025-01-15 02:50:19] Production.ERROR: pbx CDR StartTime 2025-01-14 23:50:06 - End Time 2025-01-15 02:50:06 [2025-01-15 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250671', 'tblTempUsageDetail_20' ) start [2025-01-15 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250671', 'tblTempUsageDetail_20' ) end [2025-01-15 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250671', 'tblTempVendorCDR_20' ) start [2025-01-15 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250671', 'tblTempVendorCDR_20' ) end [2025-01-15 02:50:19] Production.INFO: ProcessCDR(1,14250671,1,1,2) [2025-01-15 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250671', 'tblTempUsageDetail_20' ) start [2025-01-15 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250671', 'tblTempUsageDetail_20' ) end [2025-01-15 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:50:23] Production.INFO: ==31921== Releasing lock... [2025-01-15 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:50:23] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:51:05 [end_date_ymd] => 2025-01-15 02:51:05 [RateCDR] => 1 ) [2025-01-15 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:51:05' and `end` < '2025-01-15 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:51:17] Production.INFO: count ==213 [2025-01-15 02:51:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:51:05 - End Time 2025-01-15 02:51:05 [2025-01-15 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250676', 'tblTempUsageDetail_20' ) start [2025-01-15 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250676', 'tblTempUsageDetail_20' ) end [2025-01-15 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250676', 'tblTempVendorCDR_20' ) start [2025-01-15 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250676', 'tblTempVendorCDR_20' ) end [2025-01-15 02:51:17] Production.INFO: ProcessCDR(1,14250676,1,1,2) [2025-01-15 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250676', 'tblTempUsageDetail_20' ) start [2025-01-15 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250676', 'tblTempUsageDetail_20' ) end [2025-01-15 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:51:21] Production.INFO: ==31993== Releasing lock... [2025-01-15 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:51:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:52:05 [end_date_ymd] => 2025-01-15 02:52:05 [RateCDR] => 1 ) [2025-01-15 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:52:05' and `end` < '2025-01-15 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:52:18] Production.INFO: count ==213 [2025-01-15 02:52:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:52:05 - End Time 2025-01-15 02:52:05 [2025-01-15 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250681', 'tblTempUsageDetail_20' ) start [2025-01-15 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250681', 'tblTempUsageDetail_20' ) end [2025-01-15 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250681', 'tblTempVendorCDR_20' ) start [2025-01-15 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250681', 'tblTempVendorCDR_20' ) end [2025-01-15 02:52:18] Production.INFO: ProcessCDR(1,14250681,1,1,2) [2025-01-15 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250681', 'tblTempUsageDetail_20' ) start [2025-01-15 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250681', 'tblTempUsageDetail_20' ) end [2025-01-15 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:52:22] Production.INFO: ==32065== Releasing lock... [2025-01-15 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:52:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:53:05 [end_date_ymd] => 2025-01-15 02:53:05 [RateCDR] => 1 ) [2025-01-15 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:53:05' and `end` < '2025-01-15 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:53:18] Production.INFO: count ==212 [2025-01-15 02:53:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:53:05 - End Time 2025-01-15 02:53:05 [2025-01-15 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250686', 'tblTempUsageDetail_20' ) start [2025-01-15 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250686', 'tblTempUsageDetail_20' ) end [2025-01-15 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250686', 'tblTempVendorCDR_20' ) start [2025-01-15 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250686', 'tblTempVendorCDR_20' ) end [2025-01-15 02:53:18] Production.INFO: ProcessCDR(1,14250686,1,1,2) [2025-01-15 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250686', 'tblTempUsageDetail_20' ) start [2025-01-15 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250686', 'tblTempUsageDetail_20' ) end [2025-01-15 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:53:22] Production.INFO: ==32137== Releasing lock... [2025-01-15 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:53:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:54:06 [end_date_ymd] => 2025-01-15 02:54:06 [RateCDR] => 1 ) [2025-01-15 02:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:54:06' and `end` < '2025-01-15 02:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:54:18] Production.INFO: count ==212 [2025-01-15 02:54:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:54:06 - End Time 2025-01-15 02:54:06 [2025-01-15 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250691', 'tblTempUsageDetail_20' ) start [2025-01-15 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250691', 'tblTempUsageDetail_20' ) end [2025-01-15 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250691', 'tblTempVendorCDR_20' ) start [2025-01-15 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250691', 'tblTempVendorCDR_20' ) end [2025-01-15 02:54:18] Production.INFO: ProcessCDR(1,14250691,1,1,2) [2025-01-15 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250691', 'tblTempUsageDetail_20' ) start [2025-01-15 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250691', 'tblTempUsageDetail_20' ) end [2025-01-15 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:54:21] Production.INFO: ==32208== Releasing lock... [2025-01-15 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:54:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:55:05 [end_date_ymd] => 2025-01-15 02:55:05 [RateCDR] => 1 ) [2025-01-15 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:55:05' and `end` < '2025-01-15 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:55:17] Production.INFO: count ==212 [2025-01-15 02:55:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:55:05 - End Time 2025-01-15 02:55:05 [2025-01-15 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250696', 'tblTempUsageDetail_20' ) start [2025-01-15 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250696', 'tblTempUsageDetail_20' ) end [2025-01-15 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250696', 'tblTempVendorCDR_20' ) start [2025-01-15 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250696', 'tblTempVendorCDR_20' ) end [2025-01-15 02:55:17] Production.INFO: ProcessCDR(1,14250696,1,1,2) [2025-01-15 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250696', 'tblTempUsageDetail_20' ) start [2025-01-15 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250696', 'tblTempUsageDetail_20' ) end [2025-01-15 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:55:21] Production.INFO: ==32278== Releasing lock... [2025-01-15 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:55:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:56:05 [end_date_ymd] => 2025-01-15 02:56:05 [RateCDR] => 1 ) [2025-01-15 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:56:05' and `end` < '2025-01-15 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:56:17] Production.INFO: count ==212 [2025-01-15 02:56:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:56:05 - End Time 2025-01-15 02:56:05 [2025-01-15 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250701', 'tblTempUsageDetail_20' ) start [2025-01-15 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250701', 'tblTempUsageDetail_20' ) end [2025-01-15 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250701', 'tblTempVendorCDR_20' ) start [2025-01-15 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250701', 'tblTempVendorCDR_20' ) end [2025-01-15 02:56:17] Production.INFO: ProcessCDR(1,14250701,1,1,2) [2025-01-15 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250701', 'tblTempUsageDetail_20' ) start [2025-01-15 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250701', 'tblTempUsageDetail_20' ) end [2025-01-15 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:56:21] Production.INFO: ==32348== Releasing lock... [2025-01-15 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:56:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:57:05 [end_date_ymd] => 2025-01-15 02:57:05 [RateCDR] => 1 ) [2025-01-15 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:57:05' and `end` < '2025-01-15 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:57:18] Production.INFO: count ==212 [2025-01-15 02:57:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:57:05 - End Time 2025-01-15 02:57:05 [2025-01-15 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250706', 'tblTempUsageDetail_20' ) start [2025-01-15 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250706', 'tblTempUsageDetail_20' ) end [2025-01-15 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250706', 'tblTempVendorCDR_20' ) start [2025-01-15 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250706', 'tblTempVendorCDR_20' ) end [2025-01-15 02:57:18] Production.INFO: ProcessCDR(1,14250706,1,1,2) [2025-01-15 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250706', 'tblTempUsageDetail_20' ) start [2025-01-15 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250706', 'tblTempUsageDetail_20' ) end [2025-01-15 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:57:22] Production.INFO: ==32419== Releasing lock... [2025-01-15 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:57:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:58:05 [end_date_ymd] => 2025-01-15 02:58:05 [RateCDR] => 1 ) [2025-01-15 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:58:05' and `end` < '2025-01-15 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:58:17] Production.INFO: count ==212 [2025-01-15 02:58:17] Production.ERROR: pbx CDR StartTime 2025-01-14 23:58:05 - End Time 2025-01-15 02:58:05 [2025-01-15 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250711', 'tblTempUsageDetail_20' ) start [2025-01-15 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250711', 'tblTempUsageDetail_20' ) end [2025-01-15 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250711', 'tblTempVendorCDR_20' ) start [2025-01-15 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250711', 'tblTempVendorCDR_20' ) end [2025-01-15 02:58:17] Production.INFO: ProcessCDR(1,14250711,1,1,2) [2025-01-15 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250711', 'tblTempUsageDetail_20' ) start [2025-01-15 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250711', 'tblTempUsageDetail_20' ) end [2025-01-15 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:58:21] Production.INFO: ==32491== Releasing lock... [2025-01-15 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:58:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 23:59:05 [end_date_ymd] => 2025-01-15 02:59:05 [RateCDR] => 1 ) [2025-01-15 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 23:59:05' and `end` < '2025-01-15 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 02:59:18] Production.INFO: count ==210 [2025-01-15 02:59:18] Production.ERROR: pbx CDR StartTime 2025-01-14 23:59:05 - End Time 2025-01-15 02:59:05 [2025-01-15 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250716', 'tblTempUsageDetail_20' ) start [2025-01-15 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250716', 'tblTempUsageDetail_20' ) end [2025-01-15 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250716', 'tblTempVendorCDR_20' ) start [2025-01-15 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250716', 'tblTempVendorCDR_20' ) end [2025-01-15 02:59:18] Production.INFO: ProcessCDR(1,14250716,1,1,2) [2025-01-15 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250716', 'tblTempUsageDetail_20' ) start [2025-01-15 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250716', 'tblTempUsageDetail_20' ) end [2025-01-15 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 02:59:22] Production.INFO: ==32562== Releasing lock... [2025-01-15 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 02:59:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:00:06 [end_date_ymd] => 2025-01-15 03:00:06 [RateCDR] => 1 ) [2025-01-15 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:00:06' and `end` < '2025-01-15 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:00:18] Production.INFO: count ==212 [2025-01-15 03:00:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:00:06 - End Time 2025-01-15 03:00:06 [2025-01-15 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250722', 'tblTempUsageDetail_20' ) start [2025-01-15 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250722', 'tblTempUsageDetail_20' ) end [2025-01-15 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250722', 'tblTempVendorCDR_20' ) start [2025-01-15 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250722', 'tblTempVendorCDR_20' ) end [2025-01-15 03:00:18] Production.INFO: ProcessCDR(1,14250722,1,1,2) [2025-01-15 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250722', 'tblTempUsageDetail_20' ) start [2025-01-15 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250722', 'tblTempUsageDetail_20' ) end [2025-01-15 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:00:21] Production.INFO: ==32635== Releasing lock... [2025-01-15 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:00:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:01:05 [end_date_ymd] => 2025-01-15 03:01:05 [RateCDR] => 1 ) [2025-01-15 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:01:05' and `end` < '2025-01-15 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:01:18] Production.INFO: count ==212 [2025-01-15 03:01:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:01:05 - End Time 2025-01-15 03:01:05 [2025-01-15 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250727', 'tblTempUsageDetail_20' ) start [2025-01-15 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250727', 'tblTempUsageDetail_20' ) end [2025-01-15 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250727', 'tblTempVendorCDR_20' ) start [2025-01-15 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250727', 'tblTempVendorCDR_20' ) end [2025-01-15 03:01:18] Production.INFO: ProcessCDR(1,14250727,1,1,2) [2025-01-15 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250727', 'tblTempUsageDetail_20' ) start [2025-01-15 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250727', 'tblTempUsageDetail_20' ) end [2025-01-15 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:01:22] Production.INFO: ==32721== Releasing lock... [2025-01-15 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:01:22] Production.INFO: 29 MB #Memory Used# [2025-01-15 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:02:05 [end_date_ymd] => 2025-01-15 03:02:05 [RateCDR] => 1 ) [2025-01-15 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:02:05' and `end` < '2025-01-15 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:02:18] Production.INFO: count ==211 [2025-01-15 03:02:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:02:05 - End Time 2025-01-15 03:02:05 [2025-01-15 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250729', 'tblTempUsageDetail_20' ) start [2025-01-15 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250729', 'tblTempUsageDetail_20' ) end [2025-01-15 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250729', 'tblTempVendorCDR_20' ) start [2025-01-15 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250729', 'tblTempVendorCDR_20' ) end [2025-01-15 03:02:18] Production.INFO: ProcessCDR(1,14250729,1,1,2) [2025-01-15 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250729', 'tblTempUsageDetail_20' ) start [2025-01-15 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250729', 'tblTempUsageDetail_20' ) end [2025-01-15 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:02:21] Production.INFO: ==426== Releasing lock... [2025-01-15 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:02:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:03:05 [end_date_ymd] => 2025-01-15 03:03:05 [RateCDR] => 1 ) [2025-01-15 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:03:05' and `end` < '2025-01-15 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:03:17] Production.INFO: count ==211 [2025-01-15 03:03:17] Production.ERROR: pbx CDR StartTime 2025-01-15 00:03:05 - End Time 2025-01-15 03:03:05 [2025-01-15 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250737', 'tblTempUsageDetail_20' ) start [2025-01-15 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250737', 'tblTempUsageDetail_20' ) end [2025-01-15 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250737', 'tblTempVendorCDR_20' ) start [2025-01-15 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250737', 'tblTempVendorCDR_20' ) end [2025-01-15 03:03:17] Production.INFO: ProcessCDR(1,14250737,1,1,2) [2025-01-15 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250737', 'tblTempUsageDetail_20' ) start [2025-01-15 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250737', 'tblTempUsageDetail_20' ) end [2025-01-15 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:03:21] Production.INFO: ==498== Releasing lock... [2025-01-15 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:03:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:04:05 [end_date_ymd] => 2025-01-15 03:04:05 [RateCDR] => 1 ) [2025-01-15 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:04:05' and `end` < '2025-01-15 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:04:18] Production.INFO: count ==211 [2025-01-15 03:04:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:04:05 - End Time 2025-01-15 03:04:05 [2025-01-15 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250742', 'tblTempUsageDetail_20' ) start [2025-01-15 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250742', 'tblTempUsageDetail_20' ) end [2025-01-15 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250742', 'tblTempVendorCDR_20' ) start [2025-01-15 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250742', 'tblTempVendorCDR_20' ) end [2025-01-15 03:04:18] Production.INFO: ProcessCDR(1,14250742,1,1,2) [2025-01-15 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250742', 'tblTempUsageDetail_20' ) start [2025-01-15 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250742', 'tblTempUsageDetail_20' ) end [2025-01-15 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:04:21] Production.INFO: ==612== Releasing lock... [2025-01-15 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:04:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:05:05 [end_date_ymd] => 2025-01-15 03:05:05 [RateCDR] => 1 ) [2025-01-15 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:05:05' and `end` < '2025-01-15 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:05:18] Production.INFO: count ==209 [2025-01-15 03:05:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:05:05 - End Time 2025-01-15 03:05:05 [2025-01-15 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250747', 'tblTempUsageDetail_20' ) start [2025-01-15 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250747', 'tblTempUsageDetail_20' ) end [2025-01-15 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250747', 'tblTempVendorCDR_20' ) start [2025-01-15 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250747', 'tblTempVendorCDR_20' ) end [2025-01-15 03:05:18] Production.INFO: ProcessCDR(1,14250747,1,1,2) [2025-01-15 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250747', 'tblTempUsageDetail_20' ) start [2025-01-15 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250747', 'tblTempUsageDetail_20' ) end [2025-01-15 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:05:21] Production.INFO: ==706== Releasing lock... [2025-01-15 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:05:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 03:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:06:04 [end_date_ymd] => 2025-01-15 03:06:04 [RateCDR] => 1 ) [2025-01-15 03:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:06:04' and `end` < '2025-01-15 03:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:06:17] Production.INFO: count ==206 [2025-01-15 03:06:17] Production.ERROR: pbx CDR StartTime 2025-01-15 00:06:04 - End Time 2025-01-15 03:06:04 [2025-01-15 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250752', 'tblTempUsageDetail_20' ) start [2025-01-15 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250752', 'tblTempUsageDetail_20' ) end [2025-01-15 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250752', 'tblTempVendorCDR_20' ) start [2025-01-15 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250752', 'tblTempVendorCDR_20' ) end [2025-01-15 03:06:17] Production.INFO: ProcessCDR(1,14250752,1,1,2) [2025-01-15 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250752', 'tblTempUsageDetail_20' ) start [2025-01-15 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250752', 'tblTempUsageDetail_20' ) end [2025-01-15 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:06:21] Production.INFO: ==860== Releasing lock... [2025-01-15 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:06:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:07:05 [end_date_ymd] => 2025-01-15 03:07:05 [RateCDR] => 1 ) [2025-01-15 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:07:05' and `end` < '2025-01-15 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:07:17] Production.INFO: count ==203 [2025-01-15 03:07:17] Production.ERROR: pbx CDR StartTime 2025-01-15 00:07:05 - End Time 2025-01-15 03:07:05 [2025-01-15 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250757', 'tblTempUsageDetail_20' ) start [2025-01-15 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250757', 'tblTempUsageDetail_20' ) end [2025-01-15 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250757', 'tblTempVendorCDR_20' ) start [2025-01-15 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250757', 'tblTempVendorCDR_20' ) end [2025-01-15 03:07:17] Production.INFO: ProcessCDR(1,14250757,1,1,2) [2025-01-15 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250757', 'tblTempUsageDetail_20' ) start [2025-01-15 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250757', 'tblTempUsageDetail_20' ) end [2025-01-15 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:07:21] Production.INFO: ==930== Releasing lock... [2025-01-15 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:08:05 [end_date_ymd] => 2025-01-15 03:08:05 [RateCDR] => 1 ) [2025-01-15 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:08:05' and `end` < '2025-01-15 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:08:18] Production.INFO: count ==203 [2025-01-15 03:08:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:08:05 - End Time 2025-01-15 03:08:05 [2025-01-15 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250762', 'tblTempUsageDetail_20' ) start [2025-01-15 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250762', 'tblTempUsageDetail_20' ) end [2025-01-15 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250762', 'tblTempVendorCDR_20' ) start [2025-01-15 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250762', 'tblTempVendorCDR_20' ) end [2025-01-15 03:08:18] Production.INFO: ProcessCDR(1,14250762,1,1,2) [2025-01-15 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250762', 'tblTempUsageDetail_20' ) start [2025-01-15 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250762', 'tblTempUsageDetail_20' ) end [2025-01-15 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:08:22] Production.INFO: ==1001== Releasing lock... [2025-01-15 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:08:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:09:05 [end_date_ymd] => 2025-01-15 03:09:05 [RateCDR] => 1 ) [2025-01-15 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:09:05' and `end` < '2025-01-15 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:09:18] Production.INFO: count ==203 [2025-01-15 03:09:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:09:05 - End Time 2025-01-15 03:09:05 [2025-01-15 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250767', 'tblTempUsageDetail_20' ) start [2025-01-15 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250767', 'tblTempUsageDetail_20' ) end [2025-01-15 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250767', 'tblTempVendorCDR_20' ) start [2025-01-15 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250767', 'tblTempVendorCDR_20' ) end [2025-01-15 03:09:18] Production.INFO: ProcessCDR(1,14250767,1,1,2) [2025-01-15 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250767', 'tblTempUsageDetail_20' ) start [2025-01-15 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250767', 'tblTempUsageDetail_20' ) end [2025-01-15 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:09:21] Production.INFO: ==1151== Releasing lock... [2025-01-15 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:10:05 [end_date_ymd] => 2025-01-15 03:10:05 [RateCDR] => 1 ) [2025-01-15 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:10:05' and `end` < '2025-01-15 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:10:18] Production.INFO: count ==199 [2025-01-15 03:10:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:10:05 - End Time 2025-01-15 03:10:05 [2025-01-15 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250772', 'tblTempUsageDetail_20' ) start [2025-01-15 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250772', 'tblTempUsageDetail_20' ) end [2025-01-15 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250772', 'tblTempVendorCDR_20' ) start [2025-01-15 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250772', 'tblTempVendorCDR_20' ) end [2025-01-15 03:10:18] Production.INFO: ProcessCDR(1,14250772,1,1,2) [2025-01-15 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250772', 'tblTempUsageDetail_20' ) start [2025-01-15 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250772', 'tblTempUsageDetail_20' ) end [2025-01-15 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:10:21] Production.INFO: ==1228== Releasing lock... [2025-01-15 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:11:05 [end_date_ymd] => 2025-01-15 03:11:05 [RateCDR] => 1 ) [2025-01-15 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:11:05' and `end` < '2025-01-15 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:11:18] Production.INFO: count ==199 [2025-01-15 03:11:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:11:05 - End Time 2025-01-15 03:11:05 [2025-01-15 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250778', 'tblTempUsageDetail_20' ) start [2025-01-15 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250778', 'tblTempUsageDetail_20' ) end [2025-01-15 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250778', 'tblTempVendorCDR_20' ) start [2025-01-15 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250778', 'tblTempVendorCDR_20' ) end [2025-01-15 03:11:18] Production.INFO: ProcessCDR(1,14250778,1,1,2) [2025-01-15 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250778', 'tblTempUsageDetail_20' ) start [2025-01-15 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250778', 'tblTempUsageDetail_20' ) end [2025-01-15 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:11:21] Production.INFO: ==1310== Releasing lock... [2025-01-15 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:12:06 [end_date_ymd] => 2025-01-15 03:12:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 00:12:06' and `end` < '2025-01-15 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-01-15 03:12:19] Production.INFO: count ==199 [2025-01-15 03:12:19] Production.ERROR: pbx CDR StartTime 2025-01-15 00:12:06 - End Time 2025-01-15 03:12:06 [2025-01-15 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250783', 'tblTempUsageDetail_20' ) start [2025-01-15 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250783', 'tblTempUsageDetail_20' ) end [2025-01-15 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250783', 'tblTempVendorCDR_20' ) start [2025-01-15 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250783', 'tblTempVendorCDR_20' ) end [2025-01-15 03:12:19] Production.INFO: ProcessCDR(1,14250783,1,1,2) [2025-01-15 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250783', 'tblTempUsageDetail_20' ) start [2025-01-15 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250783', 'tblTempUsageDetail_20' ) end [2025-01-15 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:12:22] Production.INFO: ==1379== Releasing lock... [2025-01-15 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:13:05 [end_date_ymd] => 2025-01-15 03:13:05 [RateCDR] => 1 ) [2025-01-15 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:13:05' and `end` < '2025-01-15 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:13:17] Production.INFO: count ==199 [2025-01-15 03:13:17] Production.ERROR: pbx CDR StartTime 2025-01-15 00:13:05 - End Time 2025-01-15 03:13:05 [2025-01-15 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250788', 'tblTempUsageDetail_20' ) start [2025-01-15 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250788', 'tblTempUsageDetail_20' ) end [2025-01-15 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250788', 'tblTempVendorCDR_20' ) start [2025-01-15 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250788', 'tblTempVendorCDR_20' ) end [2025-01-15 03:13:17] Production.INFO: ProcessCDR(1,14250788,1,1,2) [2025-01-15 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250788', 'tblTempUsageDetail_20' ) start [2025-01-15 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250788', 'tblTempUsageDetail_20' ) end [2025-01-15 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:13:21] Production.INFO: ==1556== Releasing lock... [2025-01-15 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:14:06 [end_date_ymd] => 2025-01-15 03:14:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 00:14:06' and `end` < '2025-01-15 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-01-15 03:14:18] Production.INFO: count ==199 [2025-01-15 03:14:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:14:06 - End Time 2025-01-15 03:14:06 [2025-01-15 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250793', 'tblTempUsageDetail_20' ) start [2025-01-15 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250793', 'tblTempUsageDetail_20' ) end [2025-01-15 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250793', 'tblTempVendorCDR_20' ) start [2025-01-15 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250793', 'tblTempVendorCDR_20' ) end [2025-01-15 03:14:18] Production.INFO: ProcessCDR(1,14250793,1,1,2) [2025-01-15 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250793', 'tblTempUsageDetail_20' ) start [2025-01-15 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250793', 'tblTempUsageDetail_20' ) end [2025-01-15 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:14:22] Production.INFO: ==1634== Releasing lock... [2025-01-15 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:14:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:15:05 [end_date_ymd] => 2025-01-15 03:15:05 [RateCDR] => 1 ) [2025-01-15 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:15:05' and `end` < '2025-01-15 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:15:18] Production.INFO: count ==199 [2025-01-15 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:15:05 - End Time 2025-01-15 03:15:05 [2025-01-15 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250798', 'tblTempUsageDetail_20' ) start [2025-01-15 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250798', 'tblTempUsageDetail_20' ) end [2025-01-15 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250798', 'tblTempVendorCDR_20' ) start [2025-01-15 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250798', 'tblTempVendorCDR_20' ) end [2025-01-15 03:15:18] Production.INFO: ProcessCDR(1,14250798,1,1,2) [2025-01-15 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250798', 'tblTempUsageDetail_20' ) start [2025-01-15 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250798', 'tblTempUsageDetail_20' ) end [2025-01-15 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:15:21] Production.INFO: ==1702== Releasing lock... [2025-01-15 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:16:05 [end_date_ymd] => 2025-01-15 03:16:05 [RateCDR] => 1 ) [2025-01-15 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:16:05' and `end` < '2025-01-15 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:16:18] Production.INFO: count ==199 [2025-01-15 03:16:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:16:05 - End Time 2025-01-15 03:16:05 [2025-01-15 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250803', 'tblTempUsageDetail_20' ) start [2025-01-15 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250803', 'tblTempUsageDetail_20' ) end [2025-01-15 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250803', 'tblTempVendorCDR_20' ) start [2025-01-15 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250803', 'tblTempVendorCDR_20' ) end [2025-01-15 03:16:18] Production.INFO: ProcessCDR(1,14250803,1,1,2) [2025-01-15 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250803', 'tblTempUsageDetail_20' ) start [2025-01-15 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250803', 'tblTempUsageDetail_20' ) end [2025-01-15 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:16:21] Production.INFO: ==1774== Releasing lock... [2025-01-15 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:17:05 [end_date_ymd] => 2025-01-15 03:17:05 [RateCDR] => 1 ) [2025-01-15 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:17:05' and `end` < '2025-01-15 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:17:17] Production.INFO: count ==198 [2025-01-15 03:17:17] Production.ERROR: pbx CDR StartTime 2025-01-15 00:17:05 - End Time 2025-01-15 03:17:05 [2025-01-15 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250808', 'tblTempUsageDetail_20' ) start [2025-01-15 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250808', 'tblTempUsageDetail_20' ) end [2025-01-15 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250808', 'tblTempVendorCDR_20' ) start [2025-01-15 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250808', 'tblTempVendorCDR_20' ) end [2025-01-15 03:17:17] Production.INFO: ProcessCDR(1,14250808,1,1,2) [2025-01-15 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250808', 'tblTempUsageDetail_20' ) start [2025-01-15 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250808', 'tblTempUsageDetail_20' ) end [2025-01-15 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:17:21] Production.INFO: ==1925== Releasing lock... [2025-01-15 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:18:05 [end_date_ymd] => 2025-01-15 03:18:05 [RateCDR] => 1 ) [2025-01-15 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:18:05' and `end` < '2025-01-15 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:18:18] Production.INFO: count ==198 [2025-01-15 03:18:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:18:05 - End Time 2025-01-15 03:18:05 [2025-01-15 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250813', 'tblTempUsageDetail_20' ) start [2025-01-15 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250813', 'tblTempUsageDetail_20' ) end [2025-01-15 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250813', 'tblTempVendorCDR_20' ) start [2025-01-15 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250813', 'tblTempVendorCDR_20' ) end [2025-01-15 03:18:18] Production.INFO: ProcessCDR(1,14250813,1,1,2) [2025-01-15 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250813', 'tblTempUsageDetail_20' ) start [2025-01-15 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250813', 'tblTempUsageDetail_20' ) end [2025-01-15 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:18:21] Production.INFO: ==2000== Releasing lock... [2025-01-15 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:19:05 [end_date_ymd] => 2025-01-15 03:19:05 [RateCDR] => 1 ) [2025-01-15 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:19:05' and `end` < '2025-01-15 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:19:18] Production.INFO: count ==197 [2025-01-15 03:19:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:19:05 - End Time 2025-01-15 03:19:05 [2025-01-15 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250817', 'tblTempUsageDetail_20' ) start [2025-01-15 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250817', 'tblTempUsageDetail_20' ) end [2025-01-15 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250817', 'tblTempVendorCDR_20' ) start [2025-01-15 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250817', 'tblTempVendorCDR_20' ) end [2025-01-15 03:19:18] Production.INFO: ProcessCDR(1,14250817,1,1,2) [2025-01-15 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250817', 'tblTempUsageDetail_20' ) start [2025-01-15 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250817', 'tblTempUsageDetail_20' ) end [2025-01-15 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:19:21] Production.INFO: ==2086== Releasing lock... [2025-01-15 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:20:05 [end_date_ymd] => 2025-01-15 03:20:05 [RateCDR] => 1 ) [2025-01-15 03:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:20:05' and `end` < '2025-01-15 03:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:20:18] Production.INFO: count ==191 [2025-01-15 03:20:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:20:05 - End Time 2025-01-15 03:20:05 [2025-01-15 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250823', 'tblTempUsageDetail_20' ) start [2025-01-15 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250823', 'tblTempUsageDetail_20' ) end [2025-01-15 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250823', 'tblTempVendorCDR_20' ) start [2025-01-15 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250823', 'tblTempVendorCDR_20' ) end [2025-01-15 03:20:18] Production.INFO: ProcessCDR(1,14250823,1,1,2) [2025-01-15 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250823', 'tblTempUsageDetail_20' ) start [2025-01-15 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250823', 'tblTempUsageDetail_20' ) end [2025-01-15 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:20:22] Production.INFO: ==2178== Releasing lock... [2025-01-15 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:21:05 [end_date_ymd] => 2025-01-15 03:21:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 00:21:05' and `end` < '2025-01-15 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-01-15 03:21:17] Production.INFO: count ==188 [2025-01-15 03:21:17] Production.ERROR: pbx CDR StartTime 2025-01-15 00:21:05 - End Time 2025-01-15 03:21:05 [2025-01-15 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250829', 'tblTempUsageDetail_20' ) start [2025-01-15 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250829', 'tblTempUsageDetail_20' ) end [2025-01-15 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250829', 'tblTempVendorCDR_20' ) start [2025-01-15 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250829', 'tblTempVendorCDR_20' ) end [2025-01-15 03:21:17] Production.INFO: ProcessCDR(1,14250829,1,1,2) [2025-01-15 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250829', 'tblTempUsageDetail_20' ) start [2025-01-15 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250829', 'tblTempUsageDetail_20' ) end [2025-01-15 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:21:21] Production.INFO: ==2293== Releasing lock... [2025-01-15 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:22:05 [end_date_ymd] => 2025-01-15 03:22:05 [RateCDR] => 1 ) [2025-01-15 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:22:05' and `end` < '2025-01-15 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:22:18] Production.INFO: count ==188 [2025-01-15 03:22:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:22:05 - End Time 2025-01-15 03:22:05 [2025-01-15 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250834', 'tblTempUsageDetail_20' ) start [2025-01-15 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250834', 'tblTempUsageDetail_20' ) end [2025-01-15 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250834', 'tblTempVendorCDR_20' ) start [2025-01-15 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250834', 'tblTempVendorCDR_20' ) end [2025-01-15 03:22:18] Production.INFO: ProcessCDR(1,14250834,1,1,2) [2025-01-15 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250834', 'tblTempUsageDetail_20' ) start [2025-01-15 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250834', 'tblTempUsageDetail_20' ) end [2025-01-15 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:22:21] Production.INFO: ==2362== Releasing lock... [2025-01-15 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:23:04 [end_date_ymd] => 2025-01-15 03:23:04 [RateCDR] => 1 ) [2025-01-15 03:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:23:04' and `end` < '2025-01-15 03:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:23:17] Production.INFO: count ==188 [2025-01-15 03:23:17] Production.ERROR: pbx CDR StartTime 2025-01-15 00:23:04 - End Time 2025-01-15 03:23:04 [2025-01-15 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250839', 'tblTempUsageDetail_20' ) start [2025-01-15 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250839', 'tblTempUsageDetail_20' ) end [2025-01-15 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250839', 'tblTempVendorCDR_20' ) start [2025-01-15 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250839', 'tblTempVendorCDR_20' ) end [2025-01-15 03:23:17] Production.INFO: ProcessCDR(1,14250839,1,1,2) [2025-01-15 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250839', 'tblTempUsageDetail_20' ) start [2025-01-15 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250839', 'tblTempUsageDetail_20' ) end [2025-01-15 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:23:21] Production.INFO: ==2430== Releasing lock... [2025-01-15 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:24:05 [end_date_ymd] => 2025-01-15 03:24:05 [RateCDR] => 1 ) [2025-01-15 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:24:05' and `end` < '2025-01-15 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:24:18] Production.INFO: count ==187 [2025-01-15 03:24:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:24:05 - End Time 2025-01-15 03:24:05 [2025-01-15 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250844', 'tblTempUsageDetail_20' ) start [2025-01-15 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250844', 'tblTempUsageDetail_20' ) end [2025-01-15 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250844', 'tblTempVendorCDR_20' ) start [2025-01-15 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250844', 'tblTempVendorCDR_20' ) end [2025-01-15 03:24:18] Production.INFO: ProcessCDR(1,14250844,1,1,2) [2025-01-15 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250844', 'tblTempUsageDetail_20' ) start [2025-01-15 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250844', 'tblTempUsageDetail_20' ) end [2025-01-15 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:24:21] Production.INFO: ==2500== Releasing lock... [2025-01-15 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:25:05 [end_date_ymd] => 2025-01-15 03:25:05 [RateCDR] => 1 ) [2025-01-15 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:25:05' and `end` < '2025-01-15 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:25:18] Production.INFO: count ==185 [2025-01-15 03:25:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:25:05 - End Time 2025-01-15 03:25:05 [2025-01-15 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250849', 'tblTempUsageDetail_20' ) start [2025-01-15 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250849', 'tblTempUsageDetail_20' ) end [2025-01-15 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250849', 'tblTempVendorCDR_20' ) start [2025-01-15 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250849', 'tblTempVendorCDR_20' ) end [2025-01-15 03:25:18] Production.INFO: ProcessCDR(1,14250849,1,1,2) [2025-01-15 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250849', 'tblTempUsageDetail_20' ) start [2025-01-15 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250849', 'tblTempUsageDetail_20' ) end [2025-01-15 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:25:22] Production.INFO: ==2575== Releasing lock... [2025-01-15 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:25:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:26:06 [end_date_ymd] => 2025-01-15 03:26:06 [RateCDR] => 1 ) [2025-01-15 03:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:26:06' and `end` < '2025-01-15 03:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:26:18] Production.INFO: count ==183 [2025-01-15 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:26:06 - End Time 2025-01-15 03:26:06 [2025-01-15 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250854', 'tblTempUsageDetail_20' ) start [2025-01-15 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250854', 'tblTempUsageDetail_20' ) end [2025-01-15 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250854', 'tblTempVendorCDR_20' ) start [2025-01-15 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250854', 'tblTempVendorCDR_20' ) end [2025-01-15 03:26:18] Production.INFO: ProcessCDR(1,14250854,1,1,2) [2025-01-15 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250854', 'tblTempUsageDetail_20' ) start [2025-01-15 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250854', 'tblTempUsageDetail_20' ) end [2025-01-15 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:26:22] Production.INFO: ==2646== Releasing lock... [2025-01-15 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:26:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:27:05 [end_date_ymd] => 2025-01-15 03:27:05 [RateCDR] => 1 ) [2025-01-15 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:27:05' and `end` < '2025-01-15 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:27:18] Production.INFO: count ==182 [2025-01-15 03:27:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:27:05 - End Time 2025-01-15 03:27:05 [2025-01-15 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250859', 'tblTempUsageDetail_20' ) start [2025-01-15 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250859', 'tblTempUsageDetail_20' ) end [2025-01-15 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250859', 'tblTempVendorCDR_20' ) start [2025-01-15 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250859', 'tblTempVendorCDR_20' ) end [2025-01-15 03:27:18] Production.INFO: ProcessCDR(1,14250859,1,1,2) [2025-01-15 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250859', 'tblTempUsageDetail_20' ) start [2025-01-15 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250859', 'tblTempUsageDetail_20' ) end [2025-01-15 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:27:22] Production.INFO: ==2716== Releasing lock... [2025-01-15 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:27:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:28:05 [end_date_ymd] => 2025-01-15 03:28:05 [RateCDR] => 1 ) [2025-01-15 03:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:28:05' and `end` < '2025-01-15 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-01-15 03:28:18] Production.INFO: count ==178 [2025-01-15 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:28:05 - End Time 2025-01-15 03:28:05 [2025-01-15 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250864', 'tblTempUsageDetail_20' ) start [2025-01-15 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250864', 'tblTempUsageDetail_20' ) end [2025-01-15 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250864', 'tblTempVendorCDR_20' ) start [2025-01-15 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250864', 'tblTempVendorCDR_20' ) end [2025-01-15 03:28:18] Production.INFO: ProcessCDR(1,14250864,1,1,2) [2025-01-15 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250864', 'tblTempUsageDetail_20' ) start [2025-01-15 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250864', 'tblTempUsageDetail_20' ) end [2025-01-15 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:28:21] Production.INFO: ==2788== Releasing lock... [2025-01-15 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:29:05 [end_date_ymd] => 2025-01-15 03:29:05 [RateCDR] => 1 ) [2025-01-15 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:29:05' and `end` < '2025-01-15 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:29:18] Production.INFO: count ==178 [2025-01-15 03:29:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:29:05 - End Time 2025-01-15 03:29:05 [2025-01-15 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250869', 'tblTempUsageDetail_20' ) start [2025-01-15 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250869', 'tblTempUsageDetail_20' ) end [2025-01-15 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250869', 'tblTempVendorCDR_20' ) start [2025-01-15 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250869', 'tblTempVendorCDR_20' ) end [2025-01-15 03:29:18] Production.INFO: ProcessCDR(1,14250869,1,1,2) [2025-01-15 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250869', 'tblTempUsageDetail_20' ) start [2025-01-15 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250869', 'tblTempUsageDetail_20' ) end [2025-01-15 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:29:21] Production.INFO: ==2861== Releasing lock... [2025-01-15 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-15 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:30:06 [end_date_ymd] => 2025-01-15 03:30:06 [RateCDR] => 1 ) [2025-01-15 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:30:06' and `end` < '2025-01-15 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:30:19] Production.INFO: count ==172 [2025-01-15 03:30:19] Production.ERROR: pbx CDR StartTime 2025-01-15 00:30:06 - End Time 2025-01-15 03:30:06 [2025-01-15 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250874', 'tblTempUsageDetail_20' ) start [2025-01-15 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250874', 'tblTempUsageDetail_20' ) end [2025-01-15 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250874', 'tblTempVendorCDR_20' ) start [2025-01-15 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250874', 'tblTempVendorCDR_20' ) end [2025-01-15 03:30:19] Production.INFO: ProcessCDR(1,14250874,1,1,2) [2025-01-15 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250874', 'tblTempUsageDetail_20' ) start [2025-01-15 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250874', 'tblTempUsageDetail_20' ) end [2025-01-15 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:30:22] Production.INFO: ==2939== Releasing lock... [2025-01-15 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:31:05 [end_date_ymd] => 2025-01-15 03:31:05 [RateCDR] => 1 ) [2025-01-15 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:31:05' and `end` < '2025-01-15 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:31:18] Production.INFO: count ==152 [2025-01-15 03:31:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:31:05 - End Time 2025-01-15 03:31:05 [2025-01-15 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250880', 'tblTempUsageDetail_20' ) start [2025-01-15 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250880', 'tblTempUsageDetail_20' ) end [2025-01-15 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250880', 'tblTempVendorCDR_20' ) start [2025-01-15 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250880', 'tblTempVendorCDR_20' ) end [2025-01-15 03:31:18] Production.INFO: ProcessCDR(1,14250880,1,1,2) [2025-01-15 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250880', 'tblTempUsageDetail_20' ) start [2025-01-15 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250880', 'tblTempUsageDetail_20' ) end [2025-01-15 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:31:21] Production.INFO: ==3010== Releasing lock... [2025-01-15 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:32:06 [end_date_ymd] => 2025-01-15 03:32:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 00:32:06' and `end` < '2025-01-15 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-01-15 03:32:19] Production.INFO: count ==152 [2025-01-15 03:32:19] Production.ERROR: pbx CDR StartTime 2025-01-15 00:32:06 - End Time 2025-01-15 03:32:06 [2025-01-15 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250885', 'tblTempUsageDetail_20' ) start [2025-01-15 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250885', 'tblTempUsageDetail_20' ) end [2025-01-15 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250885', 'tblTempVendorCDR_20' ) start [2025-01-15 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250885', 'tblTempVendorCDR_20' ) end [2025-01-15 03:32:19] Production.INFO: ProcessCDR(1,14250885,1,1,2) [2025-01-15 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250885', 'tblTempUsageDetail_20' ) start [2025-01-15 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250885', 'tblTempUsageDetail_20' ) end [2025-01-15 03:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:32:23] Production.INFO: ==3081== Releasing lock... [2025-01-15 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:32:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:33:05 [end_date_ymd] => 2025-01-15 03:33:05 [RateCDR] => 1 ) [2025-01-15 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:33:05' and `end` < '2025-01-15 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:33:18] Production.INFO: count ==152 [2025-01-15 03:33:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:33:05 - End Time 2025-01-15 03:33:05 [2025-01-15 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250890', 'tblTempUsageDetail_20' ) start [2025-01-15 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250890', 'tblTempUsageDetail_20' ) end [2025-01-15 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250890', 'tblTempVendorCDR_20' ) start [2025-01-15 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250890', 'tblTempVendorCDR_20' ) end [2025-01-15 03:33:18] Production.INFO: ProcessCDR(1,14250890,1,1,2) [2025-01-15 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250890', 'tblTempUsageDetail_20' ) start [2025-01-15 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250890', 'tblTempUsageDetail_20' ) end [2025-01-15 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:33:21] Production.INFO: ==3152== Releasing lock... [2025-01-15 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:34:05 [end_date_ymd] => 2025-01-15 03:34:05 [RateCDR] => 1 ) [2025-01-15 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:34:05' and `end` < '2025-01-15 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:34:18] Production.INFO: count ==148 [2025-01-15 03:34:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:34:05 - End Time 2025-01-15 03:34:05 [2025-01-15 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250895', 'tblTempUsageDetail_20' ) start [2025-01-15 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250895', 'tblTempUsageDetail_20' ) end [2025-01-15 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250895', 'tblTempVendorCDR_20' ) start [2025-01-15 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250895', 'tblTempVendorCDR_20' ) end [2025-01-15 03:34:18] Production.INFO: ProcessCDR(1,14250895,1,1,2) [2025-01-15 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250895', 'tblTempUsageDetail_20' ) start [2025-01-15 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250895', 'tblTempUsageDetail_20' ) end [2025-01-15 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:34:22] Production.INFO: ==3222== Releasing lock... [2025-01-15 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:34:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:35:05 [end_date_ymd] => 2025-01-15 03:35:05 [RateCDR] => 1 ) [2025-01-15 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:35:05' and `end` < '2025-01-15 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:35:17] Production.INFO: count ==148 [2025-01-15 03:35:17] Production.ERROR: pbx CDR StartTime 2025-01-15 00:35:05 - End Time 2025-01-15 03:35:05 [2025-01-15 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250900', 'tblTempUsageDetail_20' ) start [2025-01-15 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250900', 'tblTempUsageDetail_20' ) end [2025-01-15 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250900', 'tblTempVendorCDR_20' ) start [2025-01-15 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250900', 'tblTempVendorCDR_20' ) end [2025-01-15 03:35:18] Production.INFO: ProcessCDR(1,14250900,1,1,2) [2025-01-15 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250900', 'tblTempUsageDetail_20' ) start [2025-01-15 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250900', 'tblTempUsageDetail_20' ) end [2025-01-15 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:35:21] Production.INFO: ==3295== Releasing lock... [2025-01-15 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:36:06 [end_date_ymd] => 2025-01-15 03:36:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 00:36:06' and `end` < '2025-01-15 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-01-15 03:36:18] Production.INFO: count ==148 [2025-01-15 03:36:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:36:06 - End Time 2025-01-15 03:36:06 [2025-01-15 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250905', 'tblTempUsageDetail_20' ) start [2025-01-15 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250905', 'tblTempUsageDetail_20' ) end [2025-01-15 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250905', 'tblTempVendorCDR_20' ) start [2025-01-15 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250905', 'tblTempVendorCDR_20' ) end [2025-01-15 03:36:18] Production.INFO: ProcessCDR(1,14250905,1,1,2) [2025-01-15 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250905', 'tblTempUsageDetail_20' ) start [2025-01-15 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250905', 'tblTempUsageDetail_20' ) end [2025-01-15 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:36:21] Production.INFO: ==3368== Releasing lock... [2025-01-15 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:37:05 [end_date_ymd] => 2025-01-15 03:37:05 [RateCDR] => 1 ) [2025-01-15 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:37:05' and `end` < '2025-01-15 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:37:18] Production.INFO: count ==145 [2025-01-15 03:37:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:37:05 - End Time 2025-01-15 03:37:05 [2025-01-15 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250910', 'tblTempUsageDetail_20' ) start [2025-01-15 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250910', 'tblTempUsageDetail_20' ) end [2025-01-15 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250910', 'tblTempVendorCDR_20' ) start [2025-01-15 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250910', 'tblTempVendorCDR_20' ) end [2025-01-15 03:37:18] Production.INFO: ProcessCDR(1,14250910,1,1,2) [2025-01-15 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250910', 'tblTempUsageDetail_20' ) start [2025-01-15 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250910', 'tblTempUsageDetail_20' ) end [2025-01-15 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:37:21] Production.INFO: ==3476== Releasing lock... [2025-01-15 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:38:05 [end_date_ymd] => 2025-01-15 03:38:05 [RateCDR] => 1 ) [2025-01-15 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:38:05' and `end` < '2025-01-15 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:38:18] Production.INFO: count ==145 [2025-01-15 03:38:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:38:05 - End Time 2025-01-15 03:38:05 [2025-01-15 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250915', 'tblTempUsageDetail_20' ) start [2025-01-15 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250915', 'tblTempUsageDetail_20' ) end [2025-01-15 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250915', 'tblTempVendorCDR_20' ) start [2025-01-15 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250915', 'tblTempVendorCDR_20' ) end [2025-01-15 03:38:18] Production.INFO: ProcessCDR(1,14250915,1,1,2) [2025-01-15 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250915', 'tblTempUsageDetail_20' ) start [2025-01-15 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250915', 'tblTempUsageDetail_20' ) end [2025-01-15 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:38:21] Production.INFO: ==3546== Releasing lock... [2025-01-15 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:39:05 [end_date_ymd] => 2025-01-15 03:39:05 [RateCDR] => 1 ) [2025-01-15 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:39:05' and `end` < '2025-01-15 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:39:17] Production.INFO: count ==144 [2025-01-15 03:39:17] Production.ERROR: pbx CDR StartTime 2025-01-15 00:39:05 - End Time 2025-01-15 03:39:05 [2025-01-15 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250920', 'tblTempUsageDetail_20' ) start [2025-01-15 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250920', 'tblTempUsageDetail_20' ) end [2025-01-15 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250920', 'tblTempVendorCDR_20' ) start [2025-01-15 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250920', 'tblTempVendorCDR_20' ) end [2025-01-15 03:39:17] Production.INFO: ProcessCDR(1,14250920,1,1,2) [2025-01-15 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250920', 'tblTempUsageDetail_20' ) start [2025-01-15 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250920', 'tblTempUsageDetail_20' ) end [2025-01-15 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:39:21] Production.INFO: ==3617== Releasing lock... [2025-01-15 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:40:06 [end_date_ymd] => 2025-01-15 03:40:06 [RateCDR] => 1 ) [2025-01-15 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:40:06' and `end` < '2025-01-15 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:40:19] Production.INFO: count ==144 [2025-01-15 03:40:19] Production.ERROR: pbx CDR StartTime 2025-01-15 00:40:06 - End Time 2025-01-15 03:40:06 [2025-01-15 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250926', 'tblTempUsageDetail_20' ) start [2025-01-15 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250926', 'tblTempUsageDetail_20' ) end [2025-01-15 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250926', 'tblTempVendorCDR_20' ) start [2025-01-15 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250926', 'tblTempVendorCDR_20' ) end [2025-01-15 03:40:19] Production.INFO: ProcessCDR(1,14250926,1,1,2) [2025-01-15 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250926', 'tblTempUsageDetail_20' ) start [2025-01-15 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250926', 'tblTempUsageDetail_20' ) end [2025-01-15 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:40:22] Production.INFO: ==3691== Releasing lock... [2025-01-15 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:40:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:41:05 [end_date_ymd] => 2025-01-15 03:41:05 [RateCDR] => 1 ) [2025-01-15 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:41:05' and `end` < '2025-01-15 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:41:17] Production.INFO: count ==146 [2025-01-15 03:41:17] Production.ERROR: pbx CDR StartTime 2025-01-15 00:41:05 - End Time 2025-01-15 03:41:05 [2025-01-15 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250931', 'tblTempUsageDetail_20' ) start [2025-01-15 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250931', 'tblTempUsageDetail_20' ) end [2025-01-15 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250931', 'tblTempVendorCDR_20' ) start [2025-01-15 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250931', 'tblTempVendorCDR_20' ) end [2025-01-15 03:41:17] Production.INFO: ProcessCDR(1,14250931,1,1,2) [2025-01-15 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250931', 'tblTempUsageDetail_20' ) start [2025-01-15 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250931', 'tblTempUsageDetail_20' ) end [2025-01-15 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:41:21] Production.INFO: ==3764== Releasing lock... [2025-01-15 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:42:05 [end_date_ymd] => 2025-01-15 03:42:05 [RateCDR] => 1 ) [2025-01-15 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:42:05' and `end` < '2025-01-15 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:42:18] Production.INFO: count ==146 [2025-01-15 03:42:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:42:05 - End Time 2025-01-15 03:42:05 [2025-01-15 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250936', 'tblTempUsageDetail_20' ) start [2025-01-15 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250936', 'tblTempUsageDetail_20' ) end [2025-01-15 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250936', 'tblTempVendorCDR_20' ) start [2025-01-15 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250936', 'tblTempVendorCDR_20' ) end [2025-01-15 03:42:18] Production.INFO: ProcessCDR(1,14250936,1,1,2) [2025-01-15 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250936', 'tblTempUsageDetail_20' ) start [2025-01-15 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250936', 'tblTempUsageDetail_20' ) end [2025-01-15 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:42:21] Production.INFO: ==3836== Releasing lock... [2025-01-15 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:43:05 [end_date_ymd] => 2025-01-15 03:43:05 [RateCDR] => 1 ) [2025-01-15 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:43:05' and `end` < '2025-01-15 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:43:17] Production.INFO: count ==146 [2025-01-15 03:43:17] Production.ERROR: pbx CDR StartTime 2025-01-15 00:43:05 - End Time 2025-01-15 03:43:05 [2025-01-15 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250941', 'tblTempUsageDetail_20' ) start [2025-01-15 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250941', 'tblTempUsageDetail_20' ) end [2025-01-15 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250941', 'tblTempVendorCDR_20' ) start [2025-01-15 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250941', 'tblTempVendorCDR_20' ) end [2025-01-15 03:43:17] Production.INFO: ProcessCDR(1,14250941,1,1,2) [2025-01-15 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250941', 'tblTempUsageDetail_20' ) start [2025-01-15 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250941', 'tblTempUsageDetail_20' ) end [2025-01-15 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:43:21] Production.INFO: ==3908== Releasing lock... [2025-01-15 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:44:05 [end_date_ymd] => 2025-01-15 03:44:05 [RateCDR] => 1 ) [2025-01-15 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:44:05' and `end` < '2025-01-15 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:44:18] Production.INFO: count ==146 [2025-01-15 03:44:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:44:05 - End Time 2025-01-15 03:44:05 [2025-01-15 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250946', 'tblTempUsageDetail_20' ) start [2025-01-15 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250946', 'tblTempUsageDetail_20' ) end [2025-01-15 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250946', 'tblTempVendorCDR_20' ) start [2025-01-15 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250946', 'tblTempVendorCDR_20' ) end [2025-01-15 03:44:18] Production.INFO: ProcessCDR(1,14250946,1,1,2) [2025-01-15 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250946', 'tblTempUsageDetail_20' ) start [2025-01-15 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250946', 'tblTempUsageDetail_20' ) end [2025-01-15 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:44:21] Production.INFO: ==3981== Releasing lock... [2025-01-15 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:45:05 [end_date_ymd] => 2025-01-15 03:45:05 [RateCDR] => 1 ) [2025-01-15 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:45:05' and `end` < '2025-01-15 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:45:17] Production.INFO: count ==146 [2025-01-15 03:45:17] Production.ERROR: pbx CDR StartTime 2025-01-15 00:45:05 - End Time 2025-01-15 03:45:05 [2025-01-15 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250951', 'tblTempUsageDetail_20' ) start [2025-01-15 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250951', 'tblTempUsageDetail_20' ) end [2025-01-15 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250951', 'tblTempVendorCDR_20' ) start [2025-01-15 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250951', 'tblTempVendorCDR_20' ) end [2025-01-15 03:45:17] Production.INFO: ProcessCDR(1,14250951,1,1,2) [2025-01-15 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250951', 'tblTempUsageDetail_20' ) start [2025-01-15 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250951', 'tblTempUsageDetail_20' ) end [2025-01-15 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:45:21] Production.INFO: ==4051== Releasing lock... [2025-01-15 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:46:05 [end_date_ymd] => 2025-01-15 03:46:05 [RateCDR] => 1 ) [2025-01-15 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:46:05' and `end` < '2025-01-15 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:46:18] Production.INFO: count ==146 [2025-01-15 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:46:05 - End Time 2025-01-15 03:46:05 [2025-01-15 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250956', 'tblTempUsageDetail_20' ) start [2025-01-15 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250956', 'tblTempUsageDetail_20' ) end [2025-01-15 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250956', 'tblTempVendorCDR_20' ) start [2025-01-15 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250956', 'tblTempVendorCDR_20' ) end [2025-01-15 03:46:18] Production.INFO: ProcessCDR(1,14250956,1,1,2) [2025-01-15 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250956', 'tblTempUsageDetail_20' ) start [2025-01-15 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250956', 'tblTempUsageDetail_20' ) end [2025-01-15 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:46:21] Production.INFO: ==4125== Releasing lock... [2025-01-15 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:47:05 [end_date_ymd] => 2025-01-15 03:47:05 [RateCDR] => 1 ) [2025-01-15 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:47:05' and `end` < '2025-01-15 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:47:18] Production.INFO: count ==146 [2025-01-15 03:47:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:47:05 - End Time 2025-01-15 03:47:05 [2025-01-15 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250961', 'tblTempUsageDetail_20' ) start [2025-01-15 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250961', 'tblTempUsageDetail_20' ) end [2025-01-15 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250961', 'tblTempVendorCDR_20' ) start [2025-01-15 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250961', 'tblTempVendorCDR_20' ) end [2025-01-15 03:47:18] Production.INFO: ProcessCDR(1,14250961,1,1,2) [2025-01-15 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250961', 'tblTempUsageDetail_20' ) start [2025-01-15 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250961', 'tblTempUsageDetail_20' ) end [2025-01-15 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:47:21] Production.INFO: ==4194== Releasing lock... [2025-01-15 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:48:06 [end_date_ymd] => 2025-01-15 03:48:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 00:48:06' and `end` < '2025-01-15 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-01-15 03:48:18] Production.INFO: count ==146 [2025-01-15 03:48:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:48:06 - End Time 2025-01-15 03:48:06 [2025-01-15 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250966', 'tblTempUsageDetail_20' ) start [2025-01-15 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250966', 'tblTempUsageDetail_20' ) end [2025-01-15 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250966', 'tblTempVendorCDR_20' ) start [2025-01-15 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250966', 'tblTempVendorCDR_20' ) end [2025-01-15 03:48:18] Production.INFO: ProcessCDR(1,14250966,1,1,2) [2025-01-15 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250966', 'tblTempUsageDetail_20' ) start [2025-01-15 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250966', 'tblTempUsageDetail_20' ) end [2025-01-15 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:48:21] Production.INFO: ==4266== Releasing lock... [2025-01-15 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:49:05 [end_date_ymd] => 2025-01-15 03:49:05 [RateCDR] => 1 ) [2025-01-15 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:49:05' and `end` < '2025-01-15 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:49:18] Production.INFO: count ==146 [2025-01-15 03:49:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:49:05 - End Time 2025-01-15 03:49:05 [2025-01-15 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250971', 'tblTempUsageDetail_20' ) start [2025-01-15 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250971', 'tblTempUsageDetail_20' ) end [2025-01-15 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250971', 'tblTempVendorCDR_20' ) start [2025-01-15 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250971', 'tblTempVendorCDR_20' ) end [2025-01-15 03:49:18] Production.INFO: ProcessCDR(1,14250971,1,1,2) [2025-01-15 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250971', 'tblTempUsageDetail_20' ) start [2025-01-15 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250971', 'tblTempUsageDetail_20' ) end [2025-01-15 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:49:21] Production.INFO: ==4335== Releasing lock... [2025-01-15 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:50:06 [end_date_ymd] => 2025-01-15 03:50:06 [RateCDR] => 1 ) [2025-01-15 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:50:06' and `end` < '2025-01-15 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:50:20] Production.INFO: count ==142 [2025-01-15 03:50:20] Production.ERROR: pbx CDR StartTime 2025-01-15 00:50:06 - End Time 2025-01-15 03:50:06 [2025-01-15 03:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250977', 'tblTempUsageDetail_20' ) start [2025-01-15 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250977', 'tblTempUsageDetail_20' ) end [2025-01-15 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250977', 'tblTempVendorCDR_20' ) start [2025-01-15 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250977', 'tblTempVendorCDR_20' ) end [2025-01-15 03:50:20] Production.INFO: ProcessCDR(1,14250977,1,1,2) [2025-01-15 03:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250977', 'tblTempUsageDetail_20' ) start [2025-01-15 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250977', 'tblTempUsageDetail_20' ) end [2025-01-15 03:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:50:24] Production.INFO: ==4410== Releasing lock... [2025-01-15 03:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:50:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:51:05 [end_date_ymd] => 2025-01-15 03:51:05 [RateCDR] => 1 ) [2025-01-15 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:51:05' and `end` < '2025-01-15 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:51:17] Production.INFO: count ==124 [2025-01-15 03:51:17] Production.ERROR: pbx CDR StartTime 2025-01-15 00:51:05 - End Time 2025-01-15 03:51:05 [2025-01-15 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250982', 'tblTempUsageDetail_20' ) start [2025-01-15 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250982', 'tblTempUsageDetail_20' ) end [2025-01-15 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250982', 'tblTempVendorCDR_20' ) start [2025-01-15 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250982', 'tblTempVendorCDR_20' ) end [2025-01-15 03:51:17] Production.INFO: ProcessCDR(1,14250982,1,1,2) [2025-01-15 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250982', 'tblTempUsageDetail_20' ) start [2025-01-15 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250982', 'tblTempUsageDetail_20' ) end [2025-01-15 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:51:21] Production.INFO: ==4482== Releasing lock... [2025-01-15 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:52:05 [end_date_ymd] => 2025-01-15 03:52:05 [RateCDR] => 1 ) [2025-01-15 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:52:05' and `end` < '2025-01-15 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:52:18] Production.INFO: count ==124 [2025-01-15 03:52:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:52:05 - End Time 2025-01-15 03:52:05 [2025-01-15 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250987', 'tblTempUsageDetail_20' ) start [2025-01-15 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250987', 'tblTempUsageDetail_20' ) end [2025-01-15 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250987', 'tblTempVendorCDR_20' ) start [2025-01-15 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250987', 'tblTempVendorCDR_20' ) end [2025-01-15 03:52:18] Production.INFO: ProcessCDR(1,14250987,1,1,2) [2025-01-15 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250987', 'tblTempUsageDetail_20' ) start [2025-01-15 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250987', 'tblTempUsageDetail_20' ) end [2025-01-15 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:52:21] Production.INFO: ==4599== Releasing lock... [2025-01-15 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 03:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:53:04 [end_date_ymd] => 2025-01-15 03:53:04 [RateCDR] => 1 ) [2025-01-15 03:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:53:04' and `end` < '2025-01-15 03:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:53:17] Production.INFO: count ==124 [2025-01-15 03:53:17] Production.ERROR: pbx CDR StartTime 2025-01-15 00:53:04 - End Time 2025-01-15 03:53:04 [2025-01-15 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250992', 'tblTempUsageDetail_20' ) start [2025-01-15 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250992', 'tblTempUsageDetail_20' ) end [2025-01-15 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250992', 'tblTempVendorCDR_20' ) start [2025-01-15 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250992', 'tblTempVendorCDR_20' ) end [2025-01-15 03:53:17] Production.INFO: ProcessCDR(1,14250992,1,1,2) [2025-01-15 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250992', 'tblTempUsageDetail_20' ) start [2025-01-15 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250992', 'tblTempUsageDetail_20' ) end [2025-01-15 03:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:53:20] Production.INFO: ==4670== Releasing lock... [2025-01-15 03:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:53:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:54:05 [end_date_ymd] => 2025-01-15 03:54:05 [RateCDR] => 1 ) [2025-01-15 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:54:05' and `end` < '2025-01-15 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:54:18] Production.INFO: count ==124 [2025-01-15 03:54:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:54:05 - End Time 2025-01-15 03:54:05 [2025-01-15 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250997', 'tblTempUsageDetail_20' ) start [2025-01-15 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14250997', 'tblTempUsageDetail_20' ) end [2025-01-15 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250997', 'tblTempVendorCDR_20' ) start [2025-01-15 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14250997', 'tblTempVendorCDR_20' ) end [2025-01-15 03:54:18] Production.INFO: ProcessCDR(1,14250997,1,1,2) [2025-01-15 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14250997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14250997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14250997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14250997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250997', 'tblTempUsageDetail_20' ) start [2025-01-15 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14250997', 'tblTempUsageDetail_20' ) end [2025-01-15 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:54:21] Production.INFO: ==4742== Releasing lock... [2025-01-15 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:55:05 [end_date_ymd] => 2025-01-15 03:55:05 [RateCDR] => 1 ) [2025-01-15 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:55:05' and `end` < '2025-01-15 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:55:18] Production.INFO: count ==124 [2025-01-15 03:55:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:55:05 - End Time 2025-01-15 03:55:05 [2025-01-15 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251002', 'tblTempUsageDetail_20' ) start [2025-01-15 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251002', 'tblTempUsageDetail_20' ) end [2025-01-15 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251002', 'tblTempVendorCDR_20' ) start [2025-01-15 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251002', 'tblTempVendorCDR_20' ) end [2025-01-15 03:55:18] Production.INFO: ProcessCDR(1,14251002,1,1,2) [2025-01-15 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251002', 'tblTempUsageDetail_20' ) start [2025-01-15 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251002', 'tblTempUsageDetail_20' ) end [2025-01-15 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:55:21] Production.INFO: ==4811== Releasing lock... [2025-01-15 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:56:05 [end_date_ymd] => 2025-01-15 03:56:05 [RateCDR] => 1 ) [2025-01-15 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:56:05' and `end` < '2025-01-15 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:56:17] Production.INFO: count ==120 [2025-01-15 03:56:17] Production.ERROR: pbx CDR StartTime 2025-01-15 00:56:05 - End Time 2025-01-15 03:56:05 [2025-01-15 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251007', 'tblTempUsageDetail_20' ) start [2025-01-15 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251007', 'tblTempUsageDetail_20' ) end [2025-01-15 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251007', 'tblTempVendorCDR_20' ) start [2025-01-15 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251007', 'tblTempVendorCDR_20' ) end [2025-01-15 03:56:17] Production.INFO: ProcessCDR(1,14251007,1,1,2) [2025-01-15 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251007', 'tblTempUsageDetail_20' ) start [2025-01-15 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251007', 'tblTempUsageDetail_20' ) end [2025-01-15 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:56:21] Production.INFO: ==4884== Releasing lock... [2025-01-15 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:57:06 [end_date_ymd] => 2025-01-15 03:57:06 [RateCDR] => 1 ) [2025-01-15 03:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:57:06' and `end` < '2025-01-15 03:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:57:18] Production.INFO: count ==120 [2025-01-15 03:57:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:57:06 - End Time 2025-01-15 03:57:06 [2025-01-15 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251012', 'tblTempUsageDetail_20' ) start [2025-01-15 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251012', 'tblTempUsageDetail_20' ) end [2025-01-15 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251012', 'tblTempVendorCDR_20' ) start [2025-01-15 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251012', 'tblTempVendorCDR_20' ) end [2025-01-15 03:57:18] Production.INFO: ProcessCDR(1,14251012,1,1,2) [2025-01-15 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251012', 'tblTempUsageDetail_20' ) start [2025-01-15 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251012', 'tblTempUsageDetail_20' ) end [2025-01-15 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:57:22] Production.INFO: ==4960== Releasing lock... [2025-01-15 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:57:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:58:05 [end_date_ymd] => 2025-01-15 03:58:05 [RateCDR] => 1 ) [2025-01-15 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 00:58:05' and `end` < '2025-01-15 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 03:58:18] Production.INFO: count ==120 [2025-01-15 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:58:05 - End Time 2025-01-15 03:58:05 [2025-01-15 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251017', 'tblTempUsageDetail_20' ) start [2025-01-15 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251017', 'tblTempUsageDetail_20' ) end [2025-01-15 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251017', 'tblTempVendorCDR_20' ) start [2025-01-15 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251017', 'tblTempVendorCDR_20' ) end [2025-01-15 03:58:18] Production.INFO: ProcessCDR(1,14251017,1,1,2) [2025-01-15 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251017', 'tblTempUsageDetail_20' ) start [2025-01-15 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251017', 'tblTempUsageDetail_20' ) end [2025-01-15 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:58:21] Production.INFO: ==5032== Releasing lock... [2025-01-15 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 00:59:06 [end_date_ymd] => 2025-01-15 03:59:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 00:59:06' and `end` < '2025-01-15 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-01-15 03:59:18] Production.INFO: count ==120 [2025-01-15 03:59:18] Production.ERROR: pbx CDR StartTime 2025-01-15 00:59:06 - End Time 2025-01-15 03:59:06 [2025-01-15 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251022', 'tblTempUsageDetail_20' ) start [2025-01-15 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251022', 'tblTempUsageDetail_20' ) end [2025-01-15 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251022', 'tblTempVendorCDR_20' ) start [2025-01-15 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251022', 'tblTempVendorCDR_20' ) end [2025-01-15 03:59:18] Production.INFO: ProcessCDR(1,14251022,1,1,2) [2025-01-15 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251022', 'tblTempUsageDetail_20' ) start [2025-01-15 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251022', 'tblTempUsageDetail_20' ) end [2025-01-15 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 03:59:22] Production.INFO: ==5102== Releasing lock... [2025-01-15 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 03:59:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:00:06 [end_date_ymd] => 2025-01-15 04:00:06 [RateCDR] => 1 ) [2025-01-15 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:00:06' and `end` < '2025-01-15 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:00:19] Production.INFO: count ==114 [2025-01-15 04:00:19] Production.ERROR: pbx CDR StartTime 2025-01-15 01:00:06 - End Time 2025-01-15 04:00:06 [2025-01-15 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251028', 'tblTempUsageDetail_20' ) start [2025-01-15 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251028', 'tblTempUsageDetail_20' ) end [2025-01-15 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251028', 'tblTempVendorCDR_20' ) start [2025-01-15 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251028', 'tblTempVendorCDR_20' ) end [2025-01-15 04:00:19] Production.INFO: ProcessCDR(1,14251028,1,1,2) [2025-01-15 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251028', 'tblTempUsageDetail_20' ) start [2025-01-15 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251028', 'tblTempUsageDetail_20' ) end [2025-01-15 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:00:23] Production.INFO: ==5177== Releasing lock... [2025-01-15 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:00:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:01:05 [end_date_ymd] => 2025-01-15 04:01:05 [RateCDR] => 1 ) [2025-01-15 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:01:05' and `end` < '2025-01-15 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:01:18] Production.INFO: count ==108 [2025-01-15 04:01:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:01:05 - End Time 2025-01-15 04:01:05 [2025-01-15 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251034', 'tblTempUsageDetail_20' ) start [2025-01-15 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251034', 'tblTempUsageDetail_20' ) end [2025-01-15 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251034', 'tblTempVendorCDR_20' ) start [2025-01-15 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251034', 'tblTempVendorCDR_20' ) end [2025-01-15 04:01:18] Production.INFO: ProcessCDR(1,14251034,1,1,2) [2025-01-15 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251034', 'tblTempUsageDetail_20' ) start [2025-01-15 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251034', 'tblTempUsageDetail_20' ) end [2025-01-15 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:01:21] Production.INFO: ==5265== Releasing lock... [2025-01-15 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:02:05 [end_date_ymd] => 2025-01-15 04:02:05 [RateCDR] => 1 ) [2025-01-15 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:02:05' and `end` < '2025-01-15 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:02:18] Production.INFO: count ==106 [2025-01-15 04:02:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:02:05 - End Time 2025-01-15 04:02:05 [2025-01-15 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251039', 'tblTempUsageDetail_20' ) start [2025-01-15 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251039', 'tblTempUsageDetail_20' ) end [2025-01-15 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251039', 'tblTempVendorCDR_20' ) start [2025-01-15 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251039', 'tblTempVendorCDR_20' ) end [2025-01-15 04:02:18] Production.INFO: ProcessCDR(1,14251039,1,1,2) [2025-01-15 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251039', 'tblTempUsageDetail_20' ) start [2025-01-15 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251039', 'tblTempUsageDetail_20' ) end [2025-01-15 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:02:21] Production.INFO: ==5339== Releasing lock... [2025-01-15 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:03:05 [end_date_ymd] => 2025-01-15 04:03:05 [RateCDR] => 1 ) [2025-01-15 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:03:05' and `end` < '2025-01-15 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:03:18] Production.INFO: count ==106 [2025-01-15 04:03:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:03:05 - End Time 2025-01-15 04:03:05 [2025-01-15 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251044', 'tblTempUsageDetail_20' ) start [2025-01-15 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251044', 'tblTempUsageDetail_20' ) end [2025-01-15 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251044', 'tblTempVendorCDR_20' ) start [2025-01-15 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251044', 'tblTempVendorCDR_20' ) end [2025-01-15 04:03:18] Production.INFO: ProcessCDR(1,14251044,1,1,2) [2025-01-15 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251044', 'tblTempUsageDetail_20' ) start [2025-01-15 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251044', 'tblTempUsageDetail_20' ) end [2025-01-15 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:03:21] Production.INFO: ==5413== Releasing lock... [2025-01-15 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:03:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:04:04 [end_date_ymd] => 2025-01-15 04:04:04 [RateCDR] => 1 ) [2025-01-15 04:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:04:04' and `end` < '2025-01-15 04:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:04:16] Production.INFO: count ==105 [2025-01-15 04:04:16] Production.ERROR: pbx CDR StartTime 2025-01-15 01:04:04 - End Time 2025-01-15 04:04:04 [2025-01-15 04:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251048', 'tblTempUsageDetail_20' ) start [2025-01-15 04:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251048', 'tblTempUsageDetail_20' ) end [2025-01-15 04:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251048', 'tblTempVendorCDR_20' ) start [2025-01-15 04:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251048', 'tblTempVendorCDR_20' ) end [2025-01-15 04:04:16] Production.INFO: ProcessCDR(1,14251048,1,1,2) [2025-01-15 04:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251048', 'tblTempUsageDetail_20' ) start [2025-01-15 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251048', 'tblTempUsageDetail_20' ) end [2025-01-15 04:04:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:04:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:04:20] Production.INFO: ==5483== Releasing lock... [2025-01-15 04:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:04:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:05:05 [end_date_ymd] => 2025-01-15 04:05:05 [RateCDR] => 1 ) [2025-01-15 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:05:05' and `end` < '2025-01-15 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:05:18] Production.INFO: count ==105 [2025-01-15 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:05:05 - End Time 2025-01-15 04:05:05 [2025-01-15 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251054', 'tblTempUsageDetail_20' ) start [2025-01-15 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251054', 'tblTempUsageDetail_20' ) end [2025-01-15 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251054', 'tblTempVendorCDR_20' ) start [2025-01-15 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251054', 'tblTempVendorCDR_20' ) end [2025-01-15 04:05:18] Production.INFO: ProcessCDR(1,14251054,1,1,2) [2025-01-15 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251054', 'tblTempUsageDetail_20' ) start [2025-01-15 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251054', 'tblTempUsageDetail_20' ) end [2025-01-15 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:05:21] Production.INFO: ==5562== Releasing lock... [2025-01-15 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:06:05 [end_date_ymd] => 2025-01-15 04:06:05 [RateCDR] => 1 ) [2025-01-15 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:06:05' and `end` < '2025-01-15 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:06:18] Production.INFO: count ==105 [2025-01-15 04:06:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:06:05 - End Time 2025-01-15 04:06:05 [2025-01-15 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251059', 'tblTempUsageDetail_20' ) start [2025-01-15 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251059', 'tblTempUsageDetail_20' ) end [2025-01-15 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251059', 'tblTempVendorCDR_20' ) start [2025-01-15 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251059', 'tblTempVendorCDR_20' ) end [2025-01-15 04:06:18] Production.INFO: ProcessCDR(1,14251059,1,1,2) [2025-01-15 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251059', 'tblTempUsageDetail_20' ) start [2025-01-15 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251059', 'tblTempUsageDetail_20' ) end [2025-01-15 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:06:22] Production.INFO: ==5647== Releasing lock... [2025-01-15 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:07:05 [end_date_ymd] => 2025-01-15 04:07:05 [RateCDR] => 1 ) [2025-01-15 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:07:05' and `end` < '2025-01-15 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:07:17] Production.INFO: count ==105 [2025-01-15 04:07:17] Production.ERROR: pbx CDR StartTime 2025-01-15 01:07:05 - End Time 2025-01-15 04:07:05 [2025-01-15 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251064', 'tblTempUsageDetail_20' ) start [2025-01-15 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251064', 'tblTempUsageDetail_20' ) end [2025-01-15 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251064', 'tblTempVendorCDR_20' ) start [2025-01-15 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251064', 'tblTempVendorCDR_20' ) end [2025-01-15 04:07:18] Production.INFO: ProcessCDR(1,14251064,1,1,2) [2025-01-15 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251064', 'tblTempUsageDetail_20' ) start [2025-01-15 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251064', 'tblTempUsageDetail_20' ) end [2025-01-15 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:07:21] Production.INFO: ==5731== Releasing lock... [2025-01-15 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:08:05 [end_date_ymd] => 2025-01-15 04:08:05 [RateCDR] => 1 ) [2025-01-15 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:08:05' and `end` < '2025-01-15 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:08:19] Production.INFO: count ==105 [2025-01-15 04:08:19] Production.ERROR: pbx CDR StartTime 2025-01-15 01:08:05 - End Time 2025-01-15 04:08:05 [2025-01-15 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251069', 'tblTempUsageDetail_20' ) start [2025-01-15 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251069', 'tblTempUsageDetail_20' ) end [2025-01-15 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251069', 'tblTempVendorCDR_20' ) start [2025-01-15 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251069', 'tblTempVendorCDR_20' ) end [2025-01-15 04:08:19] Production.INFO: ProcessCDR(1,14251069,1,1,2) [2025-01-15 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251069', 'tblTempUsageDetail_20' ) start [2025-01-15 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251069', 'tblTempUsageDetail_20' ) end [2025-01-15 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:08:22] Production.INFO: ==5856== Releasing lock... [2025-01-15 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:08:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:09:05 [end_date_ymd] => 2025-01-15 04:09:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 01:09:05' and `end` < '2025-01-15 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-01-15 04:09:18] Production.INFO: count ==104 [2025-01-15 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:09:05 - End Time 2025-01-15 04:09:05 [2025-01-15 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251074', 'tblTempUsageDetail_20' ) start [2025-01-15 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251074', 'tblTempUsageDetail_20' ) end [2025-01-15 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251074', 'tblTempVendorCDR_20' ) start [2025-01-15 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251074', 'tblTempVendorCDR_20' ) end [2025-01-15 04:09:18] Production.INFO: ProcessCDR(1,14251074,1,1,2) [2025-01-15 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251074', 'tblTempUsageDetail_20' ) start [2025-01-15 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251074', 'tblTempUsageDetail_20' ) end [2025-01-15 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:09:21] Production.INFO: ==5941== Releasing lock... [2025-01-15 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:10:06 [end_date_ymd] => 2025-01-15 04:10:06 [RateCDR] => 1 ) [2025-01-15 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:10:06' and `end` < '2025-01-15 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:10:19] Production.INFO: count ==100 [2025-01-15 04:10:19] Production.ERROR: pbx CDR StartTime 2025-01-15 01:10:06 - End Time 2025-01-15 04:10:06 [2025-01-15 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251080', 'tblTempUsageDetail_20' ) start [2025-01-15 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251080', 'tblTempUsageDetail_20' ) end [2025-01-15 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251080', 'tblTempVendorCDR_20' ) start [2025-01-15 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251080', 'tblTempVendorCDR_20' ) end [2025-01-15 04:10:19] Production.INFO: ProcessCDR(1,14251080,1,1,2) [2025-01-15 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251080', 'tblTempUsageDetail_20' ) start [2025-01-15 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251080', 'tblTempUsageDetail_20' ) end [2025-01-15 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:10:22] Production.INFO: ==6029== Releasing lock... [2025-01-15 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:11:04 [end_date_ymd] => 2025-01-15 04:11:04 [RateCDR] => 1 ) [2025-01-15 04:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:11:04' and `end` < '2025-01-15 04:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:11:17] Production.INFO: count ==100 [2025-01-15 04:11:17] Production.ERROR: pbx CDR StartTime 2025-01-15 01:11:04 - End Time 2025-01-15 04:11:04 [2025-01-15 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251085', 'tblTempUsageDetail_20' ) start [2025-01-15 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251085', 'tblTempUsageDetail_20' ) end [2025-01-15 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251085', 'tblTempVendorCDR_20' ) start [2025-01-15 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251085', 'tblTempVendorCDR_20' ) end [2025-01-15 04:11:17] Production.INFO: ProcessCDR(1,14251085,1,1,2) [2025-01-15 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251085', 'tblTempUsageDetail_20' ) start [2025-01-15 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251085', 'tblTempUsageDetail_20' ) end [2025-01-15 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:11:20] Production.INFO: ==6127== Releasing lock... [2025-01-15 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:11:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:12:06 [end_date_ymd] => 2025-01-15 04:12:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 01:12:06' and `end` < '2025-01-15 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-01-15 04:12:18] Production.INFO: count ==100 [2025-01-15 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:12:06 - End Time 2025-01-15 04:12:06 [2025-01-15 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251090', 'tblTempUsageDetail_20' ) start [2025-01-15 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251090', 'tblTempUsageDetail_20' ) end [2025-01-15 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251090', 'tblTempVendorCDR_20' ) start [2025-01-15 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251090', 'tblTempVendorCDR_20' ) end [2025-01-15 04:12:18] Production.INFO: ProcessCDR(1,14251090,1,1,2) [2025-01-15 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251090', 'tblTempUsageDetail_20' ) start [2025-01-15 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251090', 'tblTempUsageDetail_20' ) end [2025-01-15 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:12:22] Production.INFO: ==6214== Releasing lock... [2025-01-15 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:13:05 [end_date_ymd] => 2025-01-15 04:13:05 [RateCDR] => 1 ) [2025-01-15 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:13:05' and `end` < '2025-01-15 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:13:17] Production.INFO: count ==100 [2025-01-15 04:13:17] Production.ERROR: pbx CDR StartTime 2025-01-15 01:13:05 - End Time 2025-01-15 04:13:05 [2025-01-15 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251095', 'tblTempUsageDetail_20' ) start [2025-01-15 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251095', 'tblTempUsageDetail_20' ) end [2025-01-15 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251095', 'tblTempVendorCDR_20' ) start [2025-01-15 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251095', 'tblTempVendorCDR_20' ) end [2025-01-15 04:13:17] Production.INFO: ProcessCDR(1,14251095,1,1,2) [2025-01-15 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251095', 'tblTempUsageDetail_20' ) start [2025-01-15 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251095', 'tblTempUsageDetail_20' ) end [2025-01-15 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:13:21] Production.INFO: ==6303== Releasing lock... [2025-01-15 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:14:05 [end_date_ymd] => 2025-01-15 04:14:05 [RateCDR] => 1 ) [2025-01-15 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:14:05' and `end` < '2025-01-15 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:14:18] Production.INFO: count ==100 [2025-01-15 04:14:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:14:05 - End Time 2025-01-15 04:14:05 [2025-01-15 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251100', 'tblTempUsageDetail_20' ) start [2025-01-15 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251100', 'tblTempUsageDetail_20' ) end [2025-01-15 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251100', 'tblTempVendorCDR_20' ) start [2025-01-15 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251100', 'tblTempVendorCDR_20' ) end [2025-01-15 04:14:18] Production.INFO: ProcessCDR(1,14251100,1,1,2) [2025-01-15 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251100', 'tblTempUsageDetail_20' ) start [2025-01-15 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251100', 'tblTempUsageDetail_20' ) end [2025-01-15 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:14:21] Production.INFO: ==6386== Releasing lock... [2025-01-15 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:15:05 [end_date_ymd] => 2025-01-15 04:15:05 [RateCDR] => 1 ) [2025-01-15 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:15:05' and `end` < '2025-01-15 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:15:18] Production.INFO: count ==100 [2025-01-15 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:15:05 - End Time 2025-01-15 04:15:05 [2025-01-15 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251105', 'tblTempUsageDetail_20' ) start [2025-01-15 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251105', 'tblTempUsageDetail_20' ) end [2025-01-15 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251105', 'tblTempVendorCDR_20' ) start [2025-01-15 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251105', 'tblTempVendorCDR_20' ) end [2025-01-15 04:15:18] Production.INFO: ProcessCDR(1,14251105,1,1,2) [2025-01-15 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251105', 'tblTempUsageDetail_20' ) start [2025-01-15 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251105', 'tblTempUsageDetail_20' ) end [2025-01-15 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:15:21] Production.INFO: ==6482== Releasing lock... [2025-01-15 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:16:05 [end_date_ymd] => 2025-01-15 04:16:05 [RateCDR] => 1 ) [2025-01-15 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:16:05' and `end` < '2025-01-15 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:16:17] Production.INFO: count ==100 [2025-01-15 04:16:17] Production.ERROR: pbx CDR StartTime 2025-01-15 01:16:05 - End Time 2025-01-15 04:16:05 [2025-01-15 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251110', 'tblTempUsageDetail_20' ) start [2025-01-15 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251110', 'tblTempUsageDetail_20' ) end [2025-01-15 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251110', 'tblTempVendorCDR_20' ) start [2025-01-15 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251110', 'tblTempVendorCDR_20' ) end [2025-01-15 04:16:17] Production.INFO: ProcessCDR(1,14251110,1,1,2) [2025-01-15 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251110', 'tblTempUsageDetail_20' ) start [2025-01-15 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251110', 'tblTempUsageDetail_20' ) end [2025-01-15 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:16:21] Production.INFO: ==6566== Releasing lock... [2025-01-15 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:17:05 [end_date_ymd] => 2025-01-15 04:17:05 [RateCDR] => 1 ) [2025-01-15 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:17:05' and `end` < '2025-01-15 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:17:18] Production.INFO: count ==100 [2025-01-15 04:17:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:17:05 - End Time 2025-01-15 04:17:05 [2025-01-15 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251115', 'tblTempUsageDetail_20' ) start [2025-01-15 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251115', 'tblTempUsageDetail_20' ) end [2025-01-15 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251115', 'tblTempVendorCDR_20' ) start [2025-01-15 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251115', 'tblTempVendorCDR_20' ) end [2025-01-15 04:17:18] Production.INFO: ProcessCDR(1,14251115,1,1,2) [2025-01-15 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251115', 'tblTempUsageDetail_20' ) start [2025-01-15 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251115', 'tblTempUsageDetail_20' ) end [2025-01-15 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:17:22] Production.INFO: ==6652== Releasing lock... [2025-01-15 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:18:05 [end_date_ymd] => 2025-01-15 04:18:05 [RateCDR] => 1 ) [2025-01-15 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:18:05' and `end` < '2025-01-15 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:18:18] Production.INFO: count ==100 [2025-01-15 04:18:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:18:05 - End Time 2025-01-15 04:18:05 [2025-01-15 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251120', 'tblTempUsageDetail_20' ) start [2025-01-15 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251120', 'tblTempUsageDetail_20' ) end [2025-01-15 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251120', 'tblTempVendorCDR_20' ) start [2025-01-15 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251120', 'tblTempVendorCDR_20' ) end [2025-01-15 04:18:18] Production.INFO: ProcessCDR(1,14251120,1,1,2) [2025-01-15 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251120', 'tblTempUsageDetail_20' ) start [2025-01-15 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251120', 'tblTempUsageDetail_20' ) end [2025-01-15 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:18:22] Production.INFO: ==6746== Releasing lock... [2025-01-15 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:18:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:19:06 [end_date_ymd] => 2025-01-15 04:19:06 [RateCDR] => 1 ) [2025-01-15 04:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:19:06' and `end` < '2025-01-15 04:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:19:18] Production.INFO: count ==99 [2025-01-15 04:19:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:19:06 - End Time 2025-01-15 04:19:06 [2025-01-15 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251125', 'tblTempUsageDetail_20' ) start [2025-01-15 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251125', 'tblTempUsageDetail_20' ) end [2025-01-15 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251125', 'tblTempVendorCDR_20' ) start [2025-01-15 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251125', 'tblTempVendorCDR_20' ) end [2025-01-15 04:19:18] Production.INFO: ProcessCDR(1,14251125,1,1,2) [2025-01-15 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251125', 'tblTempUsageDetail_20' ) start [2025-01-15 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251125', 'tblTempUsageDetail_20' ) end [2025-01-15 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:19:22] Production.INFO: ==6843== Releasing lock... [2025-01-15 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:19:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:20:06 [end_date_ymd] => 2025-01-15 04:20:06 [RateCDR] => 1 ) [2025-01-15 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:20:06' and `end` < '2025-01-15 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:20:18] Production.INFO: count ==93 [2025-01-15 04:20:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:20:06 - End Time 2025-01-15 04:20:06 [2025-01-15 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251131', 'tblTempUsageDetail_20' ) start [2025-01-15 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251131', 'tblTempUsageDetail_20' ) end [2025-01-15 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251131', 'tblTempVendorCDR_20' ) start [2025-01-15 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251131', 'tblTempVendorCDR_20' ) end [2025-01-15 04:20:18] Production.INFO: ProcessCDR(1,14251131,1,1,2) [2025-01-15 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251131', 'tblTempUsageDetail_20' ) start [2025-01-15 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251131', 'tblTempUsageDetail_20' ) end [2025-01-15 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:20:22] Production.INFO: ==6944== Releasing lock... [2025-01-15 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:21:05 [end_date_ymd] => 2025-01-15 04:21:05 [RateCDR] => 1 ) [2025-01-15 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:21:05' and `end` < '2025-01-15 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:21:19] Production.INFO: count ==91 [2025-01-15 04:21:19] Production.ERROR: pbx CDR StartTime 2025-01-15 01:21:05 - End Time 2025-01-15 04:21:05 [2025-01-15 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251136', 'tblTempUsageDetail_20' ) start [2025-01-15 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251136', 'tblTempUsageDetail_20' ) end [2025-01-15 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251136', 'tblTempVendorCDR_20' ) start [2025-01-15 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251136', 'tblTempVendorCDR_20' ) end [2025-01-15 04:21:19] Production.INFO: ProcessCDR(1,14251136,1,1,2) [2025-01-15 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251136', 'tblTempUsageDetail_20' ) start [2025-01-15 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251136', 'tblTempUsageDetail_20' ) end [2025-01-15 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:21:22] Production.INFO: ==7041== Releasing lock... [2025-01-15 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:21:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:22:05 [end_date_ymd] => 2025-01-15 04:22:05 [RateCDR] => 1 ) [2025-01-15 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:22:05' and `end` < '2025-01-15 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:22:18] Production.INFO: count ==91 [2025-01-15 04:22:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:22:05 - End Time 2025-01-15 04:22:05 [2025-01-15 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251141', 'tblTempUsageDetail_20' ) start [2025-01-15 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251141', 'tblTempUsageDetail_20' ) end [2025-01-15 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251141', 'tblTempVendorCDR_20' ) start [2025-01-15 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251141', 'tblTempVendorCDR_20' ) end [2025-01-15 04:22:18] Production.INFO: ProcessCDR(1,14251141,1,1,2) [2025-01-15 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251141', 'tblTempUsageDetail_20' ) start [2025-01-15 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251141', 'tblTempUsageDetail_20' ) end [2025-01-15 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:22:21] Production.INFO: ==7138== Releasing lock... [2025-01-15 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:23:05 [end_date_ymd] => 2025-01-15 04:23:05 [RateCDR] => 1 ) [2025-01-15 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:23:05' and `end` < '2025-01-15 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:23:19] Production.INFO: count ==91 [2025-01-15 04:23:19] Production.ERROR: pbx CDR StartTime 2025-01-15 01:23:05 - End Time 2025-01-15 04:23:05 [2025-01-15 04:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251146', 'tblTempUsageDetail_20' ) start [2025-01-15 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251146', 'tblTempUsageDetail_20' ) end [2025-01-15 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251146', 'tblTempVendorCDR_20' ) start [2025-01-15 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251146', 'tblTempVendorCDR_20' ) end [2025-01-15 04:23:19] Production.INFO: ProcessCDR(1,14251146,1,1,2) [2025-01-15 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251146', 'tblTempUsageDetail_20' ) start [2025-01-15 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251146', 'tblTempUsageDetail_20' ) end [2025-01-15 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:23:22] Production.INFO: ==7267== Releasing lock... [2025-01-15 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:24:04 [end_date_ymd] => 2025-01-15 04:24:04 [RateCDR] => 1 ) [2025-01-15 04:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:24:04' and `end` < '2025-01-15 04:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:24:17] Production.INFO: count ==91 [2025-01-15 04:24:17] Production.ERROR: pbx CDR StartTime 2025-01-15 01:24:04 - End Time 2025-01-15 04:24:04 [2025-01-15 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251151', 'tblTempUsageDetail_20' ) start [2025-01-15 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251151', 'tblTempUsageDetail_20' ) end [2025-01-15 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251151', 'tblTempVendorCDR_20' ) start [2025-01-15 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251151', 'tblTempVendorCDR_20' ) end [2025-01-15 04:24:17] Production.INFO: ProcessCDR(1,14251151,1,1,2) [2025-01-15 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251151', 'tblTempUsageDetail_20' ) start [2025-01-15 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251151', 'tblTempUsageDetail_20' ) end [2025-01-15 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:24:20] Production.INFO: ==7361== Releasing lock... [2025-01-15 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:24:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:25:05 [end_date_ymd] => 2025-01-15 04:25:05 [RateCDR] => 1 ) [2025-01-15 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:25:05' and `end` < '2025-01-15 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:25:05] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2025-01-15 04:25:05] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-01-15 04:25:06] Production.ERROR: **Email Sent Status 1 [2025-01-15 04:25:06] Production.ERROR: **Email Sent message Email has been sent [2025-01-15 04:25:06] Production.INFO: ==7457== Releasing lock... [2025-01-15 04:25:06] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:25:06] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:26:05 [end_date_ymd] => 2025-01-15 04:26:05 [RateCDR] => 1 ) [2025-01-15 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:26:05' and `end` < '2025-01-15 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:26:35] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2025-01-15 04:26:35] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-01-15 04:26:36] Production.ERROR: **Email Sent Status 1 [2025-01-15 04:26:36] Production.ERROR: **Email Sent message Email has been sent [2025-01-15 04:26:36] Production.INFO: ==7546== Releasing lock... [2025-01-15 04:26:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:26:36] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 04:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:27:04 [end_date_ymd] => 2025-01-15 04:27:04 [RateCDR] => 1 ) [2025-01-15 04:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:27:04' and `end` < '2025-01-15 04:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:27:34] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2025-01-15 04:27:34] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-01-15 04:27:35] Production.ERROR: **Email Sent Status 1 [2025-01-15 04:27:35] Production.ERROR: **Email Sent message Email has been sent [2025-01-15 04:27:35] Production.INFO: ==7633== Releasing lock... [2025-01-15 04:27:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:27:35] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 04:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:28:04 [end_date_ymd] => 2025-01-15 04:28:04 [RateCDR] => 1 ) [2025-01-15 04:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:28:04' and `end` < '2025-01-15 04:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:28:34] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2025-01-15 04:28:34] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-01-15 04:28:35] Production.ERROR: **Email Sent Status 1 [2025-01-15 04:28:35] Production.ERROR: **Email Sent message Email has been sent [2025-01-15 04:28:35] Production.INFO: ==7719== Releasing lock... [2025-01-15 04:28:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:28:35] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 04:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:29:04 [end_date_ymd] => 2025-01-15 04:29:04 [RateCDR] => 1 ) [2025-01-15 04:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:29:04' and `end` < '2025-01-15 04:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:29:04] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2025-01-15 04:29:04] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-01-15 04:29:05] Production.ERROR: **Email Sent Status 1 [2025-01-15 04:29:05] Production.ERROR: **Email Sent message Email has been sent [2025-01-15 04:29:05] Production.INFO: ==7811== Releasing lock... [2025-01-15 04:29:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:29:05] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 04:30:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:30:04 [end_date_ymd] => 2025-01-15 04:30:04 [RateCDR] => 1 ) [2025-01-15 04:30:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:30:04' and `end` < '2025-01-15 04:30:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:31:44] Production.INFO: count ==87 [2025-01-15 04:31:44] Production.ERROR: pbx CDR StartTime 2025-01-15 01:30:04 - End Time 2025-01-15 04:30:04 [2025-01-15 04:31:44] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:31:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251182', 'tblTempUsageDetail_20' ) start [2025-01-15 04:31:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251182', 'tblTempUsageDetail_20' ) end [2025-01-15 04:31:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251182', 'tblTempVendorCDR_20' ) start [2025-01-15 04:31:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251182', 'tblTempVendorCDR_20' ) end [2025-01-15 04:31:44] Production.INFO: ProcessCDR(1,14251182,1,1,2) [2025-01-15 04:31:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:31:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:31:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:31:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:31:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251182', 'tblTempUsageDetail_20' ) start [2025-01-15 04:31:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251182', 'tblTempUsageDetail_20' ) end [2025-01-15 04:31:48] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:31:48] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:31:48] Production.INFO: ==7903== Releasing lock... [2025-01-15 04:31:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:31:48] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:32:05 [end_date_ymd] => 2025-01-15 04:32:05 [RateCDR] => 1 ) [2025-01-15 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:32:05' and `end` < '2025-01-15 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:32:17] Production.INFO: count ==81 [2025-01-15 04:32:17] Production.ERROR: pbx CDR StartTime 2025-01-15 01:32:05 - End Time 2025-01-15 04:32:05 [2025-01-15 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251192', 'tblTempUsageDetail_20' ) start [2025-01-15 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251192', 'tblTempUsageDetail_20' ) end [2025-01-15 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251192', 'tblTempVendorCDR_20' ) start [2025-01-15 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251192', 'tblTempVendorCDR_20' ) end [2025-01-15 04:32:17] Production.INFO: ProcessCDR(1,14251192,1,1,2) [2025-01-15 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251192', 'tblTempUsageDetail_20' ) start [2025-01-15 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251192', 'tblTempUsageDetail_20' ) end [2025-01-15 04:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:32:21] Production.INFO: ==8194== Releasing lock... [2025-01-15 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:32:21] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:33:05 [end_date_ymd] => 2025-01-15 04:33:05 [RateCDR] => 1 ) [2025-01-15 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:33:05' and `end` < '2025-01-15 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:33:17] Production.INFO: count ==81 [2025-01-15 04:33:17] Production.ERROR: pbx CDR StartTime 2025-01-15 01:33:05 - End Time 2025-01-15 04:33:05 [2025-01-15 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251197', 'tblTempUsageDetail_20' ) start [2025-01-15 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251197', 'tblTempUsageDetail_20' ) end [2025-01-15 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251197', 'tblTempVendorCDR_20' ) start [2025-01-15 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251197', 'tblTempVendorCDR_20' ) end [2025-01-15 04:33:17] Production.INFO: ProcessCDR(1,14251197,1,1,2) [2025-01-15 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251197', 'tblTempUsageDetail_20' ) start [2025-01-15 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251197', 'tblTempUsageDetail_20' ) end [2025-01-15 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:33:21] Production.INFO: ==8285== Releasing lock... [2025-01-15 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:33:21] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:34:05 [end_date_ymd] => 2025-01-15 04:34:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 01:34:05' and `end` < '2025-01-15 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-01-15 04:34:17] Production.INFO: count ==81 [2025-01-15 04:34:17] Production.ERROR: pbx CDR StartTime 2025-01-15 01:34:05 - End Time 2025-01-15 04:34:05 [2025-01-15 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251202', 'tblTempUsageDetail_20' ) start [2025-01-15 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251202', 'tblTempUsageDetail_20' ) end [2025-01-15 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251202', 'tblTempVendorCDR_20' ) start [2025-01-15 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251202', 'tblTempVendorCDR_20' ) end [2025-01-15 04:34:17] Production.INFO: ProcessCDR(1,14251202,1,1,2) [2025-01-15 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251202', 'tblTempUsageDetail_20' ) start [2025-01-15 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251202', 'tblTempUsageDetail_20' ) end [2025-01-15 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:34:20] Production.INFO: ==8372== Releasing lock... [2025-01-15 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:34:20] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:35:05 [end_date_ymd] => 2025-01-15 04:35:05 [RateCDR] => 1 ) [2025-01-15 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:35:05' and `end` < '2025-01-15 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:35:17] Production.INFO: count ==80 [2025-01-15 04:35:17] Production.ERROR: pbx CDR StartTime 2025-01-15 01:35:05 - End Time 2025-01-15 04:35:05 [2025-01-15 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251206', 'tblTempUsageDetail_20' ) start [2025-01-15 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251206', 'tblTempUsageDetail_20' ) end [2025-01-15 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251206', 'tblTempVendorCDR_20' ) start [2025-01-15 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251206', 'tblTempVendorCDR_20' ) end [2025-01-15 04:35:17] Production.INFO: ProcessCDR(1,14251206,1,1,2) [2025-01-15 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251206', 'tblTempUsageDetail_20' ) start [2025-01-15 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251206', 'tblTempUsageDetail_20' ) end [2025-01-15 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:35:20] Production.INFO: ==8457== Releasing lock... [2025-01-15 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:35:20] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:36:05 [end_date_ymd] => 2025-01-15 04:36:05 [RateCDR] => 1 ) [2025-01-15 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:36:05' and `end` < '2025-01-15 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:36:17] Production.INFO: count ==80 [2025-01-15 04:36:17] Production.ERROR: pbx CDR StartTime 2025-01-15 01:36:05 - End Time 2025-01-15 04:36:05 [2025-01-15 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251212', 'tblTempUsageDetail_20' ) start [2025-01-15 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251212', 'tblTempUsageDetail_20' ) end [2025-01-15 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251212', 'tblTempVendorCDR_20' ) start [2025-01-15 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251212', 'tblTempVendorCDR_20' ) end [2025-01-15 04:36:17] Production.INFO: ProcessCDR(1,14251212,1,1,2) [2025-01-15 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251212', 'tblTempUsageDetail_20' ) start [2025-01-15 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251212', 'tblTempUsageDetail_20' ) end [2025-01-15 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:36:20] Production.INFO: ==8542== Releasing lock... [2025-01-15 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:36:20] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:37:05 [end_date_ymd] => 2025-01-15 04:37:05 [RateCDR] => 1 ) [2025-01-15 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:37:05' and `end` < '2025-01-15 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:37:17] Production.INFO: count ==80 [2025-01-15 04:37:17] Production.ERROR: pbx CDR StartTime 2025-01-15 01:37:05 - End Time 2025-01-15 04:37:05 [2025-01-15 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251217', 'tblTempUsageDetail_20' ) start [2025-01-15 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251217', 'tblTempUsageDetail_20' ) end [2025-01-15 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251217', 'tblTempVendorCDR_20' ) start [2025-01-15 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251217', 'tblTempVendorCDR_20' ) end [2025-01-15 04:37:17] Production.INFO: ProcessCDR(1,14251217,1,1,2) [2025-01-15 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251217', 'tblTempUsageDetail_20' ) start [2025-01-15 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251217', 'tblTempUsageDetail_20' ) end [2025-01-15 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:37:21] Production.INFO: ==8629== Releasing lock... [2025-01-15 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:38:06 [end_date_ymd] => 2025-01-15 04:38:06 [RateCDR] => 1 ) [2025-01-15 04:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:38:06' and `end` < '2025-01-15 04:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:38:18] Production.INFO: count ==80 [2025-01-15 04:38:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:38:06 - End Time 2025-01-15 04:38:06 [2025-01-15 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251222', 'tblTempUsageDetail_20' ) start [2025-01-15 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251222', 'tblTempUsageDetail_20' ) end [2025-01-15 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251222', 'tblTempVendorCDR_20' ) start [2025-01-15 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251222', 'tblTempVendorCDR_20' ) end [2025-01-15 04:38:18] Production.INFO: ProcessCDR(1,14251222,1,1,2) [2025-01-15 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251222', 'tblTempUsageDetail_20' ) start [2025-01-15 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251222', 'tblTempUsageDetail_20' ) end [2025-01-15 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:38:21] Production.INFO: ==8714== Releasing lock... [2025-01-15 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:39:05 [end_date_ymd] => 2025-01-15 04:39:05 [RateCDR] => 1 ) [2025-01-15 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:39:05' and `end` < '2025-01-15 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:39:17] Production.INFO: count ==80 [2025-01-15 04:39:17] Production.ERROR: pbx CDR StartTime 2025-01-15 01:39:05 - End Time 2025-01-15 04:39:05 [2025-01-15 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251227', 'tblTempUsageDetail_20' ) start [2025-01-15 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251227', 'tblTempUsageDetail_20' ) end [2025-01-15 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251227', 'tblTempVendorCDR_20' ) start [2025-01-15 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251227', 'tblTempVendorCDR_20' ) end [2025-01-15 04:39:17] Production.INFO: ProcessCDR(1,14251227,1,1,2) [2025-01-15 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251227', 'tblTempUsageDetail_20' ) start [2025-01-15 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251227', 'tblTempUsageDetail_20' ) end [2025-01-15 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:39:21] Production.INFO: ==8830== Releasing lock... [2025-01-15 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:40:05 [end_date_ymd] => 2025-01-15 04:40:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 01:40:05' and `end` < '2025-01-15 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-01-15 04:40:17] Production.INFO: count ==75 [2025-01-15 04:40:17] Production.ERROR: pbx CDR StartTime 2025-01-15 01:40:05 - End Time 2025-01-15 04:40:05 [2025-01-15 04:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251233', 'tblTempUsageDetail_20' ) start [2025-01-15 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251233', 'tblTempUsageDetail_20' ) end [2025-01-15 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251233', 'tblTempVendorCDR_20' ) start [2025-01-15 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251233', 'tblTempVendorCDR_20' ) end [2025-01-15 04:40:17] Production.INFO: ProcessCDR(1,14251233,1,1,2) [2025-01-15 04:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251233', 'tblTempUsageDetail_20' ) start [2025-01-15 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251233', 'tblTempUsageDetail_20' ) end [2025-01-15 04:40:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:40:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:40:20] Production.INFO: ==8905== Releasing lock... [2025-01-15 04:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:40:20] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:41:05 [end_date_ymd] => 2025-01-15 04:41:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 01:41:05' and `end` < '2025-01-15 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-01-15 04:41:17] Production.INFO: count ==71 [2025-01-15 04:41:17] Production.ERROR: pbx CDR StartTime 2025-01-15 01:41:05 - End Time 2025-01-15 04:41:05 [2025-01-15 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251238', 'tblTempUsageDetail_20' ) start [2025-01-15 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251238', 'tblTempUsageDetail_20' ) end [2025-01-15 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251238', 'tblTempVendorCDR_20' ) start [2025-01-15 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251238', 'tblTempVendorCDR_20' ) end [2025-01-15 04:41:17] Production.INFO: ProcessCDR(1,14251238,1,1,2) [2025-01-15 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251238', 'tblTempUsageDetail_20' ) start [2025-01-15 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251238', 'tblTempUsageDetail_20' ) end [2025-01-15 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:41:21] Production.INFO: ==8980== Releasing lock... [2025-01-15 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:41:21] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:42:06 [end_date_ymd] => 2025-01-15 04:42:06 [RateCDR] => 1 ) [2025-01-15 04:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:42:06' and `end` < '2025-01-15 04:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:42:18] Production.INFO: count ==71 [2025-01-15 04:42:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:42:06 - End Time 2025-01-15 04:42:06 [2025-01-15 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251243', 'tblTempUsageDetail_20' ) start [2025-01-15 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251243', 'tblTempUsageDetail_20' ) end [2025-01-15 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251243', 'tblTempVendorCDR_20' ) start [2025-01-15 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251243', 'tblTempVendorCDR_20' ) end [2025-01-15 04:42:18] Production.INFO: ProcessCDR(1,14251243,1,1,2) [2025-01-15 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251243', 'tblTempUsageDetail_20' ) start [2025-01-15 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251243', 'tblTempUsageDetail_20' ) end [2025-01-15 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:42:21] Production.INFO: ==9055== Releasing lock... [2025-01-15 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:42:21] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:43:05 [end_date_ymd] => 2025-01-15 04:43:05 [RateCDR] => 1 ) [2025-01-15 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:43:05' and `end` < '2025-01-15 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:43:17] Production.INFO: count ==71 [2025-01-15 04:43:17] Production.ERROR: pbx CDR StartTime 2025-01-15 01:43:05 - End Time 2025-01-15 04:43:05 [2025-01-15 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251248', 'tblTempUsageDetail_20' ) start [2025-01-15 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251248', 'tblTempUsageDetail_20' ) end [2025-01-15 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251248', 'tblTempVendorCDR_20' ) start [2025-01-15 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251248', 'tblTempVendorCDR_20' ) end [2025-01-15 04:43:17] Production.INFO: ProcessCDR(1,14251248,1,1,2) [2025-01-15 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251248', 'tblTempUsageDetail_20' ) start [2025-01-15 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251248', 'tblTempUsageDetail_20' ) end [2025-01-15 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:43:20] Production.INFO: ==9127== Releasing lock... [2025-01-15 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:43:20] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:44:06 [end_date_ymd] => 2025-01-15 04:44:06 [RateCDR] => 1 ) [2025-01-15 04:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:44:06' and `end` < '2025-01-15 04:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:44:18] Production.INFO: count ==71 [2025-01-15 04:44:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:44:06 - End Time 2025-01-15 04:44:06 [2025-01-15 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251253', 'tblTempUsageDetail_20' ) start [2025-01-15 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251253', 'tblTempUsageDetail_20' ) end [2025-01-15 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251253', 'tblTempVendorCDR_20' ) start [2025-01-15 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251253', 'tblTempVendorCDR_20' ) end [2025-01-15 04:44:18] Production.INFO: ProcessCDR(1,14251253,1,1,2) [2025-01-15 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251253', 'tblTempUsageDetail_20' ) start [2025-01-15 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251253', 'tblTempUsageDetail_20' ) end [2025-01-15 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:44:22] Production.INFO: ==9203== Releasing lock... [2025-01-15 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:44:22] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:45:05 [end_date_ymd] => 2025-01-15 04:45:05 [RateCDR] => 1 ) [2025-01-15 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:45:05' and `end` < '2025-01-15 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:45:18] Production.INFO: count ==71 [2025-01-15 04:45:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:45:05 - End Time 2025-01-15 04:45:05 [2025-01-15 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251258', 'tblTempUsageDetail_20' ) start [2025-01-15 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251258', 'tblTempUsageDetail_20' ) end [2025-01-15 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251258', 'tblTempVendorCDR_20' ) start [2025-01-15 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251258', 'tblTempVendorCDR_20' ) end [2025-01-15 04:45:18] Production.INFO: ProcessCDR(1,14251258,1,1,2) [2025-01-15 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251258', 'tblTempUsageDetail_20' ) start [2025-01-15 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251258', 'tblTempUsageDetail_20' ) end [2025-01-15 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:45:21] Production.INFO: ==9275== Releasing lock... [2025-01-15 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:45:21] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:46:06 [end_date_ymd] => 2025-01-15 04:46:06 [RateCDR] => 1 ) [2025-01-15 04:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:46:06' and `end` < '2025-01-15 04:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:46:21] Production.INFO: count ==71 [2025-01-15 04:46:21] Production.ERROR: pbx CDR StartTime 2025-01-15 01:46:06 - End Time 2025-01-15 04:46:06 [2025-01-15 04:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251263', 'tblTempUsageDetail_20' ) start [2025-01-15 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251263', 'tblTempUsageDetail_20' ) end [2025-01-15 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251263', 'tblTempVendorCDR_20' ) start [2025-01-15 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251263', 'tblTempVendorCDR_20' ) end [2025-01-15 04:46:21] Production.INFO: ProcessCDR(1,14251263,1,1,2) [2025-01-15 04:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251263', 'tblTempUsageDetail_20' ) start [2025-01-15 04:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251263', 'tblTempUsageDetail_20' ) end [2025-01-15 04:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:46:24] Production.INFO: ==9347== Releasing lock... [2025-01-15 04:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:46:24] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:47:05 [end_date_ymd] => 2025-01-15 04:47:05 [RateCDR] => 1 ) [2025-01-15 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:47:05' and `end` < '2025-01-15 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:47:20] Production.INFO: count ==71 [2025-01-15 04:47:20] Production.ERROR: pbx CDR StartTime 2025-01-15 01:47:05 - End Time 2025-01-15 04:47:05 [2025-01-15 04:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251268', 'tblTempUsageDetail_20' ) start [2025-01-15 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251268', 'tblTempUsageDetail_20' ) end [2025-01-15 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251268', 'tblTempVendorCDR_20' ) start [2025-01-15 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251268', 'tblTempVendorCDR_20' ) end [2025-01-15 04:47:20] Production.INFO: ProcessCDR(1,14251268,1,1,2) [2025-01-15 04:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251268', 'tblTempUsageDetail_20' ) start [2025-01-15 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251268', 'tblTempUsageDetail_20' ) end [2025-01-15 04:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:47:24] Production.INFO: ==9422== Releasing lock... [2025-01-15 04:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:47:24] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:48:05 [end_date_ymd] => 2025-01-15 04:48:05 [RateCDR] => 1 ) [2025-01-15 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:48:05' and `end` < '2025-01-15 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:48:20] Production.INFO: count ==71 [2025-01-15 04:48:20] Production.ERROR: pbx CDR StartTime 2025-01-15 01:48:05 - End Time 2025-01-15 04:48:05 [2025-01-15 04:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251273', 'tblTempUsageDetail_20' ) start [2025-01-15 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251273', 'tblTempUsageDetail_20' ) end [2025-01-15 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251273', 'tblTempVendorCDR_20' ) start [2025-01-15 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251273', 'tblTempVendorCDR_20' ) end [2025-01-15 04:48:20] Production.INFO: ProcessCDR(1,14251273,1,1,2) [2025-01-15 04:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251273', 'tblTempUsageDetail_20' ) start [2025-01-15 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251273', 'tblTempUsageDetail_20' ) end [2025-01-15 04:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:48:24] Production.INFO: ==9494== Releasing lock... [2025-01-15 04:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:48:24] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:49:05 [end_date_ymd] => 2025-01-15 04:49:05 [RateCDR] => 1 ) [2025-01-15 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:49:05' and `end` < '2025-01-15 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:49:19] Production.INFO: count ==71 [2025-01-15 04:49:19] Production.ERROR: pbx CDR StartTime 2025-01-15 01:49:05 - End Time 2025-01-15 04:49:05 [2025-01-15 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251278', 'tblTempUsageDetail_20' ) start [2025-01-15 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251278', 'tblTempUsageDetail_20' ) end [2025-01-15 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251278', 'tblTempVendorCDR_20' ) start [2025-01-15 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251278', 'tblTempVendorCDR_20' ) end [2025-01-15 04:49:19] Production.INFO: ProcessCDR(1,14251278,1,1,2) [2025-01-15 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251278', 'tblTempUsageDetail_20' ) start [2025-01-15 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251278', 'tblTempUsageDetail_20' ) end [2025-01-15 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:49:23] Production.INFO: ==9567== Releasing lock... [2025-01-15 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:49:23] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:50:05 [end_date_ymd] => 2025-01-15 04:50:05 [RateCDR] => 1 ) [2025-01-15 04:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:50:05' and `end` < '2025-01-15 04:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:50:20] Production.INFO: count ==67 [2025-01-15 04:50:20] Production.ERROR: pbx CDR StartTime 2025-01-15 01:50:05 - End Time 2025-01-15 04:50:05 [2025-01-15 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251284', 'tblTempUsageDetail_20' ) start [2025-01-15 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251284', 'tblTempUsageDetail_20' ) end [2025-01-15 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251284', 'tblTempVendorCDR_20' ) start [2025-01-15 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251284', 'tblTempVendorCDR_20' ) end [2025-01-15 04:50:20] Production.INFO: ProcessCDR(1,14251284,1,1,2) [2025-01-15 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251284', 'tblTempUsageDetail_20' ) start [2025-01-15 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251284', 'tblTempUsageDetail_20' ) end [2025-01-15 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:50:23] Production.INFO: ==9642== Releasing lock... [2025-01-15 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:50:23] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:51:05 [end_date_ymd] => 2025-01-15 04:51:05 [RateCDR] => 1 ) [2025-01-15 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:51:05' and `end` < '2025-01-15 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:51:18] Production.INFO: count ==67 [2025-01-15 04:51:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:51:05 - End Time 2025-01-15 04:51:05 [2025-01-15 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251289', 'tblTempUsageDetail_20' ) start [2025-01-15 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251289', 'tblTempUsageDetail_20' ) end [2025-01-15 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251289', 'tblTempVendorCDR_20' ) start [2025-01-15 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251289', 'tblTempVendorCDR_20' ) end [2025-01-15 04:51:18] Production.INFO: ProcessCDR(1,14251289,1,1,2) [2025-01-15 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251289', 'tblTempUsageDetail_20' ) start [2025-01-15 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251289', 'tblTempUsageDetail_20' ) end [2025-01-15 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:51:22] Production.INFO: ==9718== Releasing lock... [2025-01-15 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:51:22] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:52:06 [end_date_ymd] => 2025-01-15 04:52:06 [RateCDR] => 1 ) [2025-01-15 04:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:52:06' and `end` < '2025-01-15 04:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:52:19] Production.INFO: count ==67 [2025-01-15 04:52:19] Production.ERROR: pbx CDR StartTime 2025-01-15 01:52:06 - End Time 2025-01-15 04:52:06 [2025-01-15 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251294', 'tblTempUsageDetail_20' ) start [2025-01-15 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251294', 'tblTempUsageDetail_20' ) end [2025-01-15 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251294', 'tblTempVendorCDR_20' ) start [2025-01-15 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251294', 'tblTempVendorCDR_20' ) end [2025-01-15 04:52:19] Production.INFO: ProcessCDR(1,14251294,1,1,2) [2025-01-15 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251294', 'tblTempUsageDetail_20' ) start [2025-01-15 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251294', 'tblTempUsageDetail_20' ) end [2025-01-15 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:52:23] Production.INFO: ==9797== Releasing lock... [2025-01-15 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:52:23] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:53:05 [end_date_ymd] => 2025-01-15 04:53:05 [RateCDR] => 1 ) [2025-01-15 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:53:05' and `end` < '2025-01-15 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:53:20] Production.INFO: count ==67 [2025-01-15 04:53:20] Production.ERROR: pbx CDR StartTime 2025-01-15 01:53:05 - End Time 2025-01-15 04:53:05 [2025-01-15 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251299', 'tblTempUsageDetail_20' ) start [2025-01-15 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251299', 'tblTempUsageDetail_20' ) end [2025-01-15 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251299', 'tblTempVendorCDR_20' ) start [2025-01-15 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251299', 'tblTempVendorCDR_20' ) end [2025-01-15 04:53:20] Production.INFO: ProcessCDR(1,14251299,1,1,2) [2025-01-15 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251299', 'tblTempUsageDetail_20' ) start [2025-01-15 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251299', 'tblTempUsageDetail_20' ) end [2025-01-15 04:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:53:24] Production.INFO: ==9871== Releasing lock... [2025-01-15 04:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:53:24] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:54:05 [end_date_ymd] => 2025-01-15 04:54:05 [RateCDR] => 1 ) [2025-01-15 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:54:05' and `end` < '2025-01-15 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:54:18] Production.INFO: count ==67 [2025-01-15 04:54:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:54:05 - End Time 2025-01-15 04:54:05 [2025-01-15 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251304', 'tblTempUsageDetail_20' ) start [2025-01-15 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251304', 'tblTempUsageDetail_20' ) end [2025-01-15 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251304', 'tblTempVendorCDR_20' ) start [2025-01-15 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251304', 'tblTempVendorCDR_20' ) end [2025-01-15 04:54:18] Production.INFO: ProcessCDR(1,14251304,1,1,2) [2025-01-15 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251304', 'tblTempUsageDetail_20' ) start [2025-01-15 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251304', 'tblTempUsageDetail_20' ) end [2025-01-15 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:54:22] Production.INFO: ==9943== Releasing lock... [2025-01-15 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:54:22] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:55:05 [end_date_ymd] => 2025-01-15 04:55:05 [RateCDR] => 1 ) [2025-01-15 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:55:05' and `end` < '2025-01-15 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:55:20] Production.INFO: count ==67 [2025-01-15 04:55:20] Production.ERROR: pbx CDR StartTime 2025-01-15 01:55:05 - End Time 2025-01-15 04:55:05 [2025-01-15 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251309', 'tblTempUsageDetail_20' ) start [2025-01-15 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251309', 'tblTempUsageDetail_20' ) end [2025-01-15 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251309', 'tblTempVendorCDR_20' ) start [2025-01-15 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251309', 'tblTempVendorCDR_20' ) end [2025-01-15 04:55:20] Production.INFO: ProcessCDR(1,14251309,1,1,2) [2025-01-15 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251309', 'tblTempUsageDetail_20' ) start [2025-01-15 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251309', 'tblTempUsageDetail_20' ) end [2025-01-15 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:55:23] Production.INFO: ==10054== Releasing lock... [2025-01-15 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:55:23] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:56:05 [end_date_ymd] => 2025-01-15 04:56:05 [RateCDR] => 1 ) [2025-01-15 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:56:05' and `end` < '2025-01-15 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:56:20] Production.INFO: count ==64 [2025-01-15 04:56:20] Production.ERROR: pbx CDR StartTime 2025-01-15 01:56:05 - End Time 2025-01-15 04:56:05 [2025-01-15 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251314', 'tblTempUsageDetail_20' ) start [2025-01-15 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251314', 'tblTempUsageDetail_20' ) end [2025-01-15 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251314', 'tblTempVendorCDR_20' ) start [2025-01-15 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251314', 'tblTempVendorCDR_20' ) end [2025-01-15 04:56:20] Production.INFO: ProcessCDR(1,14251314,1,1,2) [2025-01-15 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251314', 'tblTempUsageDetail_20' ) start [2025-01-15 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251314', 'tblTempUsageDetail_20' ) end [2025-01-15 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:56:23] Production.INFO: ==10125== Releasing lock... [2025-01-15 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:56:23] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:57:05 [end_date_ymd] => 2025-01-15 04:57:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 01:57:05' and `end` < '2025-01-15 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-01-15 04:57:18] Production.INFO: count ==64 [2025-01-15 04:57:18] Production.ERROR: pbx CDR StartTime 2025-01-15 01:57:05 - End Time 2025-01-15 04:57:05 [2025-01-15 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251319', 'tblTempUsageDetail_20' ) start [2025-01-15 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251319', 'tblTempUsageDetail_20' ) end [2025-01-15 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251319', 'tblTempVendorCDR_20' ) start [2025-01-15 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251319', 'tblTempVendorCDR_20' ) end [2025-01-15 04:57:18] Production.INFO: ProcessCDR(1,14251319,1,1,2) [2025-01-15 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251319', 'tblTempUsageDetail_20' ) start [2025-01-15 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251319', 'tblTempUsageDetail_20' ) end [2025-01-15 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:57:21] Production.INFO: ==10195== Releasing lock... [2025-01-15 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:57:21] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:58:05 [end_date_ymd] => 2025-01-15 04:58:05 [RateCDR] => 1 ) [2025-01-15 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:58:05' and `end` < '2025-01-15 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:58:20] Production.INFO: count ==64 [2025-01-15 04:58:20] Production.ERROR: pbx CDR StartTime 2025-01-15 01:58:05 - End Time 2025-01-15 04:58:05 [2025-01-15 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251324', 'tblTempUsageDetail_20' ) start [2025-01-15 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251324', 'tblTempUsageDetail_20' ) end [2025-01-15 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251324', 'tblTempVendorCDR_20' ) start [2025-01-15 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251324', 'tblTempVendorCDR_20' ) end [2025-01-15 04:58:20] Production.INFO: ProcessCDR(1,14251324,1,1,2) [2025-01-15 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251324', 'tblTempUsageDetail_20' ) start [2025-01-15 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251324', 'tblTempUsageDetail_20' ) end [2025-01-15 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:58:23] Production.INFO: ==10266== Releasing lock... [2025-01-15 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:58:23] Production.INFO: 28 MB #Memory Used# [2025-01-15 04:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 01:59:04 [end_date_ymd] => 2025-01-15 04:59:04 [RateCDR] => 1 ) [2025-01-15 04:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 01:59:04' and `end` < '2025-01-15 04:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 04:59:20] Production.INFO: count ==64 [2025-01-15 04:59:20] Production.ERROR: pbx CDR StartTime 2025-01-15 01:59:04 - End Time 2025-01-15 04:59:04 [2025-01-15 04:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251329', 'tblTempUsageDetail_20' ) start [2025-01-15 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251329', 'tblTempUsageDetail_20' ) end [2025-01-15 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251329', 'tblTempVendorCDR_20' ) start [2025-01-15 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251329', 'tblTempVendorCDR_20' ) end [2025-01-15 04:59:20] Production.INFO: ProcessCDR(1,14251329,1,1,2) [2025-01-15 04:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 04:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251329', 'tblTempUsageDetail_20' ) start [2025-01-15 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251329', 'tblTempUsageDetail_20' ) end [2025-01-15 04:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 04:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 04:59:23] Production.INFO: ==10335== Releasing lock... [2025-01-15 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 04:59:23] Production.INFO: 28 MB #Memory Used# [2025-01-15 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:00:06 [end_date_ymd] => 2025-01-15 05:00:06 [RateCDR] => 1 ) [2025-01-15 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:00:06' and `end` < '2025-01-15 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:00:21] Production.INFO: count ==56 [2025-01-15 05:00:21] Production.ERROR: pbx CDR StartTime 2025-01-15 02:00:06 - End Time 2025-01-15 05:00:06 [2025-01-15 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251335', 'tblTempUsageDetail_20' ) start [2025-01-15 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251335', 'tblTempUsageDetail_20' ) end [2025-01-15 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251335', 'tblTempVendorCDR_20' ) start [2025-01-15 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251335', 'tblTempVendorCDR_20' ) end [2025-01-15 05:00:21] Production.INFO: ProcessCDR(1,14251335,1,1,2) [2025-01-15 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251335', 'tblTempUsageDetail_20' ) start [2025-01-15 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251335', 'tblTempUsageDetail_20' ) end [2025-01-15 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:00:24] Production.INFO: ==10408== Releasing lock... [2025-01-15 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:00:24] Production.INFO: 28 MB #Memory Used# [2025-01-15 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:01:05 [end_date_ymd] => 2025-01-15 05:01:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 02:01:05' and `end` < '2025-01-15 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-01-15 05:01:20] Production.INFO: count ==56 [2025-01-15 05:01:20] Production.ERROR: pbx CDR StartTime 2025-01-15 02:01:05 - End Time 2025-01-15 05:01:05 [2025-01-15 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251340', 'tblTempUsageDetail_20' ) start [2025-01-15 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251340', 'tblTempUsageDetail_20' ) end [2025-01-15 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251340', 'tblTempVendorCDR_20' ) start [2025-01-15 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251340', 'tblTempVendorCDR_20' ) end [2025-01-15 05:01:20] Production.INFO: ProcessCDR(1,14251340,1,1,2) [2025-01-15 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251340', 'tblTempUsageDetail_20' ) start [2025-01-15 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251340', 'tblTempUsageDetail_20' ) end [2025-01-15 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:01:23] Production.INFO: ==10493== Releasing lock... [2025-01-15 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:01:23] Production.INFO: 28 MB #Memory Used# [2025-01-15 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:02:05 [end_date_ymd] => 2025-01-15 05:02:05 [RateCDR] => 1 ) [2025-01-15 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:02:05' and `end` < '2025-01-15 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:02:18] Production.INFO: count ==56 [2025-01-15 05:02:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:02:05 - End Time 2025-01-15 05:02:05 [2025-01-15 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251345', 'tblTempUsageDetail_20' ) start [2025-01-15 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251345', 'tblTempUsageDetail_20' ) end [2025-01-15 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251345', 'tblTempVendorCDR_20' ) start [2025-01-15 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251345', 'tblTempVendorCDR_20' ) end [2025-01-15 05:02:18] Production.INFO: ProcessCDR(1,14251345,1,1,2) [2025-01-15 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251345', 'tblTempUsageDetail_20' ) start [2025-01-15 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251345', 'tblTempUsageDetail_20' ) end [2025-01-15 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:02:22] Production.INFO: ==10564== Releasing lock... [2025-01-15 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:02:22] Production.INFO: 28 MB #Memory Used# [2025-01-15 05:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:03:04 [end_date_ymd] => 2025-01-15 05:03:04 [RateCDR] => 1 ) [2025-01-15 05:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:03:04' and `end` < '2025-01-15 05:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:03:18] Production.INFO: count ==56 [2025-01-15 05:03:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:03:04 - End Time 2025-01-15 05:03:04 [2025-01-15 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251350', 'tblTempUsageDetail_20' ) start [2025-01-15 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251350', 'tblTempUsageDetail_20' ) end [2025-01-15 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251350', 'tblTempVendorCDR_20' ) start [2025-01-15 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251350', 'tblTempVendorCDR_20' ) end [2025-01-15 05:03:18] Production.INFO: ProcessCDR(1,14251350,1,1,2) [2025-01-15 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251350', 'tblTempUsageDetail_20' ) start [2025-01-15 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251350', 'tblTempUsageDetail_20' ) end [2025-01-15 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:03:22] Production.INFO: ==10635== Releasing lock... [2025-01-15 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:03:22] Production.INFO: 28 MB #Memory Used# [2025-01-15 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:04:05 [end_date_ymd] => 2025-01-15 05:04:05 [RateCDR] => 1 ) [2025-01-15 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:04:05' and `end` < '2025-01-15 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:04:18] Production.INFO: count ==56 [2025-01-15 05:04:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:04:05 - End Time 2025-01-15 05:04:05 [2025-01-15 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251355', 'tblTempUsageDetail_20' ) start [2025-01-15 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251355', 'tblTempUsageDetail_20' ) end [2025-01-15 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251355', 'tblTempVendorCDR_20' ) start [2025-01-15 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251355', 'tblTempVendorCDR_20' ) end [2025-01-15 05:04:18] Production.INFO: ProcessCDR(1,14251355,1,1,2) [2025-01-15 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251355', 'tblTempUsageDetail_20' ) start [2025-01-15 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251355', 'tblTempUsageDetail_20' ) end [2025-01-15 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:04:21] Production.INFO: ==10708== Releasing lock... [2025-01-15 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:04:21] Production.INFO: 28 MB #Memory Used# [2025-01-15 05:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:05:06 [end_date_ymd] => 2025-01-15 05:05:06 [RateCDR] => 1 ) [2025-01-15 05:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:05:06' and `end` < '2025-01-15 05:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:05:18] Production.INFO: count ==56 [2025-01-15 05:05:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:05:06 - End Time 2025-01-15 05:05:06 [2025-01-15 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251360', 'tblTempUsageDetail_20' ) start [2025-01-15 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251360', 'tblTempUsageDetail_20' ) end [2025-01-15 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251360', 'tblTempVendorCDR_20' ) start [2025-01-15 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251360', 'tblTempVendorCDR_20' ) end [2025-01-15 05:05:18] Production.INFO: ProcessCDR(1,14251360,1,1,2) [2025-01-15 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251360', 'tblTempUsageDetail_20' ) start [2025-01-15 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251360', 'tblTempUsageDetail_20' ) end [2025-01-15 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:05:22] Production.INFO: ==10780== Releasing lock... [2025-01-15 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:05:22] Production.INFO: 28 MB #Memory Used# [2025-01-15 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:06:05 [end_date_ymd] => 2025-01-15 05:06:05 [RateCDR] => 1 ) [2025-01-15 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:06:05' and `end` < '2025-01-15 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:06:19] Production.INFO: count ==56 [2025-01-15 05:06:19] Production.ERROR: pbx CDR StartTime 2025-01-15 02:06:05 - End Time 2025-01-15 05:06:05 [2025-01-15 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251365', 'tblTempUsageDetail_20' ) start [2025-01-15 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251365', 'tblTempUsageDetail_20' ) end [2025-01-15 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251365', 'tblTempVendorCDR_20' ) start [2025-01-15 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251365', 'tblTempVendorCDR_20' ) end [2025-01-15 05:06:19] Production.INFO: ProcessCDR(1,14251365,1,1,2) [2025-01-15 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251365', 'tblTempUsageDetail_20' ) start [2025-01-15 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251365', 'tblTempUsageDetail_20' ) end [2025-01-15 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:06:22] Production.INFO: ==10856== Releasing lock... [2025-01-15 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:06:22] Production.INFO: 28 MB #Memory Used# [2025-01-15 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:07:05 [end_date_ymd] => 2025-01-15 05:07:05 [RateCDR] => 1 ) [2025-01-15 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:07:05' and `end` < '2025-01-15 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:07:17] Production.INFO: count ==56 [2025-01-15 05:07:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:07:05 - End Time 2025-01-15 05:07:05 [2025-01-15 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251370', 'tblTempUsageDetail_20' ) start [2025-01-15 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251370', 'tblTempUsageDetail_20' ) end [2025-01-15 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251370', 'tblTempVendorCDR_20' ) start [2025-01-15 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251370', 'tblTempVendorCDR_20' ) end [2025-01-15 05:07:17] Production.INFO: ProcessCDR(1,14251370,1,1,2) [2025-01-15 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251370', 'tblTempUsageDetail_20' ) start [2025-01-15 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251370', 'tblTempUsageDetail_20' ) end [2025-01-15 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:07:21] Production.INFO: ==10927== Releasing lock... [2025-01-15 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:07:21] Production.INFO: 28 MB #Memory Used# [2025-01-15 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:08:05 [end_date_ymd] => 2025-01-15 05:08:05 [RateCDR] => 1 ) [2025-01-15 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:08:05' and `end` < '2025-01-15 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:08:17] Production.INFO: count ==55 [2025-01-15 05:08:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:08:05 - End Time 2025-01-15 05:08:05 [2025-01-15 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251375', 'tblTempUsageDetail_20' ) start [2025-01-15 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251375', 'tblTempUsageDetail_20' ) end [2025-01-15 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251375', 'tblTempVendorCDR_20' ) start [2025-01-15 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251375', 'tblTempVendorCDR_20' ) end [2025-01-15 05:08:17] Production.INFO: ProcessCDR(1,14251375,1,1,2) [2025-01-15 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251375', 'tblTempUsageDetail_20' ) start [2025-01-15 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251375', 'tblTempUsageDetail_20' ) end [2025-01-15 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:08:21] Production.INFO: ==10998== Releasing lock... [2025-01-15 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:08:21] Production.INFO: 28 MB #Memory Used# [2025-01-15 05:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:09:04 [end_date_ymd] => 2025-01-15 05:09:04 [RateCDR] => 1 ) [2025-01-15 05:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:09:04' and `end` < '2025-01-15 05:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:09:17] Production.INFO: count ==54 [2025-01-15 05:09:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:09:04 - End Time 2025-01-15 05:09:04 [2025-01-15 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251380', 'tblTempUsageDetail_20' ) start [2025-01-15 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251380', 'tblTempUsageDetail_20' ) end [2025-01-15 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251380', 'tblTempVendorCDR_20' ) start [2025-01-15 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251380', 'tblTempVendorCDR_20' ) end [2025-01-15 05:09:17] Production.INFO: ProcessCDR(1,14251380,1,1,2) [2025-01-15 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251380', 'tblTempUsageDetail_20' ) start [2025-01-15 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251380', 'tblTempUsageDetail_20' ) end [2025-01-15 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:09:20] Production.INFO: ==11068== Releasing lock... [2025-01-15 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:09:20] Production.INFO: 28 MB #Memory Used# [2025-01-15 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:10:06 [end_date_ymd] => 2025-01-15 05:10:06 [RateCDR] => 1 ) [2025-01-15 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:10:06' and `end` < '2025-01-15 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:10:18] Production.INFO: count ==50 [2025-01-15 05:10:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:10:06 - End Time 2025-01-15 05:10:06 [2025-01-15 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251386', 'tblTempUsageDetail_20' ) start [2025-01-15 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251386', 'tblTempUsageDetail_20' ) end [2025-01-15 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251386', 'tblTempVendorCDR_20' ) start [2025-01-15 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251386', 'tblTempVendorCDR_20' ) end [2025-01-15 05:10:18] Production.INFO: ProcessCDR(1,14251386,1,1,2) [2025-01-15 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251386', 'tblTempUsageDetail_20' ) start [2025-01-15 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251386', 'tblTempUsageDetail_20' ) end [2025-01-15 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:10:22] Production.INFO: ==11180== Releasing lock... [2025-01-15 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:10:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:11:05 [end_date_ymd] => 2025-01-15 05:11:05 [RateCDR] => 1 ) [2025-01-15 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:11:05' and `end` < '2025-01-15 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:11:18] Production.INFO: count ==50 [2025-01-15 05:11:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:11:05 - End Time 2025-01-15 05:11:05 [2025-01-15 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251391', 'tblTempUsageDetail_20' ) start [2025-01-15 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251391', 'tblTempUsageDetail_20' ) end [2025-01-15 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251391', 'tblTempVendorCDR_20' ) start [2025-01-15 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251391', 'tblTempVendorCDR_20' ) end [2025-01-15 05:11:18] Production.INFO: ProcessCDR(1,14251391,1,1,2) [2025-01-15 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251391', 'tblTempUsageDetail_20' ) start [2025-01-15 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251391', 'tblTempUsageDetail_20' ) end [2025-01-15 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:11:21] Production.INFO: ==11252== Releasing lock... [2025-01-15 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:11:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:12:05 [end_date_ymd] => 2025-01-15 05:12:05 [RateCDR] => 1 ) [2025-01-15 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:12:05' and `end` < '2025-01-15 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:12:18] Production.INFO: count ==50 [2025-01-15 05:12:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:12:05 - End Time 2025-01-15 05:12:05 [2025-01-15 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251396', 'tblTempUsageDetail_20' ) start [2025-01-15 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251396', 'tblTempUsageDetail_20' ) end [2025-01-15 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251396', 'tblTempVendorCDR_20' ) start [2025-01-15 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251396', 'tblTempVendorCDR_20' ) end [2025-01-15 05:12:18] Production.INFO: ProcessCDR(1,14251396,1,1,2) [2025-01-15 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251396', 'tblTempUsageDetail_20' ) start [2025-01-15 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251396', 'tblTempUsageDetail_20' ) end [2025-01-15 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:12:21] Production.INFO: ==11322== Releasing lock... [2025-01-15 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:12:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:13:05 [end_date_ymd] => 2025-01-15 05:13:05 [RateCDR] => 1 ) [2025-01-15 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:13:05' and `end` < '2025-01-15 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:13:17] Production.INFO: count ==50 [2025-01-15 05:13:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:13:05 - End Time 2025-01-15 05:13:05 [2025-01-15 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251401', 'tblTempUsageDetail_20' ) start [2025-01-15 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251401', 'tblTempUsageDetail_20' ) end [2025-01-15 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251401', 'tblTempVendorCDR_20' ) start [2025-01-15 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251401', 'tblTempVendorCDR_20' ) end [2025-01-15 05:13:17] Production.INFO: ProcessCDR(1,14251401,1,1,2) [2025-01-15 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251401', 'tblTempUsageDetail_20' ) start [2025-01-15 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251401', 'tblTempUsageDetail_20' ) end [2025-01-15 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:13:20] Production.INFO: ==11394== Releasing lock... [2025-01-15 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:13:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:14:05 [end_date_ymd] => 2025-01-15 05:14:05 [RateCDR] => 1 ) [2025-01-15 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:14:05' and `end` < '2025-01-15 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:14:18] Production.INFO: count ==50 [2025-01-15 05:14:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:14:05 - End Time 2025-01-15 05:14:05 [2025-01-15 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251406', 'tblTempUsageDetail_20' ) start [2025-01-15 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251406', 'tblTempUsageDetail_20' ) end [2025-01-15 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251406', 'tblTempVendorCDR_20' ) start [2025-01-15 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251406', 'tblTempVendorCDR_20' ) end [2025-01-15 05:14:18] Production.INFO: ProcessCDR(1,14251406,1,1,2) [2025-01-15 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251406', 'tblTempUsageDetail_20' ) start [2025-01-15 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251406', 'tblTempUsageDetail_20' ) end [2025-01-15 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:14:21] Production.INFO: ==11466== Releasing lock... [2025-01-15 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:14:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:15:05 [end_date_ymd] => 2025-01-15 05:15:05 [RateCDR] => 1 ) [2025-01-15 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:15:05' and `end` < '2025-01-15 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:15:17] Production.INFO: count ==50 [2025-01-15 05:15:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:15:05 - End Time 2025-01-15 05:15:05 [2025-01-15 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251411', 'tblTempUsageDetail_20' ) start [2025-01-15 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251411', 'tblTempUsageDetail_20' ) end [2025-01-15 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251411', 'tblTempVendorCDR_20' ) start [2025-01-15 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251411', 'tblTempVendorCDR_20' ) end [2025-01-15 05:15:17] Production.INFO: ProcessCDR(1,14251411,1,1,2) [2025-01-15 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251411', 'tblTempUsageDetail_20' ) start [2025-01-15 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251411', 'tblTempUsageDetail_20' ) end [2025-01-15 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:15:20] Production.INFO: ==11541== Releasing lock... [2025-01-15 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:15:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:16:05 [end_date_ymd] => 2025-01-15 05:16:05 [RateCDR] => 1 ) [2025-01-15 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:16:05' and `end` < '2025-01-15 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:16:18] Production.INFO: count ==50 [2025-01-15 05:16:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:16:05 - End Time 2025-01-15 05:16:05 [2025-01-15 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251416', 'tblTempUsageDetail_20' ) start [2025-01-15 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251416', 'tblTempUsageDetail_20' ) end [2025-01-15 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251416', 'tblTempVendorCDR_20' ) start [2025-01-15 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251416', 'tblTempVendorCDR_20' ) end [2025-01-15 05:16:18] Production.INFO: ProcessCDR(1,14251416,1,1,2) [2025-01-15 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251416', 'tblTempUsageDetail_20' ) start [2025-01-15 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251416', 'tblTempUsageDetail_20' ) end [2025-01-15 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:16:21] Production.INFO: ==11612== Releasing lock... [2025-01-15 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:16:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:17:05 [end_date_ymd] => 2025-01-15 05:17:05 [RateCDR] => 1 ) [2025-01-15 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:17:05' and `end` < '2025-01-15 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:17:18] Production.INFO: count ==50 [2025-01-15 05:17:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:17:05 - End Time 2025-01-15 05:17:05 [2025-01-15 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251421', 'tblTempUsageDetail_20' ) start [2025-01-15 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251421', 'tblTempUsageDetail_20' ) end [2025-01-15 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251421', 'tblTempVendorCDR_20' ) start [2025-01-15 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251421', 'tblTempVendorCDR_20' ) end [2025-01-15 05:17:18] Production.INFO: ProcessCDR(1,14251421,1,1,2) [2025-01-15 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251421', 'tblTempUsageDetail_20' ) start [2025-01-15 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251421', 'tblTempUsageDetail_20' ) end [2025-01-15 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:17:21] Production.INFO: ==11683== Releasing lock... [2025-01-15 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:17:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:18:05 [end_date_ymd] => 2025-01-15 05:18:05 [RateCDR] => 1 ) [2025-01-15 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:18:05' and `end` < '2025-01-15 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:18:17] Production.INFO: count ==50 [2025-01-15 05:18:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:18:05 - End Time 2025-01-15 05:18:05 [2025-01-15 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251426', 'tblTempUsageDetail_20' ) start [2025-01-15 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251426', 'tblTempUsageDetail_20' ) end [2025-01-15 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251426', 'tblTempVendorCDR_20' ) start [2025-01-15 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251426', 'tblTempVendorCDR_20' ) end [2025-01-15 05:18:17] Production.INFO: ProcessCDR(1,14251426,1,1,2) [2025-01-15 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251426', 'tblTempUsageDetail_20' ) start [2025-01-15 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251426', 'tblTempUsageDetail_20' ) end [2025-01-15 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:18:21] Production.INFO: ==11754== Releasing lock... [2025-01-15 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:18:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:19:05 [end_date_ymd] => 2025-01-15 05:19:05 [RateCDR] => 1 ) [2025-01-15 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:19:05' and `end` < '2025-01-15 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:19:18] Production.INFO: count ==50 [2025-01-15 05:19:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:19:05 - End Time 2025-01-15 05:19:05 [2025-01-15 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251431', 'tblTempUsageDetail_20' ) start [2025-01-15 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251431', 'tblTempUsageDetail_20' ) end [2025-01-15 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251431', 'tblTempVendorCDR_20' ) start [2025-01-15 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251431', 'tblTempVendorCDR_20' ) end [2025-01-15 05:19:18] Production.INFO: ProcessCDR(1,14251431,1,1,2) [2025-01-15 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251431', 'tblTempUsageDetail_20' ) start [2025-01-15 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251431', 'tblTempUsageDetail_20' ) end [2025-01-15 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:19:21] Production.INFO: ==11829== Releasing lock... [2025-01-15 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:19:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:20:06 [end_date_ymd] => 2025-01-15 05:20:06 [RateCDR] => 1 ) [2025-01-15 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:20:06' and `end` < '2025-01-15 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:20:18] Production.INFO: count ==48 [2025-01-15 05:20:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:20:06 - End Time 2025-01-15 05:20:06 [2025-01-15 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251436', 'tblTempUsageDetail_20' ) start [2025-01-15 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251436', 'tblTempUsageDetail_20' ) end [2025-01-15 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251436', 'tblTempVendorCDR_20' ) start [2025-01-15 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251436', 'tblTempVendorCDR_20' ) end [2025-01-15 05:20:18] Production.INFO: ProcessCDR(1,14251436,1,1,2) [2025-01-15 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251436', 'tblTempUsageDetail_20' ) start [2025-01-15 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251436', 'tblTempUsageDetail_20' ) end [2025-01-15 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:20:21] Production.INFO: ==11904== Releasing lock... [2025-01-15 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:20:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:21:05 [end_date_ymd] => 2025-01-15 05:21:05 [RateCDR] => 1 ) [2025-01-15 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:21:05' and `end` < '2025-01-15 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:21:18] Production.INFO: count ==48 [2025-01-15 05:21:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:21:05 - End Time 2025-01-15 05:21:05 [2025-01-15 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251442', 'tblTempUsageDetail_20' ) start [2025-01-15 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251442', 'tblTempUsageDetail_20' ) end [2025-01-15 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251442', 'tblTempVendorCDR_20' ) start [2025-01-15 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251442', 'tblTempVendorCDR_20' ) end [2025-01-15 05:21:18] Production.INFO: ProcessCDR(1,14251442,1,1,2) [2025-01-15 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251442', 'tblTempUsageDetail_20' ) start [2025-01-15 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251442', 'tblTempUsageDetail_20' ) end [2025-01-15 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:21:21] Production.INFO: ==11977== Releasing lock... [2025-01-15 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:21:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:22:05 [end_date_ymd] => 2025-01-15 05:22:05 [RateCDR] => 1 ) [2025-01-15 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:22:05' and `end` < '2025-01-15 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:22:17] Production.INFO: count ==48 [2025-01-15 05:22:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:22:05 - End Time 2025-01-15 05:22:05 [2025-01-15 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251447', 'tblTempUsageDetail_20' ) start [2025-01-15 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251447', 'tblTempUsageDetail_20' ) end [2025-01-15 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251447', 'tblTempVendorCDR_20' ) start [2025-01-15 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251447', 'tblTempVendorCDR_20' ) end [2025-01-15 05:22:17] Production.INFO: ProcessCDR(1,14251447,1,1,2) [2025-01-15 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251447', 'tblTempUsageDetail_20' ) start [2025-01-15 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251447', 'tblTempUsageDetail_20' ) end [2025-01-15 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:22:20] Production.INFO: ==12050== Releasing lock... [2025-01-15 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:22:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:23:05 [end_date_ymd] => 2025-01-15 05:23:05 [RateCDR] => 1 ) [2025-01-15 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:23:05' and `end` < '2025-01-15 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:23:18] Production.INFO: count ==48 [2025-01-15 05:23:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:23:05 - End Time 2025-01-15 05:23:05 [2025-01-15 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251452', 'tblTempUsageDetail_20' ) start [2025-01-15 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251452', 'tblTempUsageDetail_20' ) end [2025-01-15 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251452', 'tblTempVendorCDR_20' ) start [2025-01-15 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251452', 'tblTempVendorCDR_20' ) end [2025-01-15 05:23:18] Production.INFO: ProcessCDR(1,14251452,1,1,2) [2025-01-15 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251452', 'tblTempUsageDetail_20' ) start [2025-01-15 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251452', 'tblTempUsageDetail_20' ) end [2025-01-15 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:23:21] Production.INFO: ==12123== Releasing lock... [2025-01-15 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:23:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:24:05 [end_date_ymd] => 2025-01-15 05:24:05 [RateCDR] => 1 ) [2025-01-15 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:24:05' and `end` < '2025-01-15 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:24:17] Production.INFO: count ==48 [2025-01-15 05:24:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:24:05 - End Time 2025-01-15 05:24:05 [2025-01-15 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251457', 'tblTempUsageDetail_20' ) start [2025-01-15 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251457', 'tblTempUsageDetail_20' ) end [2025-01-15 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251457', 'tblTempVendorCDR_20' ) start [2025-01-15 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251457', 'tblTempVendorCDR_20' ) end [2025-01-15 05:24:17] Production.INFO: ProcessCDR(1,14251457,1,1,2) [2025-01-15 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251457', 'tblTempUsageDetail_20' ) start [2025-01-15 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251457', 'tblTempUsageDetail_20' ) end [2025-01-15 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:24:21] Production.INFO: ==12193== Releasing lock... [2025-01-15 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:24:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:25:05 [end_date_ymd] => 2025-01-15 05:25:05 [RateCDR] => 1 ) [2025-01-15 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:25:05' and `end` < '2025-01-15 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:25:17] Production.INFO: count ==48 [2025-01-15 05:25:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:25:05 - End Time 2025-01-15 05:25:05 [2025-01-15 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251462', 'tblTempUsageDetail_20' ) start [2025-01-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251462', 'tblTempUsageDetail_20' ) end [2025-01-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251462', 'tblTempVendorCDR_20' ) start [2025-01-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251462', 'tblTempVendorCDR_20' ) end [2025-01-15 05:25:17] Production.INFO: ProcessCDR(1,14251462,1,1,2) [2025-01-15 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251462', 'tblTempUsageDetail_20' ) start [2025-01-15 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251462', 'tblTempUsageDetail_20' ) end [2025-01-15 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:25:20] Production.INFO: ==12266== Releasing lock... [2025-01-15 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:25:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:26:05 [end_date_ymd] => 2025-01-15 05:26:05 [RateCDR] => 1 ) [2025-01-15 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:26:05' and `end` < '2025-01-15 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:26:18] Production.INFO: count ==48 [2025-01-15 05:26:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:26:05 - End Time 2025-01-15 05:26:05 [2025-01-15 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251467', 'tblTempUsageDetail_20' ) start [2025-01-15 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251467', 'tblTempUsageDetail_20' ) end [2025-01-15 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251467', 'tblTempVendorCDR_20' ) start [2025-01-15 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251467', 'tblTempVendorCDR_20' ) end [2025-01-15 05:26:18] Production.INFO: ProcessCDR(1,14251467,1,1,2) [2025-01-15 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251467', 'tblTempUsageDetail_20' ) start [2025-01-15 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251467', 'tblTempUsageDetail_20' ) end [2025-01-15 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:26:21] Production.INFO: ==12375== Releasing lock... [2025-01-15 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:26:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:27:05 [end_date_ymd] => 2025-01-15 05:27:05 [RateCDR] => 1 ) [2025-01-15 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:27:05' and `end` < '2025-01-15 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:27:18] Production.INFO: count ==48 [2025-01-15 05:27:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:27:05 - End Time 2025-01-15 05:27:05 [2025-01-15 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251472', 'tblTempUsageDetail_20' ) start [2025-01-15 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251472', 'tblTempUsageDetail_20' ) end [2025-01-15 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251472', 'tblTempVendorCDR_20' ) start [2025-01-15 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251472', 'tblTempVendorCDR_20' ) end [2025-01-15 05:27:18] Production.INFO: ProcessCDR(1,14251472,1,1,2) [2025-01-15 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251472', 'tblTempUsageDetail_20' ) start [2025-01-15 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251472', 'tblTempUsageDetail_20' ) end [2025-01-15 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:27:21] Production.INFO: ==12446== Releasing lock... [2025-01-15 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:27:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:28:05 [end_date_ymd] => 2025-01-15 05:28:05 [RateCDR] => 1 ) [2025-01-15 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:28:05' and `end` < '2025-01-15 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:28:17] Production.INFO: count ==48 [2025-01-15 05:28:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:28:05 - End Time 2025-01-15 05:28:05 [2025-01-15 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251477', 'tblTempUsageDetail_20' ) start [2025-01-15 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251477', 'tblTempUsageDetail_20' ) end [2025-01-15 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251477', 'tblTempVendorCDR_20' ) start [2025-01-15 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251477', 'tblTempVendorCDR_20' ) end [2025-01-15 05:28:17] Production.INFO: ProcessCDR(1,14251477,1,1,2) [2025-01-15 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251477', 'tblTempUsageDetail_20' ) start [2025-01-15 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251477', 'tblTempUsageDetail_20' ) end [2025-01-15 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:28:20] Production.INFO: ==12516== Releasing lock... [2025-01-15 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:28:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:29:05 [end_date_ymd] => 2025-01-15 05:29:05 [RateCDR] => 1 ) [2025-01-15 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:29:05' and `end` < '2025-01-15 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:29:18] Production.INFO: count ==48 [2025-01-15 05:29:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:29:05 - End Time 2025-01-15 05:29:05 [2025-01-15 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251482', 'tblTempUsageDetail_20' ) start [2025-01-15 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251482', 'tblTempUsageDetail_20' ) end [2025-01-15 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251482', 'tblTempVendorCDR_20' ) start [2025-01-15 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251482', 'tblTempVendorCDR_20' ) end [2025-01-15 05:29:18] Production.INFO: ProcessCDR(1,14251482,1,1,2) [2025-01-15 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251482', 'tblTempUsageDetail_20' ) start [2025-01-15 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251482', 'tblTempUsageDetail_20' ) end [2025-01-15 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:29:22] Production.INFO: ==12590== Releasing lock... [2025-01-15 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:29:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:30:06 [end_date_ymd] => 2025-01-15 05:30:06 [RateCDR] => 1 ) [2025-01-15 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:30:06' and `end` < '2025-01-15 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:30:18] Production.INFO: count ==43 [2025-01-15 05:30:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:30:06 - End Time 2025-01-15 05:30:06 [2025-01-15 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251488', 'tblTempUsageDetail_20' ) start [2025-01-15 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251488', 'tblTempUsageDetail_20' ) end [2025-01-15 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251488', 'tblTempVendorCDR_20' ) start [2025-01-15 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251488', 'tblTempVendorCDR_20' ) end [2025-01-15 05:30:18] Production.INFO: ProcessCDR(1,14251488,1,1,2) [2025-01-15 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251488', 'tblTempUsageDetail_20' ) start [2025-01-15 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251488', 'tblTempUsageDetail_20' ) end [2025-01-15 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:30:21] Production.INFO: ==12663== Releasing lock... [2025-01-15 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:30:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:31:05 [end_date_ymd] => 2025-01-15 05:31:05 [RateCDR] => 1 ) [2025-01-15 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:31:05' and `end` < '2025-01-15 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:31:18] Production.INFO: count ==43 [2025-01-15 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:31:05 - End Time 2025-01-15 05:31:05 [2025-01-15 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251493', 'tblTempUsageDetail_20' ) start [2025-01-15 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251493', 'tblTempUsageDetail_20' ) end [2025-01-15 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251493', 'tblTempVendorCDR_20' ) start [2025-01-15 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251493', 'tblTempVendorCDR_20' ) end [2025-01-15 05:31:18] Production.INFO: ProcessCDR(1,14251493,1,1,2) [2025-01-15 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251493', 'tblTempUsageDetail_20' ) start [2025-01-15 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251493', 'tblTempUsageDetail_20' ) end [2025-01-15 05:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:31:22] Production.INFO: ==12736== Releasing lock... [2025-01-15 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:31:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:32:05 [end_date_ymd] => 2025-01-15 05:32:05 [RateCDR] => 1 ) [2025-01-15 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:32:05' and `end` < '2025-01-15 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:32:17] Production.INFO: count ==43 [2025-01-15 05:32:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:32:05 - End Time 2025-01-15 05:32:05 [2025-01-15 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251498', 'tblTempUsageDetail_20' ) start [2025-01-15 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251498', 'tblTempUsageDetail_20' ) end [2025-01-15 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251498', 'tblTempVendorCDR_20' ) start [2025-01-15 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251498', 'tblTempVendorCDR_20' ) end [2025-01-15 05:32:17] Production.INFO: ProcessCDR(1,14251498,1,1,2) [2025-01-15 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251498', 'tblTempUsageDetail_20' ) start [2025-01-15 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251498', 'tblTempUsageDetail_20' ) end [2025-01-15 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:32:21] Production.INFO: ==12810== Releasing lock... [2025-01-15 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:32:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:33:05 [end_date_ymd] => 2025-01-15 05:33:05 [RateCDR] => 1 ) [2025-01-15 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:33:05' and `end` < '2025-01-15 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:33:18] Production.INFO: count ==43 [2025-01-15 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:33:05 - End Time 2025-01-15 05:33:05 [2025-01-15 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251503', 'tblTempUsageDetail_20' ) start [2025-01-15 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251503', 'tblTempUsageDetail_20' ) end [2025-01-15 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251503', 'tblTempVendorCDR_20' ) start [2025-01-15 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251503', 'tblTempVendorCDR_20' ) end [2025-01-15 05:33:18] Production.INFO: ProcessCDR(1,14251503,1,1,2) [2025-01-15 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251503', 'tblTempUsageDetail_20' ) start [2025-01-15 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251503', 'tblTempUsageDetail_20' ) end [2025-01-15 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:33:21] Production.INFO: ==12886== Releasing lock... [2025-01-15 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:33:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:34:05 [end_date_ymd] => 2025-01-15 05:34:05 [RateCDR] => 1 ) [2025-01-15 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:34:05' and `end` < '2025-01-15 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:34:17] Production.INFO: count ==43 [2025-01-15 05:34:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:34:05 - End Time 2025-01-15 05:34:05 [2025-01-15 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251508', 'tblTempUsageDetail_20' ) start [2025-01-15 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251508', 'tblTempUsageDetail_20' ) end [2025-01-15 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251508', 'tblTempVendorCDR_20' ) start [2025-01-15 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251508', 'tblTempVendorCDR_20' ) end [2025-01-15 05:34:17] Production.INFO: ProcessCDR(1,14251508,1,1,2) [2025-01-15 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251508', 'tblTempUsageDetail_20' ) start [2025-01-15 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251508', 'tblTempUsageDetail_20' ) end [2025-01-15 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:34:21] Production.INFO: ==12955== Releasing lock... [2025-01-15 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:34:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:35:05 [end_date_ymd] => 2025-01-15 05:35:05 [RateCDR] => 1 ) [2025-01-15 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:35:05' and `end` < '2025-01-15 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:35:18] Production.INFO: count ==42 [2025-01-15 05:35:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:35:05 - End Time 2025-01-15 05:35:05 [2025-01-15 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251513', 'tblTempUsageDetail_20' ) start [2025-01-15 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251513', 'tblTempUsageDetail_20' ) end [2025-01-15 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251513', 'tblTempVendorCDR_20' ) start [2025-01-15 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251513', 'tblTempVendorCDR_20' ) end [2025-01-15 05:35:18] Production.INFO: ProcessCDR(1,14251513,1,1,2) [2025-01-15 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251513', 'tblTempUsageDetail_20' ) start [2025-01-15 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251513', 'tblTempUsageDetail_20' ) end [2025-01-15 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:35:21] Production.INFO: ==13025== Releasing lock... [2025-01-15 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:35:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:36:04 [end_date_ymd] => 2025-01-15 05:36:04 [RateCDR] => 1 ) [2025-01-15 05:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:36:04' and `end` < '2025-01-15 05:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:36:17] Production.INFO: count ==42 [2025-01-15 05:36:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:36:04 - End Time 2025-01-15 05:36:04 [2025-01-15 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251518', 'tblTempUsageDetail_20' ) start [2025-01-15 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251518', 'tblTempUsageDetail_20' ) end [2025-01-15 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251518', 'tblTempVendorCDR_20' ) start [2025-01-15 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251518', 'tblTempVendorCDR_20' ) end [2025-01-15 05:36:17] Production.INFO: ProcessCDR(1,14251518,1,1,2) [2025-01-15 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251518', 'tblTempUsageDetail_20' ) start [2025-01-15 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251518', 'tblTempUsageDetail_20' ) end [2025-01-15 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:36:21] Production.INFO: ==13094== Releasing lock... [2025-01-15 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:36:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:37:05 [end_date_ymd] => 2025-01-15 05:37:05 [RateCDR] => 1 ) [2025-01-15 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:37:05' and `end` < '2025-01-15 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:37:17] Production.INFO: count ==42 [2025-01-15 05:37:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:37:05 - End Time 2025-01-15 05:37:05 [2025-01-15 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251523', 'tblTempUsageDetail_20' ) start [2025-01-15 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251523', 'tblTempUsageDetail_20' ) end [2025-01-15 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251523', 'tblTempVendorCDR_20' ) start [2025-01-15 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251523', 'tblTempVendorCDR_20' ) end [2025-01-15 05:37:17] Production.INFO: ProcessCDR(1,14251523,1,1,2) [2025-01-15 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251523', 'tblTempUsageDetail_20' ) start [2025-01-15 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251523', 'tblTempUsageDetail_20' ) end [2025-01-15 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:37:21] Production.INFO: ==13165== Releasing lock... [2025-01-15 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:37:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:38:05 [end_date_ymd] => 2025-01-15 05:38:05 [RateCDR] => 1 ) [2025-01-15 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:38:05' and `end` < '2025-01-15 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:38:17] Production.INFO: count ==42 [2025-01-15 05:38:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:38:05 - End Time 2025-01-15 05:38:05 [2025-01-15 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251528', 'tblTempUsageDetail_20' ) start [2025-01-15 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251528', 'tblTempUsageDetail_20' ) end [2025-01-15 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251528', 'tblTempVendorCDR_20' ) start [2025-01-15 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251528', 'tblTempVendorCDR_20' ) end [2025-01-15 05:38:17] Production.INFO: ProcessCDR(1,14251528,1,1,2) [2025-01-15 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251528', 'tblTempUsageDetail_20' ) start [2025-01-15 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251528', 'tblTempUsageDetail_20' ) end [2025-01-15 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:38:20] Production.INFO: ==13236== Releasing lock... [2025-01-15 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:38:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:39:05 [end_date_ymd] => 2025-01-15 05:39:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 02:39:05' and `end` < '2025-01-15 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-01-15 05:39:18] Production.INFO: count ==42 [2025-01-15 05:39:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:39:05 - End Time 2025-01-15 05:39:05 [2025-01-15 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251533', 'tblTempUsageDetail_20' ) start [2025-01-15 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251533', 'tblTempUsageDetail_20' ) end [2025-01-15 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251533', 'tblTempVendorCDR_20' ) start [2025-01-15 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251533', 'tblTempVendorCDR_20' ) end [2025-01-15 05:39:18] Production.INFO: ProcessCDR(1,14251533,1,1,2) [2025-01-15 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251533', 'tblTempUsageDetail_20' ) start [2025-01-15 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251533', 'tblTempUsageDetail_20' ) end [2025-01-15 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:39:21] Production.INFO: ==13308== Releasing lock... [2025-01-15 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:39:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:40:06 [end_date_ymd] => 2025-01-15 05:40:06 [RateCDR] => 1 ) [2025-01-15 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:40:06' and `end` < '2025-01-15 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:40:19] Production.INFO: count ==37 [2025-01-15 05:40:19] Production.ERROR: pbx CDR StartTime 2025-01-15 02:40:06 - End Time 2025-01-15 05:40:06 [2025-01-15 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251539', 'tblTempUsageDetail_20' ) start [2025-01-15 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251539', 'tblTempUsageDetail_20' ) end [2025-01-15 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251539', 'tblTempVendorCDR_20' ) start [2025-01-15 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251539', 'tblTempVendorCDR_20' ) end [2025-01-15 05:40:19] Production.INFO: ProcessCDR(1,14251539,1,1,2) [2025-01-15 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251539', 'tblTempUsageDetail_20' ) start [2025-01-15 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251539', 'tblTempUsageDetail_20' ) end [2025-01-15 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:40:22] Production.INFO: ==13379== Releasing lock... [2025-01-15 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:40:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:41:05 [end_date_ymd] => 2025-01-15 05:41:05 [RateCDR] => 1 ) [2025-01-15 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:41:05' and `end` < '2025-01-15 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:41:17] Production.INFO: count ==37 [2025-01-15 05:41:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:41:05 - End Time 2025-01-15 05:41:05 [2025-01-15 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251544', 'tblTempUsageDetail_20' ) start [2025-01-15 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251544', 'tblTempUsageDetail_20' ) end [2025-01-15 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251544', 'tblTempVendorCDR_20' ) start [2025-01-15 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251544', 'tblTempVendorCDR_20' ) end [2025-01-15 05:41:17] Production.INFO: ProcessCDR(1,14251544,1,1,2) [2025-01-15 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251544', 'tblTempUsageDetail_20' ) start [2025-01-15 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251544', 'tblTempUsageDetail_20' ) end [2025-01-15 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:41:21] Production.INFO: ==13453== Releasing lock... [2025-01-15 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:41:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:42:05 [end_date_ymd] => 2025-01-15 05:42:05 [RateCDR] => 1 ) [2025-01-15 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:42:05' and `end` < '2025-01-15 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:42:17] Production.INFO: count ==37 [2025-01-15 05:42:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:42:05 - End Time 2025-01-15 05:42:05 [2025-01-15 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251549', 'tblTempUsageDetail_20' ) start [2025-01-15 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251549', 'tblTempUsageDetail_20' ) end [2025-01-15 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251549', 'tblTempVendorCDR_20' ) start [2025-01-15 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251549', 'tblTempVendorCDR_20' ) end [2025-01-15 05:42:17] Production.INFO: ProcessCDR(1,14251549,1,1,2) [2025-01-15 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251549', 'tblTempUsageDetail_20' ) start [2025-01-15 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251549', 'tblTempUsageDetail_20' ) end [2025-01-15 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:42:21] Production.INFO: ==13561== Releasing lock... [2025-01-15 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:42:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:43:05 [end_date_ymd] => 2025-01-15 05:43:05 [RateCDR] => 1 ) [2025-01-15 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:43:05' and `end` < '2025-01-15 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:43:17] Production.INFO: count ==37 [2025-01-15 05:43:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:43:05 - End Time 2025-01-15 05:43:05 [2025-01-15 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251554', 'tblTempUsageDetail_20' ) start [2025-01-15 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251554', 'tblTempUsageDetail_20' ) end [2025-01-15 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251554', 'tblTempVendorCDR_20' ) start [2025-01-15 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251554', 'tblTempVendorCDR_20' ) end [2025-01-15 05:43:17] Production.INFO: ProcessCDR(1,14251554,1,1,2) [2025-01-15 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251554', 'tblTempUsageDetail_20' ) start [2025-01-15 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251554', 'tblTempUsageDetail_20' ) end [2025-01-15 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:43:21] Production.INFO: ==13633== Releasing lock... [2025-01-15 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:43:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:44:05 [end_date_ymd] => 2025-01-15 05:44:05 [RateCDR] => 1 ) [2025-01-15 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:44:05' and `end` < '2025-01-15 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:44:18] Production.INFO: count ==38 [2025-01-15 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:44:05 - End Time 2025-01-15 05:44:05 [2025-01-15 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251559', 'tblTempUsageDetail_20' ) start [2025-01-15 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251559', 'tblTempUsageDetail_20' ) end [2025-01-15 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251559', 'tblTempVendorCDR_20' ) start [2025-01-15 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251559', 'tblTempVendorCDR_20' ) end [2025-01-15 05:44:18] Production.INFO: ProcessCDR(1,14251559,1,1,2) [2025-01-15 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251559', 'tblTempUsageDetail_20' ) start [2025-01-15 05:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251559', 'tblTempUsageDetail_20' ) end [2025-01-15 05:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:44:23] Production.INFO: ==13704== Releasing lock... [2025-01-15 05:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:44:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:45:05 [end_date_ymd] => 2025-01-15 05:45:05 [RateCDR] => 1 ) [2025-01-15 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:45:05' and `end` < '2025-01-15 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:45:17] Production.INFO: count ==38 [2025-01-15 05:45:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:45:05 - End Time 2025-01-15 05:45:05 [2025-01-15 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251564', 'tblTempUsageDetail_20' ) start [2025-01-15 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251564', 'tblTempUsageDetail_20' ) end [2025-01-15 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251564', 'tblTempVendorCDR_20' ) start [2025-01-15 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251564', 'tblTempVendorCDR_20' ) end [2025-01-15 05:45:17] Production.INFO: ProcessCDR(1,14251564,1,1,2) [2025-01-15 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251564', 'tblTempUsageDetail_20' ) start [2025-01-15 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251564', 'tblTempUsageDetail_20' ) end [2025-01-15 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:45:20] Production.INFO: ==13774== Releasing lock... [2025-01-15 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:45:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:46:06 [end_date_ymd] => 2025-01-15 05:46:06 [RateCDR] => 1 ) [2025-01-15 05:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:46:06' and `end` < '2025-01-15 05:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:46:18] Production.INFO: count ==38 [2025-01-15 05:46:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:46:06 - End Time 2025-01-15 05:46:06 [2025-01-15 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251569', 'tblTempUsageDetail_20' ) start [2025-01-15 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251569', 'tblTempUsageDetail_20' ) end [2025-01-15 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251569', 'tblTempVendorCDR_20' ) start [2025-01-15 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251569', 'tblTempVendorCDR_20' ) end [2025-01-15 05:46:18] Production.INFO: ProcessCDR(1,14251569,1,1,2) [2025-01-15 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251569', 'tblTempUsageDetail_20' ) start [2025-01-15 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251569', 'tblTempUsageDetail_20' ) end [2025-01-15 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:46:21] Production.INFO: ==13847== Releasing lock... [2025-01-15 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:46:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:47:05 [end_date_ymd] => 2025-01-15 05:47:05 [RateCDR] => 1 ) [2025-01-15 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:47:05' and `end` < '2025-01-15 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:47:17] Production.INFO: count ==38 [2025-01-15 05:47:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:47:05 - End Time 2025-01-15 05:47:05 [2025-01-15 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251574', 'tblTempUsageDetail_20' ) start [2025-01-15 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251574', 'tblTempUsageDetail_20' ) end [2025-01-15 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251574', 'tblTempVendorCDR_20' ) start [2025-01-15 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251574', 'tblTempVendorCDR_20' ) end [2025-01-15 05:47:17] Production.INFO: ProcessCDR(1,14251574,1,1,2) [2025-01-15 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251574', 'tblTempUsageDetail_20' ) start [2025-01-15 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251574', 'tblTempUsageDetail_20' ) end [2025-01-15 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:47:21] Production.INFO: ==13924== Releasing lock... [2025-01-15 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:47:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:48:05 [end_date_ymd] => 2025-01-15 05:48:05 [RateCDR] => 1 ) [2025-01-15 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:48:05' and `end` < '2025-01-15 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:48:18] Production.INFO: count ==38 [2025-01-15 05:48:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:48:05 - End Time 2025-01-15 05:48:05 [2025-01-15 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251576', 'tblTempUsageDetail_20' ) start [2025-01-15 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251576', 'tblTempUsageDetail_20' ) end [2025-01-15 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251576', 'tblTempVendorCDR_20' ) start [2025-01-15 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251576', 'tblTempVendorCDR_20' ) end [2025-01-15 05:48:18] Production.INFO: ProcessCDR(1,14251576,1,1,2) [2025-01-15 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251576', 'tblTempUsageDetail_20' ) start [2025-01-15 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251576', 'tblTempUsageDetail_20' ) end [2025-01-15 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:48:21] Production.INFO: ==13995== Releasing lock... [2025-01-15 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:48:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:49:06 [end_date_ymd] => 2025-01-15 05:49:06 [RateCDR] => 1 ) [2025-01-15 05:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:49:06' and `end` < '2025-01-15 05:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:49:19] Production.INFO: count ==38 [2025-01-15 05:49:19] Production.ERROR: pbx CDR StartTime 2025-01-15 02:49:06 - End Time 2025-01-15 05:49:06 [2025-01-15 05:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251584', 'tblTempUsageDetail_20' ) start [2025-01-15 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251584', 'tblTempUsageDetail_20' ) end [2025-01-15 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251584', 'tblTempVendorCDR_20' ) start [2025-01-15 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251584', 'tblTempVendorCDR_20' ) end [2025-01-15 05:49:19] Production.INFO: ProcessCDR(1,14251584,1,1,2) [2025-01-15 05:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251584', 'tblTempUsageDetail_20' ) start [2025-01-15 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251584', 'tblTempUsageDetail_20' ) end [2025-01-15 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:49:22] Production.INFO: ==14064== Releasing lock... [2025-01-15 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:49:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:50:06 [end_date_ymd] => 2025-01-15 05:50:06 [RateCDR] => 1 ) [2025-01-15 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:50:06' and `end` < '2025-01-15 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:50:18] Production.INFO: count ==36 [2025-01-15 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:50:06 - End Time 2025-01-15 05:50:06 [2025-01-15 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251590', 'tblTempUsageDetail_20' ) start [2025-01-15 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251590', 'tblTempUsageDetail_20' ) end [2025-01-15 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251590', 'tblTempVendorCDR_20' ) start [2025-01-15 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251590', 'tblTempVendorCDR_20' ) end [2025-01-15 05:50:18] Production.INFO: ProcessCDR(1,14251590,1,1,2) [2025-01-15 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251590', 'tblTempUsageDetail_20' ) start [2025-01-15 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251590', 'tblTempUsageDetail_20' ) end [2025-01-15 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:50:22] Production.INFO: ==14137== Releasing lock... [2025-01-15 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:50:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:51:06 [end_date_ymd] => 2025-01-15 05:51:06 [RateCDR] => 1 ) [2025-01-15 05:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:51:06' and `end` < '2025-01-15 05:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:51:18] Production.INFO: count ==36 [2025-01-15 05:51:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:51:06 - End Time 2025-01-15 05:51:06 [2025-01-15 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251595', 'tblTempUsageDetail_20' ) start [2025-01-15 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251595', 'tblTempUsageDetail_20' ) end [2025-01-15 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251595', 'tblTempVendorCDR_20' ) start [2025-01-15 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251595', 'tblTempVendorCDR_20' ) end [2025-01-15 05:51:18] Production.INFO: ProcessCDR(1,14251595,1,1,2) [2025-01-15 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251595', 'tblTempUsageDetail_20' ) start [2025-01-15 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251595', 'tblTempUsageDetail_20' ) end [2025-01-15 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:51:21] Production.INFO: ==14211== Releasing lock... [2025-01-15 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:51:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:52:05 [end_date_ymd] => 2025-01-15 05:52:05 [RateCDR] => 1 ) [2025-01-15 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:52:05' and `end` < '2025-01-15 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:52:17] Production.INFO: count ==36 [2025-01-15 05:52:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:52:05 - End Time 2025-01-15 05:52:05 [2025-01-15 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251600', 'tblTempUsageDetail_20' ) start [2025-01-15 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251600', 'tblTempUsageDetail_20' ) end [2025-01-15 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251600', 'tblTempVendorCDR_20' ) start [2025-01-15 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251600', 'tblTempVendorCDR_20' ) end [2025-01-15 05:52:17] Production.INFO: ProcessCDR(1,14251600,1,1,2) [2025-01-15 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251600', 'tblTempUsageDetail_20' ) start [2025-01-15 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251600', 'tblTempUsageDetail_20' ) end [2025-01-15 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:52:21] Production.INFO: ==14280== Releasing lock... [2025-01-15 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:52:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:53:05 [end_date_ymd] => 2025-01-15 05:53:05 [RateCDR] => 1 ) [2025-01-15 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:53:05' and `end` < '2025-01-15 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:53:17] Production.INFO: count ==36 [2025-01-15 05:53:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:53:05 - End Time 2025-01-15 05:53:05 [2025-01-15 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251605', 'tblTempUsageDetail_20' ) start [2025-01-15 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251605', 'tblTempUsageDetail_20' ) end [2025-01-15 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251605', 'tblTempVendorCDR_20' ) start [2025-01-15 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251605', 'tblTempVendorCDR_20' ) end [2025-01-15 05:53:17] Production.INFO: ProcessCDR(1,14251605,1,1,2) [2025-01-15 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251605', 'tblTempUsageDetail_20' ) start [2025-01-15 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251605', 'tblTempUsageDetail_20' ) end [2025-01-15 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:53:21] Production.INFO: ==14351== Releasing lock... [2025-01-15 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:53:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:54:05 [end_date_ymd] => 2025-01-15 05:54:05 [RateCDR] => 1 ) [2025-01-15 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:54:05' and `end` < '2025-01-15 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:54:17] Production.INFO: count ==36 [2025-01-15 05:54:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:54:05 - End Time 2025-01-15 05:54:05 [2025-01-15 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251610', 'tblTempUsageDetail_20' ) start [2025-01-15 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251610', 'tblTempUsageDetail_20' ) end [2025-01-15 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251610', 'tblTempVendorCDR_20' ) start [2025-01-15 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251610', 'tblTempVendorCDR_20' ) end [2025-01-15 05:54:17] Production.INFO: ProcessCDR(1,14251610,1,1,2) [2025-01-15 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251610', 'tblTempUsageDetail_20' ) start [2025-01-15 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251610', 'tblTempUsageDetail_20' ) end [2025-01-15 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:54:20] Production.INFO: ==14422== Releasing lock... [2025-01-15 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:54:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:55:05 [end_date_ymd] => 2025-01-15 05:55:05 [RateCDR] => 1 ) [2025-01-15 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:55:05' and `end` < '2025-01-15 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:55:18] Production.INFO: count ==36 [2025-01-15 05:55:18] Production.ERROR: pbx CDR StartTime 2025-01-15 02:55:05 - End Time 2025-01-15 05:55:05 [2025-01-15 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251615', 'tblTempUsageDetail_20' ) start [2025-01-15 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251615', 'tblTempUsageDetail_20' ) end [2025-01-15 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251615', 'tblTempVendorCDR_20' ) start [2025-01-15 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251615', 'tblTempVendorCDR_20' ) end [2025-01-15 05:55:18] Production.INFO: ProcessCDR(1,14251615,1,1,2) [2025-01-15 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251615', 'tblTempUsageDetail_20' ) start [2025-01-15 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251615', 'tblTempUsageDetail_20' ) end [2025-01-15 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:55:21] Production.INFO: ==14493== Releasing lock... [2025-01-15 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:55:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:56:04 [end_date_ymd] => 2025-01-15 05:56:04 [RateCDR] => 1 ) [2025-01-15 05:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:56:04' and `end` < '2025-01-15 05:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:56:17] Production.INFO: count ==36 [2025-01-15 05:56:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:56:04 - End Time 2025-01-15 05:56:04 [2025-01-15 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251620', 'tblTempUsageDetail_20' ) start [2025-01-15 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251620', 'tblTempUsageDetail_20' ) end [2025-01-15 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251620', 'tblTempVendorCDR_20' ) start [2025-01-15 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251620', 'tblTempVendorCDR_20' ) end [2025-01-15 05:56:17] Production.INFO: ProcessCDR(1,14251620,1,1,2) [2025-01-15 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251620', 'tblTempUsageDetail_20' ) start [2025-01-15 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251620', 'tblTempUsageDetail_20' ) end [2025-01-15 05:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:56:21] Production.INFO: ==14563== Releasing lock... [2025-01-15 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:56:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:57:05 [end_date_ymd] => 2025-01-15 05:57:05 [RateCDR] => 1 ) [2025-01-15 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:57:05' and `end` < '2025-01-15 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:57:17] Production.INFO: count ==36 [2025-01-15 05:57:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:57:05 - End Time 2025-01-15 05:57:05 [2025-01-15 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251625', 'tblTempUsageDetail_20' ) start [2025-01-15 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251625', 'tblTempUsageDetail_20' ) end [2025-01-15 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251625', 'tblTempVendorCDR_20' ) start [2025-01-15 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251625', 'tblTempVendorCDR_20' ) end [2025-01-15 05:57:17] Production.INFO: ProcessCDR(1,14251625,1,1,2) [2025-01-15 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251625', 'tblTempUsageDetail_20' ) start [2025-01-15 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251625', 'tblTempUsageDetail_20' ) end [2025-01-15 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:57:20] Production.INFO: ==14672== Releasing lock... [2025-01-15 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:57:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:58:04 [end_date_ymd] => 2025-01-15 05:58:04 [RateCDR] => 1 ) [2025-01-15 05:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:58:04' and `end` < '2025-01-15 05:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:58:17] Production.INFO: count ==36 [2025-01-15 05:58:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:58:04 - End Time 2025-01-15 05:58:04 [2025-01-15 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251630', 'tblTempUsageDetail_20' ) start [2025-01-15 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251630', 'tblTempUsageDetail_20' ) end [2025-01-15 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251630', 'tblTempVendorCDR_20' ) start [2025-01-15 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251630', 'tblTempVendorCDR_20' ) end [2025-01-15 05:58:17] Production.INFO: ProcessCDR(1,14251630,1,1,2) [2025-01-15 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251630', 'tblTempUsageDetail_20' ) start [2025-01-15 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251630', 'tblTempUsageDetail_20' ) end [2025-01-15 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:58:20] Production.INFO: ==14741== Releasing lock... [2025-01-15 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:58:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 02:59:05 [end_date_ymd] => 2025-01-15 05:59:05 [RateCDR] => 1 ) [2025-01-15 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 02:59:05' and `end` < '2025-01-15 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 05:59:17] Production.INFO: count ==36 [2025-01-15 05:59:17] Production.ERROR: pbx CDR StartTime 2025-01-15 02:59:05 - End Time 2025-01-15 05:59:05 [2025-01-15 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251635', 'tblTempUsageDetail_20' ) start [2025-01-15 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251635', 'tblTempUsageDetail_20' ) end [2025-01-15 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251635', 'tblTempVendorCDR_20' ) start [2025-01-15 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251635', 'tblTempVendorCDR_20' ) end [2025-01-15 05:59:17] Production.INFO: ProcessCDR(1,14251635,1,1,2) [2025-01-15 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251635', 'tblTempUsageDetail_20' ) start [2025-01-15 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251635', 'tblTempUsageDetail_20' ) end [2025-01-15 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 05:59:21] Production.INFO: ==14813== Releasing lock... [2025-01-15 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 05:59:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:00:06 [end_date_ymd] => 2025-01-15 06:00:06 [RateCDR] => 1 ) [2025-01-15 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:00:06' and `end` < '2025-01-15 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:00:18] Production.INFO: count ==34 [2025-01-15 06:00:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:00:06 - End Time 2025-01-15 06:00:06 [2025-01-15 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251640', 'tblTempUsageDetail_20' ) start [2025-01-15 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251640', 'tblTempUsageDetail_20' ) end [2025-01-15 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251640', 'tblTempVendorCDR_20' ) start [2025-01-15 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251640', 'tblTempVendorCDR_20' ) end [2025-01-15 06:00:18] Production.INFO: ProcessCDR(1,14251640,1,1,2) [2025-01-15 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251640', 'tblTempUsageDetail_20' ) start [2025-01-15 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251640', 'tblTempUsageDetail_20' ) end [2025-01-15 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:00:21] Production.INFO: ==14891== Releasing lock... [2025-01-15 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:00:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:01:04 [end_date_ymd] => 2025-01-15 06:01:04 [RateCDR] => 1 ) [2025-01-15 06:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:01:04' and `end` < '2025-01-15 06:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:01:17] Production.INFO: count ==34 [2025-01-15 06:01:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:01:04 - End Time 2025-01-15 06:01:04 [2025-01-15 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251646', 'tblTempUsageDetail_20' ) start [2025-01-15 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251646', 'tblTempUsageDetail_20' ) end [2025-01-15 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251646', 'tblTempVendorCDR_20' ) start [2025-01-15 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251646', 'tblTempVendorCDR_20' ) end [2025-01-15 06:01:17] Production.INFO: ProcessCDR(1,14251646,1,1,2) [2025-01-15 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251646', 'tblTempUsageDetail_20' ) start [2025-01-15 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251646', 'tblTempUsageDetail_20' ) end [2025-01-15 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:01:20] Production.INFO: ==14976== Releasing lock... [2025-01-15 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:01:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:02:05 [end_date_ymd] => 2025-01-15 06:02:05 [RateCDR] => 1 ) [2025-01-15 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:02:05' and `end` < '2025-01-15 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:02:17] Production.INFO: count ==34 [2025-01-15 06:02:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:02:05 - End Time 2025-01-15 06:02:05 [2025-01-15 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251651', 'tblTempUsageDetail_20' ) start [2025-01-15 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251651', 'tblTempUsageDetail_20' ) end [2025-01-15 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251651', 'tblTempVendorCDR_20' ) start [2025-01-15 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251651', 'tblTempVendorCDR_20' ) end [2025-01-15 06:02:17] Production.INFO: ProcessCDR(1,14251651,1,1,2) [2025-01-15 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251651', 'tblTempUsageDetail_20' ) start [2025-01-15 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251651', 'tblTempUsageDetail_20' ) end [2025-01-15 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:02:21] Production.INFO: ==15048== Releasing lock... [2025-01-15 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:02:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:03:05 [end_date_ymd] => 2025-01-15 06:03:05 [RateCDR] => 1 ) [2025-01-15 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:03:05' and `end` < '2025-01-15 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:03:17] Production.INFO: count ==34 [2025-01-15 06:03:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:03:05 - End Time 2025-01-15 06:03:05 [2025-01-15 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251656', 'tblTempUsageDetail_20' ) start [2025-01-15 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251656', 'tblTempUsageDetail_20' ) end [2025-01-15 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251656', 'tblTempVendorCDR_20' ) start [2025-01-15 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251656', 'tblTempVendorCDR_20' ) end [2025-01-15 06:03:17] Production.INFO: ProcessCDR(1,14251656,1,1,2) [2025-01-15 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251656', 'tblTempUsageDetail_20' ) start [2025-01-15 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251656', 'tblTempUsageDetail_20' ) end [2025-01-15 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:03:20] Production.INFO: ==15119== Releasing lock... [2025-01-15 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:03:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:04:05 [end_date_ymd] => 2025-01-15 06:04:05 [RateCDR] => 1 ) [2025-01-15 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:04:05' and `end` < '2025-01-15 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:04:17] Production.INFO: count ==34 [2025-01-15 06:04:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:04:05 - End Time 2025-01-15 06:04:05 [2025-01-15 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251661', 'tblTempUsageDetail_20' ) start [2025-01-15 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251661', 'tblTempUsageDetail_20' ) end [2025-01-15 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251661', 'tblTempVendorCDR_20' ) start [2025-01-15 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251661', 'tblTempVendorCDR_20' ) end [2025-01-15 06:04:17] Production.INFO: ProcessCDR(1,14251661,1,1,2) [2025-01-15 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251661', 'tblTempUsageDetail_20' ) start [2025-01-15 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251661', 'tblTempUsageDetail_20' ) end [2025-01-15 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:04:21] Production.INFO: ==15188== Releasing lock... [2025-01-15 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:04:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:05:05 [end_date_ymd] => 2025-01-15 06:05:05 [RateCDR] => 1 ) [2025-01-15 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:05:05' and `end` < '2025-01-15 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:05:18] Production.INFO: count ==34 [2025-01-15 06:05:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:05:05 - End Time 2025-01-15 06:05:05 [2025-01-15 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251666', 'tblTempUsageDetail_20' ) start [2025-01-15 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251666', 'tblTempUsageDetail_20' ) end [2025-01-15 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251666', 'tblTempVendorCDR_20' ) start [2025-01-15 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251666', 'tblTempVendorCDR_20' ) end [2025-01-15 06:05:18] Production.INFO: ProcessCDR(1,14251666,1,1,2) [2025-01-15 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251666', 'tblTempUsageDetail_20' ) start [2025-01-15 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251666', 'tblTempUsageDetail_20' ) end [2025-01-15 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:05:21] Production.INFO: ==15260== Releasing lock... [2025-01-15 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:05:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:06:06 [end_date_ymd] => 2025-01-15 06:06:06 [RateCDR] => 1 ) [2025-01-15 06:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:06:06' and `end` < '2025-01-15 06:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:06:18] Production.INFO: count ==34 [2025-01-15 06:06:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:06:06 - End Time 2025-01-15 06:06:06 [2025-01-15 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251671', 'tblTempUsageDetail_20' ) start [2025-01-15 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251671', 'tblTempUsageDetail_20' ) end [2025-01-15 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251671', 'tblTempVendorCDR_20' ) start [2025-01-15 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251671', 'tblTempVendorCDR_20' ) end [2025-01-15 06:06:18] Production.INFO: ProcessCDR(1,14251671,1,1,2) [2025-01-15 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251671', 'tblTempUsageDetail_20' ) start [2025-01-15 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251671', 'tblTempUsageDetail_20' ) end [2025-01-15 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:06:21] Production.INFO: ==15331== Releasing lock... [2025-01-15 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:06:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:07:05 [end_date_ymd] => 2025-01-15 06:07:05 [RateCDR] => 1 ) [2025-01-15 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:07:05' and `end` < '2025-01-15 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:07:17] Production.INFO: count ==34 [2025-01-15 06:07:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:07:05 - End Time 2025-01-15 06:07:05 [2025-01-15 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251676', 'tblTempUsageDetail_20' ) start [2025-01-15 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251676', 'tblTempUsageDetail_20' ) end [2025-01-15 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251676', 'tblTempVendorCDR_20' ) start [2025-01-15 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251676', 'tblTempVendorCDR_20' ) end [2025-01-15 06:07:17] Production.INFO: ProcessCDR(1,14251676,1,1,2) [2025-01-15 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251676', 'tblTempUsageDetail_20' ) start [2025-01-15 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251676', 'tblTempUsageDetail_20' ) end [2025-01-15 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:07:21] Production.INFO: ==15402== Releasing lock... [2025-01-15 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:07:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:08:05 [end_date_ymd] => 2025-01-15 06:08:05 [RateCDR] => 1 ) [2025-01-15 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:08:05' and `end` < '2025-01-15 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:08:18] Production.INFO: count ==34 [2025-01-15 06:08:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:08:05 - End Time 2025-01-15 06:08:05 [2025-01-15 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251681', 'tblTempUsageDetail_20' ) start [2025-01-15 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251681', 'tblTempUsageDetail_20' ) end [2025-01-15 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251681', 'tblTempVendorCDR_20' ) start [2025-01-15 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251681', 'tblTempVendorCDR_20' ) end [2025-01-15 06:08:18] Production.INFO: ProcessCDR(1,14251681,1,1,2) [2025-01-15 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251681', 'tblTempUsageDetail_20' ) start [2025-01-15 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251681', 'tblTempUsageDetail_20' ) end [2025-01-15 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:08:21] Production.INFO: ==15471== Releasing lock... [2025-01-15 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:08:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:09:05 [end_date_ymd] => 2025-01-15 06:09:05 [RateCDR] => 1 ) [2025-01-15 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:09:05' and `end` < '2025-01-15 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:09:17] Production.INFO: count ==34 [2025-01-15 06:09:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:09:05 - End Time 2025-01-15 06:09:05 [2025-01-15 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251686', 'tblTempUsageDetail_20' ) start [2025-01-15 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251686', 'tblTempUsageDetail_20' ) end [2025-01-15 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251686', 'tblTempVendorCDR_20' ) start [2025-01-15 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251686', 'tblTempVendorCDR_20' ) end [2025-01-15 06:09:17] Production.INFO: ProcessCDR(1,14251686,1,1,2) [2025-01-15 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251686', 'tblTempUsageDetail_20' ) start [2025-01-15 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251686', 'tblTempUsageDetail_20' ) end [2025-01-15 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:09:21] Production.INFO: ==15540== Releasing lock... [2025-01-15 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:09:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:10:05 [end_date_ymd] => 2025-01-15 06:10:05 [RateCDR] => 1 ) [2025-01-15 06:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:10:05' and `end` < '2025-01-15 06:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:10:18] Production.INFO: count ==32 [2025-01-15 06:10:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:10:05 - End Time 2025-01-15 06:10:05 [2025-01-15 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251692', 'tblTempUsageDetail_20' ) start [2025-01-15 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251692', 'tblTempUsageDetail_20' ) end [2025-01-15 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251692', 'tblTempVendorCDR_20' ) start [2025-01-15 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251692', 'tblTempVendorCDR_20' ) end [2025-01-15 06:10:18] Production.INFO: ProcessCDR(1,14251692,1,1,2) [2025-01-15 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251692', 'tblTempUsageDetail_20' ) start [2025-01-15 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251692', 'tblTempUsageDetail_20' ) end [2025-01-15 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:10:21] Production.INFO: ==15615== Releasing lock... [2025-01-15 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:10:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:11:04 [end_date_ymd] => 2025-01-15 06:11:04 [RateCDR] => 1 ) [2025-01-15 06:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:11:04' and `end` < '2025-01-15 06:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:11:16] Production.INFO: count ==32 [2025-01-15 06:11:16] Production.ERROR: pbx CDR StartTime 2025-01-15 03:11:04 - End Time 2025-01-15 06:11:04 [2025-01-15 06:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251697', 'tblTempUsageDetail_20' ) start [2025-01-15 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251697', 'tblTempUsageDetail_20' ) end [2025-01-15 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251697', 'tblTempVendorCDR_20' ) start [2025-01-15 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251697', 'tblTempVendorCDR_20' ) end [2025-01-15 06:11:16] Production.INFO: ProcessCDR(1,14251697,1,1,2) [2025-01-15 06:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251697', 'tblTempUsageDetail_20' ) start [2025-01-15 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251697', 'tblTempUsageDetail_20' ) end [2025-01-15 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:11:20] Production.INFO: ==15687== Releasing lock... [2025-01-15 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:11:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:12:05 [end_date_ymd] => 2025-01-15 06:12:05 [RateCDR] => 1 ) [2025-01-15 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:12:05' and `end` < '2025-01-15 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:12:18] Production.INFO: count ==32 [2025-01-15 06:12:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:12:05 - End Time 2025-01-15 06:12:05 [2025-01-15 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251702', 'tblTempUsageDetail_20' ) start [2025-01-15 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251702', 'tblTempUsageDetail_20' ) end [2025-01-15 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251702', 'tblTempVendorCDR_20' ) start [2025-01-15 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251702', 'tblTempVendorCDR_20' ) end [2025-01-15 06:12:18] Production.INFO: ProcessCDR(1,14251702,1,1,2) [2025-01-15 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251702', 'tblTempUsageDetail_20' ) start [2025-01-15 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251702', 'tblTempUsageDetail_20' ) end [2025-01-15 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:12:21] Production.INFO: ==15761== Releasing lock... [2025-01-15 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:12:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:13:04 [end_date_ymd] => 2025-01-15 06:13:04 [RateCDR] => 1 ) [2025-01-15 06:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:13:04' and `end` < '2025-01-15 06:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:13:16] Production.INFO: count ==32 [2025-01-15 06:13:16] Production.ERROR: pbx CDR StartTime 2025-01-15 03:13:04 - End Time 2025-01-15 06:13:04 [2025-01-15 06:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251707', 'tblTempUsageDetail_20' ) start [2025-01-15 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251707', 'tblTempUsageDetail_20' ) end [2025-01-15 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251707', 'tblTempVendorCDR_20' ) start [2025-01-15 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251707', 'tblTempVendorCDR_20' ) end [2025-01-15 06:13:16] Production.INFO: ProcessCDR(1,14251707,1,1,2) [2025-01-15 06:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251707', 'tblTempUsageDetail_20' ) start [2025-01-15 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251707', 'tblTempUsageDetail_20' ) end [2025-01-15 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:13:20] Production.INFO: ==15872== Releasing lock... [2025-01-15 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:13:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:14:05 [end_date_ymd] => 2025-01-15 06:14:05 [RateCDR] => 1 ) [2025-01-15 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:14:05' and `end` < '2025-01-15 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:14:18] Production.INFO: count ==32 [2025-01-15 06:14:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:14:05 - End Time 2025-01-15 06:14:05 [2025-01-15 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251712', 'tblTempUsageDetail_20' ) start [2025-01-15 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251712', 'tblTempUsageDetail_20' ) end [2025-01-15 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251712', 'tblTempVendorCDR_20' ) start [2025-01-15 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251712', 'tblTempVendorCDR_20' ) end [2025-01-15 06:14:18] Production.INFO: ProcessCDR(1,14251712,1,1,2) [2025-01-15 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251712', 'tblTempUsageDetail_20' ) start [2025-01-15 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251712', 'tblTempUsageDetail_20' ) end [2025-01-15 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:14:22] Production.INFO: ==15948== Releasing lock... [2025-01-15 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:14:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:15:06 [end_date_ymd] => 2025-01-15 06:15:06 [RateCDR] => 1 ) [2025-01-15 06:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:15:06' and `end` < '2025-01-15 06:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:15:18] Production.INFO: count ==32 [2025-01-15 06:15:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:15:06 - End Time 2025-01-15 06:15:06 [2025-01-15 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251717', 'tblTempUsageDetail_20' ) start [2025-01-15 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251717', 'tblTempUsageDetail_20' ) end [2025-01-15 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251717', 'tblTempVendorCDR_20' ) start [2025-01-15 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251717', 'tblTempVendorCDR_20' ) end [2025-01-15 06:15:18] Production.INFO: ProcessCDR(1,14251717,1,1,2) [2025-01-15 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251717', 'tblTempUsageDetail_20' ) start [2025-01-15 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251717', 'tblTempUsageDetail_20' ) end [2025-01-15 06:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:15:22] Production.INFO: ==16023== Releasing lock... [2025-01-15 06:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:15:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:16:05 [end_date_ymd] => 2025-01-15 06:16:05 [RateCDR] => 1 ) [2025-01-15 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:16:05' and `end` < '2025-01-15 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:16:17] Production.INFO: count ==32 [2025-01-15 06:16:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:16:05 - End Time 2025-01-15 06:16:05 [2025-01-15 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251722', 'tblTempUsageDetail_20' ) start [2025-01-15 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251722', 'tblTempUsageDetail_20' ) end [2025-01-15 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251722', 'tblTempVendorCDR_20' ) start [2025-01-15 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251722', 'tblTempVendorCDR_20' ) end [2025-01-15 06:16:17] Production.INFO: ProcessCDR(1,14251722,1,1,2) [2025-01-15 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251722', 'tblTempUsageDetail_20' ) start [2025-01-15 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251722', 'tblTempUsageDetail_20' ) end [2025-01-15 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:16:21] Production.INFO: ==16093== Releasing lock... [2025-01-15 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:16:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:17:05 [end_date_ymd] => 2025-01-15 06:17:05 [RateCDR] => 1 ) [2025-01-15 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:17:05' and `end` < '2025-01-15 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:17:18] Production.INFO: count ==32 [2025-01-15 06:17:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:17:05 - End Time 2025-01-15 06:17:05 [2025-01-15 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251727', 'tblTempUsageDetail_20' ) start [2025-01-15 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251727', 'tblTempUsageDetail_20' ) end [2025-01-15 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251727', 'tblTempVendorCDR_20' ) start [2025-01-15 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251727', 'tblTempVendorCDR_20' ) end [2025-01-15 06:17:18] Production.INFO: ProcessCDR(1,14251727,1,1,2) [2025-01-15 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251727', 'tblTempUsageDetail_20' ) start [2025-01-15 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251727', 'tblTempUsageDetail_20' ) end [2025-01-15 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:17:22] Production.INFO: ==16164== Releasing lock... [2025-01-15 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:17:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:18:05 [end_date_ymd] => 2025-01-15 06:18:05 [RateCDR] => 1 ) [2025-01-15 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:18:05' and `end` < '2025-01-15 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:18:18] Production.INFO: count ==32 [2025-01-15 06:18:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:18:05 - End Time 2025-01-15 06:18:05 [2025-01-15 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251732', 'tblTempUsageDetail_20' ) start [2025-01-15 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251732', 'tblTempUsageDetail_20' ) end [2025-01-15 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251732', 'tblTempVendorCDR_20' ) start [2025-01-15 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251732', 'tblTempVendorCDR_20' ) end [2025-01-15 06:18:18] Production.INFO: ProcessCDR(1,14251732,1,1,2) [2025-01-15 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251732', 'tblTempUsageDetail_20' ) start [2025-01-15 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251732', 'tblTempUsageDetail_20' ) end [2025-01-15 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:18:21] Production.INFO: ==16235== Releasing lock... [2025-01-15 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:18:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:19:05 [end_date_ymd] => 2025-01-15 06:19:05 [RateCDR] => 1 ) [2025-01-15 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:19:05' and `end` < '2025-01-15 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:19:17] Production.INFO: count ==32 [2025-01-15 06:19:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:19:05 - End Time 2025-01-15 06:19:05 [2025-01-15 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251737', 'tblTempUsageDetail_20' ) start [2025-01-15 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251737', 'tblTempUsageDetail_20' ) end [2025-01-15 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251737', 'tblTempVendorCDR_20' ) start [2025-01-15 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251737', 'tblTempVendorCDR_20' ) end [2025-01-15 06:19:17] Production.INFO: ProcessCDR(1,14251737,1,1,2) [2025-01-15 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251737', 'tblTempUsageDetail_20' ) start [2025-01-15 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251737', 'tblTempUsageDetail_20' ) end [2025-01-15 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:19:21] Production.INFO: ==16305== Releasing lock... [2025-01-15 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:19:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:20:06 [end_date_ymd] => 2025-01-15 06:20:06 [RateCDR] => 1 ) [2025-01-15 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:20:06' and `end` < '2025-01-15 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:20:18] Production.INFO: count ==30 [2025-01-15 06:20:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:20:06 - End Time 2025-01-15 06:20:06 [2025-01-15 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251743', 'tblTempUsageDetail_20' ) start [2025-01-15 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251743', 'tblTempUsageDetail_20' ) end [2025-01-15 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251743', 'tblTempVendorCDR_20' ) start [2025-01-15 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251743', 'tblTempVendorCDR_20' ) end [2025-01-15 06:20:18] Production.INFO: ProcessCDR(1,14251743,1,1,2) [2025-01-15 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251743', 'tblTempUsageDetail_20' ) start [2025-01-15 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251743', 'tblTempUsageDetail_20' ) end [2025-01-15 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:20:22] Production.INFO: ==16379== Releasing lock... [2025-01-15 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:20:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:21:05 [end_date_ymd] => 2025-01-15 06:21:05 [RateCDR] => 1 ) [2025-01-15 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:21:05' and `end` < '2025-01-15 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:21:17] Production.INFO: count ==30 [2025-01-15 06:21:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:21:05 - End Time 2025-01-15 06:21:05 [2025-01-15 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251748', 'tblTempUsageDetail_20' ) start [2025-01-15 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251748', 'tblTempUsageDetail_20' ) end [2025-01-15 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251748', 'tblTempVendorCDR_20' ) start [2025-01-15 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251748', 'tblTempVendorCDR_20' ) end [2025-01-15 06:21:17] Production.INFO: ProcessCDR(1,14251748,1,1,2) [2025-01-15 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251748', 'tblTempUsageDetail_20' ) start [2025-01-15 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251748', 'tblTempUsageDetail_20' ) end [2025-01-15 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:21:21] Production.INFO: ==16453== Releasing lock... [2025-01-15 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:21:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:22:05 [end_date_ymd] => 2025-01-15 06:22:05 [RateCDR] => 1 ) [2025-01-15 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:22:05' and `end` < '2025-01-15 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:22:17] Production.INFO: count ==30 [2025-01-15 06:22:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:22:05 - End Time 2025-01-15 06:22:05 [2025-01-15 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251753', 'tblTempUsageDetail_20' ) start [2025-01-15 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251753', 'tblTempUsageDetail_20' ) end [2025-01-15 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251753', 'tblTempVendorCDR_20' ) start [2025-01-15 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251753', 'tblTempVendorCDR_20' ) end [2025-01-15 06:22:17] Production.INFO: ProcessCDR(1,14251753,1,1,2) [2025-01-15 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251753', 'tblTempUsageDetail_20' ) start [2025-01-15 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251753', 'tblTempUsageDetail_20' ) end [2025-01-15 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:22:21] Production.INFO: ==16522== Releasing lock... [2025-01-15 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:22:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:23:05 [end_date_ymd] => 2025-01-15 06:23:05 [RateCDR] => 1 ) [2025-01-15 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:23:05' and `end` < '2025-01-15 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:23:17] Production.INFO: count ==30 [2025-01-15 06:23:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:23:05 - End Time 2025-01-15 06:23:05 [2025-01-15 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251758', 'tblTempUsageDetail_20' ) start [2025-01-15 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251758', 'tblTempUsageDetail_20' ) end [2025-01-15 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251758', 'tblTempVendorCDR_20' ) start [2025-01-15 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251758', 'tblTempVendorCDR_20' ) end [2025-01-15 06:23:17] Production.INFO: ProcessCDR(1,14251758,1,1,2) [2025-01-15 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251758', 'tblTempUsageDetail_20' ) start [2025-01-15 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251758', 'tblTempUsageDetail_20' ) end [2025-01-15 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:23:21] Production.INFO: ==16594== Releasing lock... [2025-01-15 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:23:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:24:05 [end_date_ymd] => 2025-01-15 06:24:05 [RateCDR] => 1 ) [2025-01-15 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:24:05' and `end` < '2025-01-15 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:24:17] Production.INFO: count ==30 [2025-01-15 06:24:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:24:05 - End Time 2025-01-15 06:24:05 [2025-01-15 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251763', 'tblTempUsageDetail_20' ) start [2025-01-15 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251763', 'tblTempUsageDetail_20' ) end [2025-01-15 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251763', 'tblTempVendorCDR_20' ) start [2025-01-15 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251763', 'tblTempVendorCDR_20' ) end [2025-01-15 06:24:17] Production.INFO: ProcessCDR(1,14251763,1,1,2) [2025-01-15 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251763', 'tblTempUsageDetail_20' ) start [2025-01-15 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251763', 'tblTempUsageDetail_20' ) end [2025-01-15 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:24:21] Production.INFO: ==16664== Releasing lock... [2025-01-15 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:24:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:25:05 [end_date_ymd] => 2025-01-15 06:25:05 [RateCDR] => 1 ) [2025-01-15 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:25:05' and `end` < '2025-01-15 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:25:17] Production.INFO: count ==30 [2025-01-15 06:25:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:25:05 - End Time 2025-01-15 06:25:05 [2025-01-15 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251768', 'tblTempUsageDetail_20' ) start [2025-01-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251768', 'tblTempUsageDetail_20' ) end [2025-01-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251768', 'tblTempVendorCDR_20' ) start [2025-01-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251768', 'tblTempVendorCDR_20' ) end [2025-01-15 06:25:17] Production.INFO: ProcessCDR(1,14251768,1,1,2) [2025-01-15 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251768', 'tblTempUsageDetail_20' ) start [2025-01-15 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251768', 'tblTempUsageDetail_20' ) end [2025-01-15 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:25:21] Production.INFO: ==16734== Releasing lock... [2025-01-15 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:25:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:26:04 [end_date_ymd] => 2025-01-15 06:26:04 [RateCDR] => 1 ) [2025-01-15 06:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:26:04' and `end` < '2025-01-15 06:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:26:16] Production.INFO: count ==30 [2025-01-15 06:26:16] Production.ERROR: pbx CDR StartTime 2025-01-15 03:26:04 - End Time 2025-01-15 06:26:04 [2025-01-15 06:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251773', 'tblTempUsageDetail_20' ) start [2025-01-15 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251773', 'tblTempUsageDetail_20' ) end [2025-01-15 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251773', 'tblTempVendorCDR_20' ) start [2025-01-15 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251773', 'tblTempVendorCDR_20' ) end [2025-01-15 06:26:16] Production.INFO: ProcessCDR(1,14251773,1,1,2) [2025-01-15 06:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251773', 'tblTempUsageDetail_20' ) start [2025-01-15 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251773', 'tblTempUsageDetail_20' ) end [2025-01-15 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:26:20] Production.INFO: ==16805== Releasing lock... [2025-01-15 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:26:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:27:05 [end_date_ymd] => 2025-01-15 06:27:05 [RateCDR] => 1 ) [2025-01-15 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:27:05' and `end` < '2025-01-15 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:27:18] Production.INFO: count ==30 [2025-01-15 06:27:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:27:05 - End Time 2025-01-15 06:27:05 [2025-01-15 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251778', 'tblTempUsageDetail_20' ) start [2025-01-15 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251778', 'tblTempUsageDetail_20' ) end [2025-01-15 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251778', 'tblTempVendorCDR_20' ) start [2025-01-15 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251778', 'tblTempVendorCDR_20' ) end [2025-01-15 06:27:18] Production.INFO: ProcessCDR(1,14251778,1,1,2) [2025-01-15 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251778', 'tblTempUsageDetail_20' ) start [2025-01-15 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251778', 'tblTempUsageDetail_20' ) end [2025-01-15 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:27:21] Production.INFO: ==16876== Releasing lock... [2025-01-15 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:27:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:28:05 [end_date_ymd] => 2025-01-15 06:28:05 [RateCDR] => 1 ) [2025-01-15 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:28:05' and `end` < '2025-01-15 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:28:17] Production.INFO: count ==30 [2025-01-15 06:28:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:28:05 - End Time 2025-01-15 06:28:05 [2025-01-15 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251783', 'tblTempUsageDetail_20' ) start [2025-01-15 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251783', 'tblTempUsageDetail_20' ) end [2025-01-15 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251783', 'tblTempVendorCDR_20' ) start [2025-01-15 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251783', 'tblTempVendorCDR_20' ) end [2025-01-15 06:28:17] Production.INFO: ProcessCDR(1,14251783,1,1,2) [2025-01-15 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251783', 'tblTempUsageDetail_20' ) start [2025-01-15 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251783', 'tblTempUsageDetail_20' ) end [2025-01-15 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:28:20] Production.INFO: ==16992== Releasing lock... [2025-01-15 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:28:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:29:05 [end_date_ymd] => 2025-01-15 06:29:05 [RateCDR] => 1 ) [2025-01-15 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:29:05' and `end` < '2025-01-15 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:29:18] Production.INFO: count ==30 [2025-01-15 06:29:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:29:05 - End Time 2025-01-15 06:29:05 [2025-01-15 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251788', 'tblTempUsageDetail_20' ) start [2025-01-15 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251788', 'tblTempUsageDetail_20' ) end [2025-01-15 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251788', 'tblTempVendorCDR_20' ) start [2025-01-15 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251788', 'tblTempVendorCDR_20' ) end [2025-01-15 06:29:18] Production.INFO: ProcessCDR(1,14251788,1,1,2) [2025-01-15 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251788', 'tblTempUsageDetail_20' ) start [2025-01-15 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251788', 'tblTempUsageDetail_20' ) end [2025-01-15 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:29:21] Production.INFO: ==17064== Releasing lock... [2025-01-15 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:29:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:30:06 [end_date_ymd] => 2025-01-15 06:30:06 [RateCDR] => 1 ) [2025-01-15 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:30:06' and `end` < '2025-01-15 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:30:19] Production.INFO: count ==30 [2025-01-15 06:30:19] Production.ERROR: pbx CDR StartTime 2025-01-15 03:30:06 - End Time 2025-01-15 06:30:06 [2025-01-15 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251794', 'tblTempUsageDetail_20' ) start [2025-01-15 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251794', 'tblTempUsageDetail_20' ) end [2025-01-15 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251794', 'tblTempVendorCDR_20' ) start [2025-01-15 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251794', 'tblTempVendorCDR_20' ) end [2025-01-15 06:30:19] Production.INFO: ProcessCDR(1,14251794,1,1,2) [2025-01-15 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251794', 'tblTempUsageDetail_20' ) start [2025-01-15 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251794', 'tblTempUsageDetail_20' ) end [2025-01-15 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:30:22] Production.INFO: ==17137== Releasing lock... [2025-01-15 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:30:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:31:05 [end_date_ymd] => 2025-01-15 06:31:05 [RateCDR] => 1 ) [2025-01-15 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:31:05' and `end` < '2025-01-15 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:31:17] Production.INFO: count ==30 [2025-01-15 06:31:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:31:05 - End Time 2025-01-15 06:31:05 [2025-01-15 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251799', 'tblTempUsageDetail_20' ) start [2025-01-15 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251799', 'tblTempUsageDetail_20' ) end [2025-01-15 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251799', 'tblTempVendorCDR_20' ) start [2025-01-15 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251799', 'tblTempVendorCDR_20' ) end [2025-01-15 06:31:17] Production.INFO: ProcessCDR(1,14251799,1,1,2) [2025-01-15 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251799', 'tblTempUsageDetail_20' ) start [2025-01-15 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251799', 'tblTempUsageDetail_20' ) end [2025-01-15 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:31:21] Production.INFO: ==17212== Releasing lock... [2025-01-15 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:31:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:32:06 [end_date_ymd] => 2025-01-15 06:32:06 [RateCDR] => 1 ) [2025-01-15 06:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:32:06' and `end` < '2025-01-15 06:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:32:18] Production.INFO: count ==30 [2025-01-15 06:32:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:32:06 - End Time 2025-01-15 06:32:06 [2025-01-15 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251804', 'tblTempUsageDetail_20' ) start [2025-01-15 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251804', 'tblTempUsageDetail_20' ) end [2025-01-15 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251804', 'tblTempVendorCDR_20' ) start [2025-01-15 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251804', 'tblTempVendorCDR_20' ) end [2025-01-15 06:32:18] Production.INFO: ProcessCDR(1,14251804,1,1,2) [2025-01-15 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251804', 'tblTempUsageDetail_20' ) start [2025-01-15 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251804', 'tblTempUsageDetail_20' ) end [2025-01-15 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:32:22] Production.INFO: ==17283== Releasing lock... [2025-01-15 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:32:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:33:05 [end_date_ymd] => 2025-01-15 06:33:05 [RateCDR] => 1 ) [2025-01-15 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:33:05' and `end` < '2025-01-15 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:33:18] Production.INFO: count ==31 [2025-01-15 06:33:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:33:05 - End Time 2025-01-15 06:33:05 [2025-01-15 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251807', 'tblTempUsageDetail_20' ) start [2025-01-15 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251807', 'tblTempUsageDetail_20' ) end [2025-01-15 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251807', 'tblTempVendorCDR_20' ) start [2025-01-15 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251807', 'tblTempVendorCDR_20' ) end [2025-01-15 06:33:18] Production.INFO: ProcessCDR(1,14251807,1,1,2) [2025-01-15 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251807', 'tblTempUsageDetail_20' ) start [2025-01-15 06:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251807', 'tblTempUsageDetail_20' ) end [2025-01-15 06:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:33:23] Production.INFO: ==17351== Releasing lock... [2025-01-15 06:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:33:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:34:05 [end_date_ymd] => 2025-01-15 06:34:05 [RateCDR] => 1 ) [2025-01-15 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:34:05' and `end` < '2025-01-15 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:34:18] Production.INFO: count ==31 [2025-01-15 06:34:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:34:05 - End Time 2025-01-15 06:34:05 [2025-01-15 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251814', 'tblTempUsageDetail_20' ) start [2025-01-15 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251814', 'tblTempUsageDetail_20' ) end [2025-01-15 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251814', 'tblTempVendorCDR_20' ) start [2025-01-15 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251814', 'tblTempVendorCDR_20' ) end [2025-01-15 06:34:18] Production.INFO: ProcessCDR(1,14251814,1,1,2) [2025-01-15 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251814', 'tblTempUsageDetail_20' ) start [2025-01-15 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251814', 'tblTempUsageDetail_20' ) end [2025-01-15 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:34:22] Production.INFO: ==17420== Releasing lock... [2025-01-15 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:34:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:35:05 [end_date_ymd] => 2025-01-15 06:35:05 [RateCDR] => 1 ) [2025-01-15 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:35:05' and `end` < '2025-01-15 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:35:18] Production.INFO: count ==31 [2025-01-15 06:35:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:35:05 - End Time 2025-01-15 06:35:05 [2025-01-15 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251819', 'tblTempUsageDetail_20' ) start [2025-01-15 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251819', 'tblTempUsageDetail_20' ) end [2025-01-15 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251819', 'tblTempVendorCDR_20' ) start [2025-01-15 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251819', 'tblTempVendorCDR_20' ) end [2025-01-15 06:35:18] Production.INFO: ProcessCDR(1,14251819,1,1,2) [2025-01-15 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251819', 'tblTempUsageDetail_20' ) start [2025-01-15 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251819', 'tblTempUsageDetail_20' ) end [2025-01-15 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:35:21] Production.INFO: ==17490== Releasing lock... [2025-01-15 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:35:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:36:05 [end_date_ymd] => 2025-01-15 06:36:05 [RateCDR] => 1 ) [2025-01-15 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:36:05' and `end` < '2025-01-15 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:36:17] Production.INFO: count ==31 [2025-01-15 06:36:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:36:05 - End Time 2025-01-15 06:36:05 [2025-01-15 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251824', 'tblTempUsageDetail_20' ) start [2025-01-15 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251824', 'tblTempUsageDetail_20' ) end [2025-01-15 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251824', 'tblTempVendorCDR_20' ) start [2025-01-15 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251824', 'tblTempVendorCDR_20' ) end [2025-01-15 06:36:17] Production.INFO: ProcessCDR(1,14251824,1,1,2) [2025-01-15 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251824', 'tblTempUsageDetail_20' ) start [2025-01-15 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251824', 'tblTempUsageDetail_20' ) end [2025-01-15 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:36:21] Production.INFO: ==17562== Releasing lock... [2025-01-15 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:36:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:37:04 [end_date_ymd] => 2025-01-15 06:37:04 [RateCDR] => 1 ) [2025-01-15 06:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:37:04' and `end` < '2025-01-15 06:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:37:17] Production.INFO: count ==31 [2025-01-15 06:37:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:37:04 - End Time 2025-01-15 06:37:04 [2025-01-15 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251829', 'tblTempUsageDetail_20' ) start [2025-01-15 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251829', 'tblTempUsageDetail_20' ) end [2025-01-15 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251829', 'tblTempVendorCDR_20' ) start [2025-01-15 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251829', 'tblTempVendorCDR_20' ) end [2025-01-15 06:37:17] Production.INFO: ProcessCDR(1,14251829,1,1,2) [2025-01-15 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251829', 'tblTempUsageDetail_20' ) start [2025-01-15 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251829', 'tblTempUsageDetail_20' ) end [2025-01-15 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:37:20] Production.INFO: ==17632== Releasing lock... [2025-01-15 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:37:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:38:05 [end_date_ymd] => 2025-01-15 06:38:05 [RateCDR] => 1 ) [2025-01-15 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:38:05' and `end` < '2025-01-15 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:38:17] Production.INFO: count ==31 [2025-01-15 06:38:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:38:05 - End Time 2025-01-15 06:38:05 [2025-01-15 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251834', 'tblTempUsageDetail_20' ) start [2025-01-15 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251834', 'tblTempUsageDetail_20' ) end [2025-01-15 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251834', 'tblTempVendorCDR_20' ) start [2025-01-15 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251834', 'tblTempVendorCDR_20' ) end [2025-01-15 06:38:17] Production.INFO: ProcessCDR(1,14251834,1,1,2) [2025-01-15 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251834', 'tblTempUsageDetail_20' ) start [2025-01-15 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251834', 'tblTempUsageDetail_20' ) end [2025-01-15 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:38:21] Production.INFO: ==17703== Releasing lock... [2025-01-15 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:38:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:39:04 [end_date_ymd] => 2025-01-15 06:39:04 [RateCDR] => 1 ) [2025-01-15 06:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:39:04' and `end` < '2025-01-15 06:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:39:17] Production.INFO: count ==31 [2025-01-15 06:39:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:39:04 - End Time 2025-01-15 06:39:04 [2025-01-15 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251839', 'tblTempUsageDetail_20' ) start [2025-01-15 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251839', 'tblTempUsageDetail_20' ) end [2025-01-15 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251839', 'tblTempVendorCDR_20' ) start [2025-01-15 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251839', 'tblTempVendorCDR_20' ) end [2025-01-15 06:39:17] Production.INFO: ProcessCDR(1,14251839,1,1,2) [2025-01-15 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251839', 'tblTempUsageDetail_20' ) start [2025-01-15 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251839', 'tblTempUsageDetail_20' ) end [2025-01-15 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:39:20] Production.INFO: ==17776== Releasing lock... [2025-01-15 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:39:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:40:05 [end_date_ymd] => 2025-01-15 06:40:05 [RateCDR] => 1 ) [2025-01-15 06:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:40:05' and `end` < '2025-01-15 06:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:40:18] Production.INFO: count ==27 [2025-01-15 06:40:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:40:05 - End Time 2025-01-15 06:40:05 [2025-01-15 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251844', 'tblTempUsageDetail_20' ) start [2025-01-15 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251844', 'tblTempUsageDetail_20' ) end [2025-01-15 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251844', 'tblTempVendorCDR_20' ) start [2025-01-15 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251844', 'tblTempVendorCDR_20' ) end [2025-01-15 06:40:18] Production.INFO: ProcessCDR(1,14251844,1,1,2) [2025-01-15 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251844', 'tblTempUsageDetail_20' ) start [2025-01-15 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251844', 'tblTempUsageDetail_20' ) end [2025-01-15 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:40:21] Production.INFO: ==17848== Releasing lock... [2025-01-15 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:40:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:41:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:41:07 [end_date_ymd] => 2025-01-15 06:41:07 [RateCDR] => 1 ) [2025-01-15 06:41:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:41:07' and `end` < '2025-01-15 06:41:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:41:19] Production.INFO: count ==23 [2025-01-15 06:41:19] Production.ERROR: pbx CDR StartTime 2025-01-15 03:41:07 - End Time 2025-01-15 06:41:07 [2025-01-15 06:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251850', 'tblTempUsageDetail_20' ) start [2025-01-15 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251850', 'tblTempUsageDetail_20' ) end [2025-01-15 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251850', 'tblTempVendorCDR_20' ) start [2025-01-15 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251850', 'tblTempVendorCDR_20' ) end [2025-01-15 06:41:19] Production.INFO: ProcessCDR(1,14251850,1,1,2) [2025-01-15 06:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251850', 'tblTempUsageDetail_20' ) start [2025-01-15 06:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251850', 'tblTempUsageDetail_20' ) end [2025-01-15 06:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:41:23] Production.INFO: ==17921== Releasing lock... [2025-01-15 06:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:41:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:42:05 [end_date_ymd] => 2025-01-15 06:42:05 [RateCDR] => 1 ) [2025-01-15 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:42:05' and `end` < '2025-01-15 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:42:17] Production.INFO: count ==23 [2025-01-15 06:42:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:42:05 - End Time 2025-01-15 06:42:05 [2025-01-15 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251855', 'tblTempUsageDetail_20' ) start [2025-01-15 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251855', 'tblTempUsageDetail_20' ) end [2025-01-15 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251855', 'tblTempVendorCDR_20' ) start [2025-01-15 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251855', 'tblTempVendorCDR_20' ) end [2025-01-15 06:42:17] Production.INFO: ProcessCDR(1,14251855,1,1,2) [2025-01-15 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251855', 'tblTempUsageDetail_20' ) start [2025-01-15 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251855', 'tblTempUsageDetail_20' ) end [2025-01-15 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:42:21] Production.INFO: ==17998== Releasing lock... [2025-01-15 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:42:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:43:06 [end_date_ymd] => 2025-01-15 06:43:06 [RateCDR] => 1 ) [2025-01-15 06:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:43:06' and `end` < '2025-01-15 06:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:43:18] Production.INFO: count ==23 [2025-01-15 06:43:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:43:06 - End Time 2025-01-15 06:43:06 [2025-01-15 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251860', 'tblTempUsageDetail_20' ) start [2025-01-15 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251860', 'tblTempUsageDetail_20' ) end [2025-01-15 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251860', 'tblTempVendorCDR_20' ) start [2025-01-15 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251860', 'tblTempVendorCDR_20' ) end [2025-01-15 06:43:18] Production.INFO: ProcessCDR(1,14251860,1,1,2) [2025-01-15 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251860', 'tblTempUsageDetail_20' ) start [2025-01-15 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251860', 'tblTempUsageDetail_20' ) end [2025-01-15 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:43:22] Production.INFO: ==18070== Releasing lock... [2025-01-15 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:43:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:44:05 [end_date_ymd] => 2025-01-15 06:44:05 [RateCDR] => 1 ) [2025-01-15 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:44:05' and `end` < '2025-01-15 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:44:17] Production.INFO: count ==23 [2025-01-15 06:44:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:44:05 - End Time 2025-01-15 06:44:05 [2025-01-15 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251865', 'tblTempUsageDetail_20' ) start [2025-01-15 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251865', 'tblTempUsageDetail_20' ) end [2025-01-15 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251865', 'tblTempVendorCDR_20' ) start [2025-01-15 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251865', 'tblTempVendorCDR_20' ) end [2025-01-15 06:44:17] Production.INFO: ProcessCDR(1,14251865,1,1,2) [2025-01-15 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251865', 'tblTempUsageDetail_20' ) start [2025-01-15 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251865', 'tblTempUsageDetail_20' ) end [2025-01-15 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:44:21] Production.INFO: ==18182== Releasing lock... [2025-01-15 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:44:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:45:05 [end_date_ymd] => 2025-01-15 06:45:05 [RateCDR] => 1 ) [2025-01-15 06: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-01-15 03:45:05' and `end` < '2025-01-15 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:45:18] Production.INFO: count ==23 [2025-01-15 06:45:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:45:05 - End Time 2025-01-15 06:45:05 [2025-01-15 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251870', 'tblTempUsageDetail_20' ) start [2025-01-15 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251870', 'tblTempUsageDetail_20' ) end [2025-01-15 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251870', 'tblTempVendorCDR_20' ) start [2025-01-15 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251870', 'tblTempVendorCDR_20' ) end [2025-01-15 06:45:18] Production.INFO: ProcessCDR(1,14251870,1,1,2) [2025-01-15 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251870', 'tblTempUsageDetail_20' ) start [2025-01-15 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251870', 'tblTempUsageDetail_20' ) end [2025-01-15 06:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:45:22] Production.INFO: ==18251== Releasing lock... [2025-01-15 06:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:45:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:46:05 [end_date_ymd] => 2025-01-15 06:46:05 [RateCDR] => 1 ) [2025-01-15 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:46:05' and `end` < '2025-01-15 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:46:18] Production.INFO: count ==23 [2025-01-15 06:46:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:46:05 - End Time 2025-01-15 06:46:05 [2025-01-15 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251875', 'tblTempUsageDetail_20' ) start [2025-01-15 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251875', 'tblTempUsageDetail_20' ) end [2025-01-15 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251875', 'tblTempVendorCDR_20' ) start [2025-01-15 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251875', 'tblTempVendorCDR_20' ) end [2025-01-15 06:46:18] Production.INFO: ProcessCDR(1,14251875,1,1,2) [2025-01-15 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251875', 'tblTempUsageDetail_20' ) start [2025-01-15 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251875', 'tblTempUsageDetail_20' ) end [2025-01-15 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:46:21] Production.INFO: ==18321== Releasing lock... [2025-01-15 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:46:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:47:05 [end_date_ymd] => 2025-01-15 06:47:05 [RateCDR] => 1 ) [2025-01-15 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:47:05' and `end` < '2025-01-15 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:47:18] Production.INFO: count ==23 [2025-01-15 06:47:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:47:05 - End Time 2025-01-15 06:47:05 [2025-01-15 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251880', 'tblTempUsageDetail_20' ) start [2025-01-15 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251880', 'tblTempUsageDetail_20' ) end [2025-01-15 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251880', 'tblTempVendorCDR_20' ) start [2025-01-15 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251880', 'tblTempVendorCDR_20' ) end [2025-01-15 06:47:18] Production.INFO: ProcessCDR(1,14251880,1,1,2) [2025-01-15 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251880', 'tblTempUsageDetail_20' ) start [2025-01-15 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251880', 'tblTempUsageDetail_20' ) end [2025-01-15 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:47:21] Production.INFO: ==18393== Releasing lock... [2025-01-15 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:47:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:48:05 [end_date_ymd] => 2025-01-15 06:48:05 [RateCDR] => 1 ) [2025-01-15 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:48:05' and `end` < '2025-01-15 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:48:18] Production.INFO: count ==23 [2025-01-15 06:48:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:48:05 - End Time 2025-01-15 06:48:05 [2025-01-15 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251885', 'tblTempUsageDetail_20' ) start [2025-01-15 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251885', 'tblTempUsageDetail_20' ) end [2025-01-15 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251885', 'tblTempVendorCDR_20' ) start [2025-01-15 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251885', 'tblTempVendorCDR_20' ) end [2025-01-15 06:48:18] Production.INFO: ProcessCDR(1,14251885,1,1,2) [2025-01-15 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251885', 'tblTempUsageDetail_20' ) start [2025-01-15 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251885', 'tblTempUsageDetail_20' ) end [2025-01-15 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:48:21] Production.INFO: ==18464== Releasing lock... [2025-01-15 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:48:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:49:05 [end_date_ymd] => 2025-01-15 06:49:05 [RateCDR] => 1 ) [2025-01-15 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:49:05' and `end` < '2025-01-15 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:49:18] Production.INFO: count ==23 [2025-01-15 06:49:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:49:05 - End Time 2025-01-15 06:49:05 [2025-01-15 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251890', 'tblTempUsageDetail_20' ) start [2025-01-15 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251890', 'tblTempUsageDetail_20' ) end [2025-01-15 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251890', 'tblTempVendorCDR_20' ) start [2025-01-15 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251890', 'tblTempVendorCDR_20' ) end [2025-01-15 06:49:18] Production.INFO: ProcessCDR(1,14251890,1,1,2) [2025-01-15 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251890', 'tblTempUsageDetail_20' ) start [2025-01-15 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251890', 'tblTempUsageDetail_20' ) end [2025-01-15 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:49:21] Production.INFO: ==18536== Releasing lock... [2025-01-15 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:49:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:50:06 [end_date_ymd] => 2025-01-15 06:50:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 03:50:06' and `end` < '2025-01-15 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-01-15 06:50:19] Production.INFO: count ==19 [2025-01-15 06:50:19] Production.ERROR: pbx CDR StartTime 2025-01-15 03:50:06 - End Time 2025-01-15 06:50:06 [2025-01-15 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251896', 'tblTempUsageDetail_20' ) start [2025-01-15 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251896', 'tblTempUsageDetail_20' ) end [2025-01-15 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251896', 'tblTempVendorCDR_20' ) start [2025-01-15 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251896', 'tblTempVendorCDR_20' ) end [2025-01-15 06:50:19] Production.INFO: ProcessCDR(1,14251896,1,1,2) [2025-01-15 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251896', 'tblTempUsageDetail_20' ) start [2025-01-15 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251896', 'tblTempUsageDetail_20' ) end [2025-01-15 06:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:50:23] Production.INFO: ==18622== Releasing lock... [2025-01-15 06:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:50:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:51:05 [end_date_ymd] => 2025-01-15 06:51:05 [RateCDR] => 1 ) [2025-01-15 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:51:05' and `end` < '2025-01-15 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:51:18] Production.INFO: count ==19 [2025-01-15 06:51:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:51:05 - End Time 2025-01-15 06:51:05 [2025-01-15 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251901', 'tblTempUsageDetail_20' ) start [2025-01-15 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251901', 'tblTempUsageDetail_20' ) end [2025-01-15 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251901', 'tblTempVendorCDR_20' ) start [2025-01-15 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251901', 'tblTempVendorCDR_20' ) end [2025-01-15 06:51:18] Production.INFO: ProcessCDR(1,14251901,1,1,2) [2025-01-15 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251901', 'tblTempUsageDetail_20' ) start [2025-01-15 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251901', 'tblTempUsageDetail_20' ) end [2025-01-15 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:51:21] Production.INFO: ==18711== Releasing lock... [2025-01-15 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:51:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:52:06 [end_date_ymd] => 2025-01-15 06:52:06 [RateCDR] => 1 ) [2025-01-15 06:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:52:06' and `end` < '2025-01-15 06:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:52:18] Production.INFO: count ==19 [2025-01-15 06:52:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:52:06 - End Time 2025-01-15 06:52:06 [2025-01-15 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251906', 'tblTempUsageDetail_20' ) start [2025-01-15 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251906', 'tblTempUsageDetail_20' ) end [2025-01-15 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251906', 'tblTempVendorCDR_20' ) start [2025-01-15 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251906', 'tblTempVendorCDR_20' ) end [2025-01-15 06:52:18] Production.INFO: ProcessCDR(1,14251906,1,1,2) [2025-01-15 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251906', 'tblTempUsageDetail_20' ) start [2025-01-15 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251906', 'tblTempUsageDetail_20' ) end [2025-01-15 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:52:21] Production.INFO: ==18801== Releasing lock... [2025-01-15 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:52:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:53:05 [end_date_ymd] => 2025-01-15 06:53:05 [RateCDR] => 1 ) [2025-01-15 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:53:05' and `end` < '2025-01-15 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:53:18] Production.INFO: count ==19 [2025-01-15 06:53:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:53:05 - End Time 2025-01-15 06:53:05 [2025-01-15 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251911', 'tblTempUsageDetail_20' ) start [2025-01-15 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251911', 'tblTempUsageDetail_20' ) end [2025-01-15 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251911', 'tblTempVendorCDR_20' ) start [2025-01-15 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251911', 'tblTempVendorCDR_20' ) end [2025-01-15 06:53:18] Production.INFO: ProcessCDR(1,14251911,1,1,2) [2025-01-15 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251911', 'tblTempUsageDetail_20' ) start [2025-01-15 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251911', 'tblTempUsageDetail_20' ) end [2025-01-15 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:53:22] Production.INFO: ==18889== Releasing lock... [2025-01-15 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:53:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:54:06 [end_date_ymd] => 2025-01-15 06:54:06 [RateCDR] => 1 ) [2025-01-15 06:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:54:06' and `end` < '2025-01-15 06:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:54:18] Production.INFO: count ==19 [2025-01-15 06:54:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:54:06 - End Time 2025-01-15 06:54:06 [2025-01-15 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251916', 'tblTempUsageDetail_20' ) start [2025-01-15 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251916', 'tblTempUsageDetail_20' ) end [2025-01-15 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251916', 'tblTempVendorCDR_20' ) start [2025-01-15 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251916', 'tblTempVendorCDR_20' ) end [2025-01-15 06:54:18] Production.INFO: ProcessCDR(1,14251916,1,1,2) [2025-01-15 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251916', 'tblTempUsageDetail_20' ) start [2025-01-15 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251916', 'tblTempUsageDetail_20' ) end [2025-01-15 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:54:22] Production.INFO: ==18973== Releasing lock... [2025-01-15 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:54:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:55:05 [end_date_ymd] => 2025-01-15 06:55:05 [RateCDR] => 1 ) [2025-01-15 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:55:05' and `end` < '2025-01-15 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:55:17] Production.INFO: count ==19 [2025-01-15 06:55:17] Production.ERROR: pbx CDR StartTime 2025-01-15 03:55:05 - End Time 2025-01-15 06:55:05 [2025-01-15 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251921', 'tblTempUsageDetail_20' ) start [2025-01-15 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251921', 'tblTempUsageDetail_20' ) end [2025-01-15 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251921', 'tblTempVendorCDR_20' ) start [2025-01-15 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251921', 'tblTempVendorCDR_20' ) end [2025-01-15 06:55:17] Production.INFO: ProcessCDR(1,14251921,1,1,2) [2025-01-15 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251921', 'tblTempUsageDetail_20' ) start [2025-01-15 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251921', 'tblTempUsageDetail_20' ) end [2025-01-15 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:55:20] Production.INFO: ==19043== Releasing lock... [2025-01-15 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:55:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:56:05 [end_date_ymd] => 2025-01-15 06:56:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 03:56:05' and `end` < '2025-01-15 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:56:18] Production.INFO: count ==19 [2025-01-15 06:56:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:56:05 - End Time 2025-01-15 06:56:05 [2025-01-15 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251926', 'tblTempUsageDetail_20' ) start [2025-01-15 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251926', 'tblTempUsageDetail_20' ) end [2025-01-15 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251926', 'tblTempVendorCDR_20' ) start [2025-01-15 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251926', 'tblTempVendorCDR_20' ) end [2025-01-15 06:56:18] Production.INFO: ProcessCDR(1,14251926,1,1,2) [2025-01-15 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251926', 'tblTempUsageDetail_20' ) start [2025-01-15 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251926', 'tblTempUsageDetail_20' ) end [2025-01-15 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:56:22] Production.INFO: ==19120== Releasing lock... [2025-01-15 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:56:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:57:05 [end_date_ymd] => 2025-01-15 06:57:05 [RateCDR] => 1 ) [2025-01-15 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:57:05' and `end` < '2025-01-15 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:57:18] Production.INFO: count ==19 [2025-01-15 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:57:05 - End Time 2025-01-15 06:57:05 [2025-01-15 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251931', 'tblTempUsageDetail_20' ) start [2025-01-15 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251931', 'tblTempUsageDetail_20' ) end [2025-01-15 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251931', 'tblTempVendorCDR_20' ) start [2025-01-15 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251931', 'tblTempVendorCDR_20' ) end [2025-01-15 06:57:18] Production.INFO: ProcessCDR(1,14251931,1,1,2) [2025-01-15 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251931', 'tblTempUsageDetail_20' ) start [2025-01-15 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251931', 'tblTempUsageDetail_20' ) end [2025-01-15 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:57:21] Production.INFO: ==19192== Releasing lock... [2025-01-15 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:57:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:58:06 [end_date_ymd] => 2025-01-15 06:58:06 [RateCDR] => 1 ) [2025-01-15 06:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:58:06' and `end` < '2025-01-15 06:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:58:18] Production.INFO: count ==19 [2025-01-15 06:58:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:58:06 - End Time 2025-01-15 06:58:06 [2025-01-15 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251936', 'tblTempUsageDetail_20' ) start [2025-01-15 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251936', 'tblTempUsageDetail_20' ) end [2025-01-15 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251936', 'tblTempVendorCDR_20' ) start [2025-01-15 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251936', 'tblTempVendorCDR_20' ) end [2025-01-15 06:58:18] Production.INFO: ProcessCDR(1,14251936,1,1,2) [2025-01-15 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251936', 'tblTempUsageDetail_20' ) start [2025-01-15 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251936', 'tblTempUsageDetail_20' ) end [2025-01-15 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:58:21] Production.INFO: ==19263== Releasing lock... [2025-01-15 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:58:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 03:59:05 [end_date_ymd] => 2025-01-15 06:59:05 [RateCDR] => 1 ) [2025-01-15 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 03:59:05' and `end` < '2025-01-15 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 06:59:18] Production.INFO: count ==19 [2025-01-15 06:59:18] Production.ERROR: pbx CDR StartTime 2025-01-15 03:59:05 - End Time 2025-01-15 06:59:05 [2025-01-15 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251941', 'tblTempUsageDetail_20' ) start [2025-01-15 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251941', 'tblTempUsageDetail_20' ) end [2025-01-15 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251941', 'tblTempVendorCDR_20' ) start [2025-01-15 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251941', 'tblTempVendorCDR_20' ) end [2025-01-15 06:59:18] Production.INFO: ProcessCDR(1,14251941,1,1,2) [2025-01-15 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251941', 'tblTempUsageDetail_20' ) start [2025-01-15 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251941', 'tblTempUsageDetail_20' ) end [2025-01-15 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 06:59:21] Production.INFO: ==19333== Releasing lock... [2025-01-15 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 06:59:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:00:06 [end_date_ymd] => 2025-01-15 07:00:06 [RateCDR] => 1 ) [2025-01-15 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:00:06' and `end` < '2025-01-15 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:00:18] Production.INFO: count ==17 [2025-01-15 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:00:06 - End Time 2025-01-15 07:00:06 [2025-01-15 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251947', 'tblTempUsageDetail_20' ) start [2025-01-15 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251947', 'tblTempUsageDetail_20' ) end [2025-01-15 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251947', 'tblTempVendorCDR_20' ) start [2025-01-15 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251947', 'tblTempVendorCDR_20' ) end [2025-01-15 07:00:18] Production.INFO: ProcessCDR(1,14251947,1,1,2) [2025-01-15 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251947', 'tblTempUsageDetail_20' ) start [2025-01-15 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251947', 'tblTempUsageDetail_20' ) end [2025-01-15 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:00:22] Production.INFO: ==19444== Releasing lock... [2025-01-15 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:00:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:01:05 [end_date_ymd] => 2025-01-15 07:01:05 [RateCDR] => 1 ) [2025-01-15 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:01:05' and `end` < '2025-01-15 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:02:23] Production.INFO: count ==17 [2025-01-15 07:02:23] Production.ERROR: pbx CDR StartTime 2025-01-15 04:01:05 - End Time 2025-01-15 07:01:05 [2025-01-15 07:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251952', 'tblTempUsageDetail_20' ) start [2025-01-15 07:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251952', 'tblTempUsageDetail_20' ) end [2025-01-15 07:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251952', 'tblTempVendorCDR_20' ) start [2025-01-15 07:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251952', 'tblTempVendorCDR_20' ) end [2025-01-15 07:02:23] Production.INFO: ProcessCDR(1,14251952,1,1,2) [2025-01-15 07:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251952', 'tblTempUsageDetail_20' ) start [2025-01-15 07:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251952', 'tblTempUsageDetail_20' ) end [2025-01-15 07:02:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:02:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:02:27] Production.INFO: ==19529== Releasing lock... [2025-01-15 07:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:02:27] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:03:05 [end_date_ymd] => 2025-01-15 07:03:05 [RateCDR] => 1 ) [2025-01-15 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:03:05' and `end` < '2025-01-15 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:03:19] Production.INFO: count ==18 [2025-01-15 07:03:19] Production.ERROR: pbx CDR StartTime 2025-01-15 04:03:05 - End Time 2025-01-15 07:03:05 [2025-01-15 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251961', 'tblTempUsageDetail_20' ) start [2025-01-15 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251961', 'tblTempUsageDetail_20' ) end [2025-01-15 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251961', 'tblTempVendorCDR_20' ) start [2025-01-15 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251961', 'tblTempVendorCDR_20' ) end [2025-01-15 07:03:19] Production.INFO: ProcessCDR(1,14251961,1,1,2) [2025-01-15 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251961', 'tblTempUsageDetail_20' ) start [2025-01-15 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251961', 'tblTempUsageDetail_20' ) end [2025-01-15 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:03:22] Production.INFO: ==19746== Releasing lock... [2025-01-15 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:03:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:04:05 [end_date_ymd] => 2025-01-15 07:04:05 [RateCDR] => 1 ) [2025-01-15 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:04:05' and `end` < '2025-01-15 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:04:19] Production.INFO: count ==18 [2025-01-15 07:04:19] Production.ERROR: pbx CDR StartTime 2025-01-15 04:04:05 - End Time 2025-01-15 07:04:05 [2025-01-15 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251966', 'tblTempUsageDetail_20' ) start [2025-01-15 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251966', 'tblTempUsageDetail_20' ) end [2025-01-15 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251966', 'tblTempVendorCDR_20' ) start [2025-01-15 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251966', 'tblTempVendorCDR_20' ) end [2025-01-15 07:04:19] Production.INFO: ProcessCDR(1,14251966,1,1,2) [2025-01-15 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251966', 'tblTempUsageDetail_20' ) start [2025-01-15 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251966', 'tblTempUsageDetail_20' ) end [2025-01-15 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:04:23] Production.INFO: ==19815== Releasing lock... [2025-01-15 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:04:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:05:06 [end_date_ymd] => 2025-01-15 07:05:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 04:05:06' and `end` < '2025-01-15 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-01-15 07:05:19] Production.INFO: count ==18 [2025-01-15 07:05:19] Production.ERROR: pbx CDR StartTime 2025-01-15 04:05:06 - End Time 2025-01-15 07:05:06 [2025-01-15 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251971', 'tblTempUsageDetail_20' ) start [2025-01-15 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251971', 'tblTempUsageDetail_20' ) end [2025-01-15 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251971', 'tblTempVendorCDR_20' ) start [2025-01-15 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251971', 'tblTempVendorCDR_20' ) end [2025-01-15 07:05:19] Production.INFO: ProcessCDR(1,14251971,1,1,2) [2025-01-15 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251971', 'tblTempUsageDetail_20' ) start [2025-01-15 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251971', 'tblTempUsageDetail_20' ) end [2025-01-15 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:05:23] Production.INFO: ==19962== Releasing lock... [2025-01-15 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:05:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:06:05 [end_date_ymd] => 2025-01-15 07:06:05 [RateCDR] => 1 ) [2025-01-15 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:06:05' and `end` < '2025-01-15 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:06:21] Production.INFO: count ==19 [2025-01-15 07:06:21] Production.ERROR: pbx CDR StartTime 2025-01-15 04:06:05 - End Time 2025-01-15 07:06:05 [2025-01-15 07:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251976', 'tblTempUsageDetail_20' ) start [2025-01-15 07:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251976', 'tblTempUsageDetail_20' ) end [2025-01-15 07:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251976', 'tblTempVendorCDR_20' ) start [2025-01-15 07:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251976', 'tblTempVendorCDR_20' ) end [2025-01-15 07:06:21] Production.INFO: ProcessCDR(1,14251976,1,1,2) [2025-01-15 07:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251976', 'tblTempUsageDetail_20' ) start [2025-01-15 07:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251976', 'tblTempUsageDetail_20' ) end [2025-01-15 07:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:06:26] Production.INFO: ==20035== Releasing lock... [2025-01-15 07:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:06:26] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:07:05 [end_date_ymd] => 2025-01-15 07:07:05 [RateCDR] => 1 ) [2025-01-15 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:07:05' and `end` < '2025-01-15 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:07:19] Production.INFO: count ==19 [2025-01-15 07:07:19] Production.ERROR: pbx CDR StartTime 2025-01-15 04:07:05 - End Time 2025-01-15 07:07:05 [2025-01-15 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251981', 'tblTempUsageDetail_20' ) start [2025-01-15 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251981', 'tblTempUsageDetail_20' ) end [2025-01-15 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251981', 'tblTempVendorCDR_20' ) start [2025-01-15 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251981', 'tblTempVendorCDR_20' ) end [2025-01-15 07:07:19] Production.INFO: ProcessCDR(1,14251981,1,1,2) [2025-01-15 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251981', 'tblTempUsageDetail_20' ) start [2025-01-15 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251981', 'tblTempUsageDetail_20' ) end [2025-01-15 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:07:23] Production.INFO: ==20107== Releasing lock... [2025-01-15 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:07:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:08:05 [end_date_ymd] => 2025-01-15 07:08:05 [RateCDR] => 1 ) [2025-01-15 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:08:05' and `end` < '2025-01-15 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:08:18] Production.INFO: count ==19 [2025-01-15 07:08:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:08:05 - End Time 2025-01-15 07:08:05 [2025-01-15 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251985', 'tblTempUsageDetail_20' ) start [2025-01-15 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251985', 'tblTempUsageDetail_20' ) end [2025-01-15 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251985', 'tblTempVendorCDR_20' ) start [2025-01-15 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251985', 'tblTempVendorCDR_20' ) end [2025-01-15 07:08:18] Production.INFO: ProcessCDR(1,14251985,1,1,2) [2025-01-15 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251985', 'tblTempUsageDetail_20' ) start [2025-01-15 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251985', 'tblTempUsageDetail_20' ) end [2025-01-15 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:08:22] Production.INFO: ==20257== Releasing lock... [2025-01-15 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:08:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:09:05 [end_date_ymd] => 2025-01-15 07:09:05 [RateCDR] => 1 ) [2025-01-15 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:09:05' and `end` < '2025-01-15 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:09:18] Production.INFO: count ==19 [2025-01-15 07:09:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:09:05 - End Time 2025-01-15 07:09:05 [2025-01-15 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251991', 'tblTempUsageDetail_20' ) start [2025-01-15 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251991', 'tblTempUsageDetail_20' ) end [2025-01-15 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251991', 'tblTempVendorCDR_20' ) start [2025-01-15 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251991', 'tblTempVendorCDR_20' ) end [2025-01-15 07:09:18] Production.INFO: ProcessCDR(1,14251991,1,1,2) [2025-01-15 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251991', 'tblTempUsageDetail_20' ) start [2025-01-15 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251991', 'tblTempUsageDetail_20' ) end [2025-01-15 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:09:21] Production.INFO: ==20329== Releasing lock... [2025-01-15 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:09:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:10:06 [end_date_ymd] => 2025-01-15 07:10:06 [RateCDR] => 1 ) [2025-01-15 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:10:06' and `end` < '2025-01-15 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:10:20] Production.INFO: count ==17 [2025-01-15 07:10:20] Production.ERROR: pbx CDR StartTime 2025-01-15 04:10:06 - End Time 2025-01-15 07:10:06 [2025-01-15 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251997', 'tblTempUsageDetail_20' ) start [2025-01-15 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14251997', 'tblTempUsageDetail_20' ) end [2025-01-15 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251997', 'tblTempVendorCDR_20' ) start [2025-01-15 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14251997', 'tblTempVendorCDR_20' ) end [2025-01-15 07:10:20] Production.INFO: ProcessCDR(1,14251997,1,1,2) [2025-01-15 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14251997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14251997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14251997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14251997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251997', 'tblTempUsageDetail_20' ) start [2025-01-15 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14251997', 'tblTempUsageDetail_20' ) end [2025-01-15 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:10:23] Production.INFO: ==20405== Releasing lock... [2025-01-15 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:10:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:11:05 [end_date_ymd] => 2025-01-15 07:11:05 [RateCDR] => 1 ) [2025-01-15 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:11:05' and `end` < '2025-01-15 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:11:19] Production.INFO: count ==17 [2025-01-15 07:11:19] Production.ERROR: pbx CDR StartTime 2025-01-15 04:11:05 - End Time 2025-01-15 07:11:05 [2025-01-15 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252002', 'tblTempUsageDetail_20' ) start [2025-01-15 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252002', 'tblTempUsageDetail_20' ) end [2025-01-15 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252002', 'tblTempVendorCDR_20' ) start [2025-01-15 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252002', 'tblTempVendorCDR_20' ) end [2025-01-15 07:11:19] Production.INFO: ProcessCDR(1,14252002,1,1,2) [2025-01-15 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252002', 'tblTempUsageDetail_20' ) start [2025-01-15 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252002', 'tblTempUsageDetail_20' ) end [2025-01-15 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:11:22] Production.INFO: ==20478== Releasing lock... [2025-01-15 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:11:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:12:05 [end_date_ymd] => 2025-01-15 07:12:05 [RateCDR] => 1 ) [2025-01-15 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:12:05' and `end` < '2025-01-15 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:12:19] Production.INFO: count ==17 [2025-01-15 07:12:19] Production.ERROR: pbx CDR StartTime 2025-01-15 04:12:05 - End Time 2025-01-15 07:12:05 [2025-01-15 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252007', 'tblTempUsageDetail_20' ) start [2025-01-15 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252007', 'tblTempUsageDetail_20' ) end [2025-01-15 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252007', 'tblTempVendorCDR_20' ) start [2025-01-15 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252007', 'tblTempVendorCDR_20' ) end [2025-01-15 07:12:19] Production.INFO: ProcessCDR(1,14252007,1,1,2) [2025-01-15 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252007', 'tblTempUsageDetail_20' ) start [2025-01-15 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252007', 'tblTempUsageDetail_20' ) end [2025-01-15 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:12:22] Production.INFO: ==20627== Releasing lock... [2025-01-15 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:12:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:13:05 [end_date_ymd] => 2025-01-15 07:13:05 [RateCDR] => 1 ) [2025-01-15 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:13:05' and `end` < '2025-01-15 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:13:18] Production.INFO: count ==17 [2025-01-15 07:13:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:13:05 - End Time 2025-01-15 07:13:05 [2025-01-15 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252012', 'tblTempUsageDetail_20' ) start [2025-01-15 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252012', 'tblTempUsageDetail_20' ) end [2025-01-15 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252012', 'tblTempVendorCDR_20' ) start [2025-01-15 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252012', 'tblTempVendorCDR_20' ) end [2025-01-15 07:13:18] Production.INFO: ProcessCDR(1,14252012,1,1,2) [2025-01-15 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252012', 'tblTempUsageDetail_20' ) start [2025-01-15 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252012', 'tblTempUsageDetail_20' ) end [2025-01-15 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:13:21] Production.INFO: ==20697== Releasing lock... [2025-01-15 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:13:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:14:05 [end_date_ymd] => 2025-01-15 07:14:05 [RateCDR] => 1 ) [2025-01-15 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:14:05' and `end` < '2025-01-15 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:14:19] Production.INFO: count ==17 [2025-01-15 07:14:19] Production.ERROR: pbx CDR StartTime 2025-01-15 04:14:05 - End Time 2025-01-15 07:14:05 [2025-01-15 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252017', 'tblTempUsageDetail_20' ) start [2025-01-15 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252017', 'tblTempUsageDetail_20' ) end [2025-01-15 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252017', 'tblTempVendorCDR_20' ) start [2025-01-15 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252017', 'tblTempVendorCDR_20' ) end [2025-01-15 07:14:19] Production.INFO: ProcessCDR(1,14252017,1,1,2) [2025-01-15 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252017', 'tblTempUsageDetail_20' ) start [2025-01-15 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252017', 'tblTempUsageDetail_20' ) end [2025-01-15 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:14:23] Production.INFO: ==20768== Releasing lock... [2025-01-15 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:14:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:15:04 [end_date_ymd] => 2025-01-15 07:15:04 [RateCDR] => 1 ) [2025-01-15 07:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:15:04' and `end` < '2025-01-15 07:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:15:18] Production.INFO: count ==17 [2025-01-15 07:15:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:15:04 - End Time 2025-01-15 07:15:04 [2025-01-15 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252022', 'tblTempUsageDetail_20' ) start [2025-01-15 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252022', 'tblTempUsageDetail_20' ) end [2025-01-15 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252022', 'tblTempVendorCDR_20' ) start [2025-01-15 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252022', 'tblTempVendorCDR_20' ) end [2025-01-15 07:15:18] Production.INFO: ProcessCDR(1,14252022,1,1,2) [2025-01-15 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252022', 'tblTempUsageDetail_20' ) start [2025-01-15 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252022', 'tblTempUsageDetail_20' ) end [2025-01-15 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:15:21] Production.INFO: ==20960== Releasing lock... [2025-01-15 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:15:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:16:06 [end_date_ymd] => 2025-01-15 07:16:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 04:16:06' and `end` < '2025-01-15 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-01-15 07:16:20] Production.INFO: count ==17 [2025-01-15 07:16:20] Production.ERROR: pbx CDR StartTime 2025-01-15 04:16:06 - End Time 2025-01-15 07:16:06 [2025-01-15 07:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252027', 'tblTempUsageDetail_20' ) start [2025-01-15 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252027', 'tblTempUsageDetail_20' ) end [2025-01-15 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252027', 'tblTempVendorCDR_20' ) start [2025-01-15 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252027', 'tblTempVendorCDR_20' ) end [2025-01-15 07:16:20] Production.INFO: ProcessCDR(1,14252027,1,1,2) [2025-01-15 07:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252027', 'tblTempUsageDetail_20' ) start [2025-01-15 07:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252027', 'tblTempUsageDetail_20' ) end [2025-01-15 07:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:16:24] Production.INFO: ==21048== Releasing lock... [2025-01-15 07:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:16:24] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:17:05 [end_date_ymd] => 2025-01-15 07:17:05 [RateCDR] => 1 ) [2025-01-15 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:17:05' and `end` < '2025-01-15 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:17:21] Production.INFO: count ==17 [2025-01-15 07:17:21] Production.ERROR: pbx CDR StartTime 2025-01-15 04:17:05 - End Time 2025-01-15 07:17:05 [2025-01-15 07:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252032', 'tblTempUsageDetail_20' ) start [2025-01-15 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252032', 'tblTempUsageDetail_20' ) end [2025-01-15 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252032', 'tblTempVendorCDR_20' ) start [2025-01-15 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252032', 'tblTempVendorCDR_20' ) end [2025-01-15 07:17:21] Production.INFO: ProcessCDR(1,14252032,1,1,2) [2025-01-15 07:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252032', 'tblTempUsageDetail_20' ) start [2025-01-15 07:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252032', 'tblTempUsageDetail_20' ) end [2025-01-15 07:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:17:25] Production.INFO: ==21130== Releasing lock... [2025-01-15 07:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:17:25] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:18:06 [end_date_ymd] => 2025-01-15 07:18:06 [RateCDR] => 1 ) [2025-01-15 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:18:06' and `end` < '2025-01-15 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:18:20] Production.INFO: count ==17 [2025-01-15 07:18:20] Production.ERROR: pbx CDR StartTime 2025-01-15 04:18:06 - End Time 2025-01-15 07:18:06 [2025-01-15 07:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252037', 'tblTempUsageDetail_20' ) start [2025-01-15 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252037', 'tblTempUsageDetail_20' ) end [2025-01-15 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252037', 'tblTempVendorCDR_20' ) start [2025-01-15 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252037', 'tblTempVendorCDR_20' ) end [2025-01-15 07:18:20] Production.INFO: ProcessCDR(1,14252037,1,1,2) [2025-01-15 07:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252037', 'tblTempUsageDetail_20' ) start [2025-01-15 07:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252037', 'tblTempUsageDetail_20' ) end [2025-01-15 07:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:18:24] Production.INFO: ==21209== Releasing lock... [2025-01-15 07:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:18:24] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:19:05 [end_date_ymd] => 2025-01-15 07:19:05 [RateCDR] => 1 ) [2025-01-15 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:19:05' and `end` < '2025-01-15 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:19:18] Production.INFO: count ==20 [2025-01-15 07:19:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:19:05 - End Time 2025-01-15 07:19:05 [2025-01-15 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252042', 'tblTempUsageDetail_20' ) start [2025-01-15 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252042', 'tblTempUsageDetail_20' ) end [2025-01-15 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252042', 'tblTempVendorCDR_20' ) start [2025-01-15 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252042', 'tblTempVendorCDR_20' ) end [2025-01-15 07:19:18] Production.INFO: ProcessCDR(1,14252042,1,1,2) [2025-01-15 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252042', 'tblTempUsageDetail_20' ) start [2025-01-15 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252042', 'tblTempUsageDetail_20' ) end [2025-01-15 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:19:22] Production.INFO: ==21288== Releasing lock... [2025-01-15 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:19:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:20:07 [end_date_ymd] => 2025-01-15 07:20:07 [RateCDR] => 1 ) [2025-01-15 07:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:20:07' and `end` < '2025-01-15 07:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:20:20] Production.INFO: count ==18 [2025-01-15 07:20:20] Production.ERROR: pbx CDR StartTime 2025-01-15 04:20:07 - End Time 2025-01-15 07:20:07 [2025-01-15 07:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252048', 'tblTempUsageDetail_20' ) start [2025-01-15 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252048', 'tblTempUsageDetail_20' ) end [2025-01-15 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252048', 'tblTempVendorCDR_20' ) start [2025-01-15 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252048', 'tblTempVendorCDR_20' ) end [2025-01-15 07:20:20] Production.INFO: ProcessCDR(1,14252048,1,1,2) [2025-01-15 07:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252048', 'tblTempUsageDetail_20' ) start [2025-01-15 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252048', 'tblTempUsageDetail_20' ) end [2025-01-15 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:20:23] Production.INFO: ==21369== Releasing lock... [2025-01-15 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:20:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:21:05 [end_date_ymd] => 2025-01-15 07:21:05 [RateCDR] => 1 ) [2025-01-15 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:21:05' and `end` < '2025-01-15 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:21:20] Production.INFO: count ==18 [2025-01-15 07:21:20] Production.ERROR: pbx CDR StartTime 2025-01-15 04:21:05 - End Time 2025-01-15 07:21:05 [2025-01-15 07:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252053', 'tblTempUsageDetail_20' ) start [2025-01-15 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252053', 'tblTempUsageDetail_20' ) end [2025-01-15 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252053', 'tblTempVendorCDR_20' ) start [2025-01-15 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252053', 'tblTempVendorCDR_20' ) end [2025-01-15 07:21:20] Production.INFO: ProcessCDR(1,14252053,1,1,2) [2025-01-15 07:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252053', 'tblTempUsageDetail_20' ) start [2025-01-15 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252053', 'tblTempUsageDetail_20' ) end [2025-01-15 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:21:23] Production.INFO: ==21451== Releasing lock... [2025-01-15 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:21:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:22:05 [end_date_ymd] => 2025-01-15 07:22:05 [RateCDR] => 1 ) [2025-01-15 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:22:05' and `end` < '2025-01-15 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:22:19] Production.INFO: count ==18 [2025-01-15 07:22:19] Production.ERROR: pbx CDR StartTime 2025-01-15 04:22:05 - End Time 2025-01-15 07:22:05 [2025-01-15 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252058', 'tblTempUsageDetail_20' ) start [2025-01-15 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252058', 'tblTempUsageDetail_20' ) end [2025-01-15 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252058', 'tblTempVendorCDR_20' ) start [2025-01-15 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252058', 'tblTempVendorCDR_20' ) end [2025-01-15 07:22:19] Production.INFO: ProcessCDR(1,14252058,1,1,2) [2025-01-15 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252058', 'tblTempUsageDetail_20' ) start [2025-01-15 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252058', 'tblTempUsageDetail_20' ) end [2025-01-15 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:22:22] Production.INFO: ==21529== Releasing lock... [2025-01-15 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:22:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:23:05 [end_date_ymd] => 2025-01-15 07:23:05 [RateCDR] => 1 ) [2025-01-15 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:23:05' and `end` < '2025-01-15 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:23:17] Production.INFO: count ==18 [2025-01-15 07:23:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:23:05 - End Time 2025-01-15 07:23:05 [2025-01-15 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252063', 'tblTempUsageDetail_20' ) start [2025-01-15 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252063', 'tblTempUsageDetail_20' ) end [2025-01-15 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252063', 'tblTempVendorCDR_20' ) start [2025-01-15 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252063', 'tblTempVendorCDR_20' ) end [2025-01-15 07:23:17] Production.INFO: ProcessCDR(1,14252063,1,1,2) [2025-01-15 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252063', 'tblTempUsageDetail_20' ) start [2025-01-15 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252063', 'tblTempUsageDetail_20' ) end [2025-01-15 07:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:23:20] Production.INFO: ==21601== Releasing lock... [2025-01-15 07:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:23:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:24:05 [end_date_ymd] => 2025-01-15 07:24:05 [RateCDR] => 1 ) [2025-01-15 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:24:05' and `end` < '2025-01-15 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:24:17] Production.INFO: count ==18 [2025-01-15 07:24:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:24:05 - End Time 2025-01-15 07:24:05 [2025-01-15 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252068', 'tblTempUsageDetail_20' ) start [2025-01-15 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252068', 'tblTempUsageDetail_20' ) end [2025-01-15 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252068', 'tblTempVendorCDR_20' ) start [2025-01-15 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252068', 'tblTempVendorCDR_20' ) end [2025-01-15 07:24:17] Production.INFO: ProcessCDR(1,14252068,1,1,2) [2025-01-15 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252068', 'tblTempUsageDetail_20' ) start [2025-01-15 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252068', 'tblTempUsageDetail_20' ) end [2025-01-15 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:24:21] Production.INFO: ==21676== Releasing lock... [2025-01-15 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:24:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:25:05 [end_date_ymd] => 2025-01-15 07:25:05 [RateCDR] => 1 ) [2025-01-15 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:25:05' and `end` < '2025-01-15 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:25:17] Production.INFO: count ==17 [2025-01-15 07:25:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:25:05 - End Time 2025-01-15 07:25:05 [2025-01-15 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252073', 'tblTempUsageDetail_20' ) start [2025-01-15 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252073', 'tblTempUsageDetail_20' ) end [2025-01-15 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252073', 'tblTempVendorCDR_20' ) start [2025-01-15 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252073', 'tblTempVendorCDR_20' ) end [2025-01-15 07:25:17] Production.INFO: ProcessCDR(1,14252073,1,1,2) [2025-01-15 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252073', 'tblTempUsageDetail_20' ) start [2025-01-15 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252073', 'tblTempUsageDetail_20' ) end [2025-01-15 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:25:21] Production.INFO: ==21748== Releasing lock... [2025-01-15 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:25:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:26:05 [end_date_ymd] => 2025-01-15 07:26:05 [RateCDR] => 1 ) [2025-01-15 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:26:05' and `end` < '2025-01-15 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:26:17] Production.INFO: count ==17 [2025-01-15 07:26:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:26:05 - End Time 2025-01-15 07:26:05 [2025-01-15 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252078', 'tblTempUsageDetail_20' ) start [2025-01-15 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252078', 'tblTempUsageDetail_20' ) end [2025-01-15 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252078', 'tblTempVendorCDR_20' ) start [2025-01-15 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252078', 'tblTempVendorCDR_20' ) end [2025-01-15 07:26:17] Production.INFO: ProcessCDR(1,14252078,1,1,2) [2025-01-15 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252078', 'tblTempUsageDetail_20' ) start [2025-01-15 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252078', 'tblTempUsageDetail_20' ) end [2025-01-15 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:26:21] Production.INFO: ==21817== Releasing lock... [2025-01-15 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:26:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:27:05 [end_date_ymd] => 2025-01-15 07:27:05 [RateCDR] => 1 ) [2025-01-15 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:27:05' and `end` < '2025-01-15 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:27:17] Production.INFO: count ==17 [2025-01-15 07:27:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:27:05 - End Time 2025-01-15 07:27:05 [2025-01-15 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252083', 'tblTempUsageDetail_20' ) start [2025-01-15 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252083', 'tblTempUsageDetail_20' ) end [2025-01-15 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252083', 'tblTempVendorCDR_20' ) start [2025-01-15 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252083', 'tblTempVendorCDR_20' ) end [2025-01-15 07:27:17] Production.INFO: ProcessCDR(1,14252083,1,1,2) [2025-01-15 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252083', 'tblTempUsageDetail_20' ) start [2025-01-15 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252083', 'tblTempUsageDetail_20' ) end [2025-01-15 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:27:21] Production.INFO: ==21887== Releasing lock... [2025-01-15 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:27:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:28:05 [end_date_ymd] => 2025-01-15 07:28:05 [RateCDR] => 1 ) [2025-01-15 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:28:05' and `end` < '2025-01-15 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:28:18] Production.INFO: count ==17 [2025-01-15 07:28:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:28:05 - End Time 2025-01-15 07:28:05 [2025-01-15 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252088', 'tblTempUsageDetail_20' ) start [2025-01-15 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252088', 'tblTempUsageDetail_20' ) end [2025-01-15 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252088', 'tblTempVendorCDR_20' ) start [2025-01-15 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252088', 'tblTempVendorCDR_20' ) end [2025-01-15 07:28:18] Production.INFO: ProcessCDR(1,14252088,1,1,2) [2025-01-15 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252088', 'tblTempUsageDetail_20' ) start [2025-01-15 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252088', 'tblTempUsageDetail_20' ) end [2025-01-15 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:28:21] Production.INFO: ==21958== Releasing lock... [2025-01-15 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:28:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:29:06 [end_date_ymd] => 2025-01-15 07:29:06 [RateCDR] => 1 ) [2025-01-15 07:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:29:06' and `end` < '2025-01-15 07:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:29:18] Production.INFO: count ==17 [2025-01-15 07:29:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:29:06 - End Time 2025-01-15 07:29:06 [2025-01-15 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252093', 'tblTempUsageDetail_20' ) start [2025-01-15 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252093', 'tblTempUsageDetail_20' ) end [2025-01-15 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252093', 'tblTempVendorCDR_20' ) start [2025-01-15 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252093', 'tblTempVendorCDR_20' ) end [2025-01-15 07:29:18] Production.INFO: ProcessCDR(1,14252093,1,1,2) [2025-01-15 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252093', 'tblTempUsageDetail_20' ) start [2025-01-15 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252093', 'tblTempUsageDetail_20' ) end [2025-01-15 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:29:22] Production.INFO: ==22029== Releasing lock... [2025-01-15 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:29:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:30:06 [end_date_ymd] => 2025-01-15 07:30:06 [RateCDR] => 1 ) [2025-01-15 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:30:06' and `end` < '2025-01-15 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:30:18] Production.INFO: count ==15 [2025-01-15 07:30:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:30:06 - End Time 2025-01-15 07:30:06 [2025-01-15 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252099', 'tblTempUsageDetail_20' ) start [2025-01-15 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252099', 'tblTempUsageDetail_20' ) end [2025-01-15 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252099', 'tblTempVendorCDR_20' ) start [2025-01-15 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252099', 'tblTempVendorCDR_20' ) end [2025-01-15 07:30:18] Production.INFO: ProcessCDR(1,14252099,1,1,2) [2025-01-15 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252099', 'tblTempUsageDetail_20' ) start [2025-01-15 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252099', 'tblTempUsageDetail_20' ) end [2025-01-15 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:30:21] Production.INFO: ==22101== Releasing lock... [2025-01-15 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:30:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:31:06 [end_date_ymd] => 2025-01-15 07:31:06 [RateCDR] => 1 ) [2025-01-15 07:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:31:06' and `end` < '2025-01-15 07:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:31:18] Production.INFO: count ==13 [2025-01-15 07:31:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:31:06 - End Time 2025-01-15 07:31:06 [2025-01-15 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252104', 'tblTempUsageDetail_20' ) start [2025-01-15 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252104', 'tblTempUsageDetail_20' ) end [2025-01-15 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252104', 'tblTempVendorCDR_20' ) start [2025-01-15 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252104', 'tblTempVendorCDR_20' ) end [2025-01-15 07:31:18] Production.INFO: ProcessCDR(1,14252104,1,1,2) [2025-01-15 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252104', 'tblTempUsageDetail_20' ) start [2025-01-15 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252104', 'tblTempUsageDetail_20' ) end [2025-01-15 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:31:21] Production.INFO: ==22213== Releasing lock... [2025-01-15 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:31:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:32:05 [end_date_ymd] => 2025-01-15 07:32:05 [RateCDR] => 1 ) [2025-01-15 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:32:05' and `end` < '2025-01-15 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:32:18] Production.INFO: count ==13 [2025-01-15 07:32:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:32:05 - End Time 2025-01-15 07:32:05 [2025-01-15 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252109', 'tblTempUsageDetail_20' ) start [2025-01-15 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252109', 'tblTempUsageDetail_20' ) end [2025-01-15 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252109', 'tblTempVendorCDR_20' ) start [2025-01-15 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252109', 'tblTempVendorCDR_20' ) end [2025-01-15 07:32:18] Production.INFO: ProcessCDR(1,14252109,1,1,2) [2025-01-15 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252109', 'tblTempUsageDetail_20' ) start [2025-01-15 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252109', 'tblTempUsageDetail_20' ) end [2025-01-15 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:32:21] Production.INFO: ==22282== Releasing lock... [2025-01-15 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:32:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:33:05 [end_date_ymd] => 2025-01-15 07:33:05 [RateCDR] => 1 ) [2025-01-15 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:33:05' and `end` < '2025-01-15 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:33:17] Production.INFO: count ==13 [2025-01-15 07:33:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:33:05 - End Time 2025-01-15 07:33:05 [2025-01-15 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252114', 'tblTempUsageDetail_20' ) start [2025-01-15 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252114', 'tblTempUsageDetail_20' ) end [2025-01-15 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252114', 'tblTempVendorCDR_20' ) start [2025-01-15 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252114', 'tblTempVendorCDR_20' ) end [2025-01-15 07:33:17] Production.INFO: ProcessCDR(1,14252114,1,1,2) [2025-01-15 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252114', 'tblTempUsageDetail_20' ) start [2025-01-15 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252114', 'tblTempUsageDetail_20' ) end [2025-01-15 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:33:21] Production.INFO: ==22362== Releasing lock... [2025-01-15 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:33:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:34:05 [end_date_ymd] => 2025-01-15 07:34:05 [RateCDR] => 1 ) [2025-01-15 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:34:05' and `end` < '2025-01-15 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:34:17] Production.INFO: count ==13 [2025-01-15 07:34:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:34:05 - End Time 2025-01-15 07:34:05 [2025-01-15 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252119', 'tblTempUsageDetail_20' ) start [2025-01-15 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252119', 'tblTempUsageDetail_20' ) end [2025-01-15 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252119', 'tblTempVendorCDR_20' ) start [2025-01-15 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252119', 'tblTempVendorCDR_20' ) end [2025-01-15 07:34:17] Production.INFO: ProcessCDR(1,14252119,1,1,2) [2025-01-15 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252119', 'tblTempUsageDetail_20' ) start [2025-01-15 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252119', 'tblTempUsageDetail_20' ) end [2025-01-15 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:34:21] Production.INFO: ==22448== Releasing lock... [2025-01-15 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:34:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:35:06 [end_date_ymd] => 2025-01-15 07:35:06 [RateCDR] => 1 ) [2025-01-15 07:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:35:06' and `end` < '2025-01-15 07:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:35:19] Production.INFO: count ==13 [2025-01-15 07:35:19] Production.ERROR: pbx CDR StartTime 2025-01-15 04:35:06 - End Time 2025-01-15 07:35:06 [2025-01-15 07:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252124', 'tblTempUsageDetail_20' ) start [2025-01-15 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252124', 'tblTempUsageDetail_20' ) end [2025-01-15 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252124', 'tblTempVendorCDR_20' ) start [2025-01-15 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252124', 'tblTempVendorCDR_20' ) end [2025-01-15 07:35:19] Production.INFO: ProcessCDR(1,14252124,1,1,2) [2025-01-15 07:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252124', 'tblTempUsageDetail_20' ) start [2025-01-15 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252124', 'tblTempUsageDetail_20' ) end [2025-01-15 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:35:22] Production.INFO: ==22519== Releasing lock... [2025-01-15 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:35:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:36:05 [end_date_ymd] => 2025-01-15 07:36:05 [RateCDR] => 1 ) [2025-01-15 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:36:05' and `end` < '2025-01-15 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:36:18] Production.INFO: count ==13 [2025-01-15 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:36:05 - End Time 2025-01-15 07:36:05 [2025-01-15 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252129', 'tblTempUsageDetail_20' ) start [2025-01-15 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252129', 'tblTempUsageDetail_20' ) end [2025-01-15 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252129', 'tblTempVendorCDR_20' ) start [2025-01-15 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252129', 'tblTempVendorCDR_20' ) end [2025-01-15 07:36:18] Production.INFO: ProcessCDR(1,14252129,1,1,2) [2025-01-15 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252129', 'tblTempUsageDetail_20' ) start [2025-01-15 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252129', 'tblTempUsageDetail_20' ) end [2025-01-15 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:36:21] Production.INFO: ==22588== Releasing lock... [2025-01-15 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:36:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:37:05 [end_date_ymd] => 2025-01-15 07:37:05 [RateCDR] => 1 ) [2025-01-15 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:37:05' and `end` < '2025-01-15 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:37:17] Production.INFO: count ==13 [2025-01-15 07:37:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:37:05 - End Time 2025-01-15 07:37:05 [2025-01-15 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252134', 'tblTempUsageDetail_20' ) start [2025-01-15 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252134', 'tblTempUsageDetail_20' ) end [2025-01-15 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252134', 'tblTempVendorCDR_20' ) start [2025-01-15 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252134', 'tblTempVendorCDR_20' ) end [2025-01-15 07:37:17] Production.INFO: ProcessCDR(1,14252134,1,1,2) [2025-01-15 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252134', 'tblTempUsageDetail_20' ) start [2025-01-15 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252134', 'tblTempUsageDetail_20' ) end [2025-01-15 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:37:21] Production.INFO: ==22661== Releasing lock... [2025-01-15 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:37:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:38:05 [end_date_ymd] => 2025-01-15 07:38:05 [RateCDR] => 1 ) [2025-01-15 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:38:05' and `end` < '2025-01-15 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:38:20] Production.INFO: count ==13 [2025-01-15 07:38:20] Production.ERROR: pbx CDR StartTime 2025-01-15 04:38:05 - End Time 2025-01-15 07:38:05 [2025-01-15 07:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252139', 'tblTempUsageDetail_20' ) start [2025-01-15 07:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252139', 'tblTempUsageDetail_20' ) end [2025-01-15 07:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252139', 'tblTempVendorCDR_20' ) start [2025-01-15 07:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252139', 'tblTempVendorCDR_20' ) end [2025-01-15 07:38:20] Production.INFO: ProcessCDR(1,14252139,1,1,2) [2025-01-15 07:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252139', 'tblTempUsageDetail_20' ) start [2025-01-15 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252139', 'tblTempUsageDetail_20' ) end [2025-01-15 07:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:38:23] Production.INFO: ==22737== Releasing lock... [2025-01-15 07:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:38:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:39:05 [end_date_ymd] => 2025-01-15 07:39:05 [RateCDR] => 1 ) [2025-01-15 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:39:05' and `end` < '2025-01-15 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:39:17] Production.INFO: count ==14 [2025-01-15 07:39:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:39:05 - End Time 2025-01-15 07:39:05 [2025-01-15 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252144', 'tblTempUsageDetail_20' ) start [2025-01-15 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252144', 'tblTempUsageDetail_20' ) end [2025-01-15 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252144', 'tblTempVendorCDR_20' ) start [2025-01-15 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252144', 'tblTempVendorCDR_20' ) end [2025-01-15 07:39:17] Production.INFO: ProcessCDR(1,14252144,1,1,2) [2025-01-15 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252144', 'tblTempUsageDetail_20' ) start [2025-01-15 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252144', 'tblTempUsageDetail_20' ) end [2025-01-15 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:39:21] Production.INFO: ==22811== Releasing lock... [2025-01-15 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:39:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:40:06 [end_date_ymd] => 2025-01-15 07:40:06 [RateCDR] => 1 ) [2025-01-15 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:40:06' and `end` < '2025-01-15 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:40:19] Production.INFO: count ==14 [2025-01-15 07:40:19] Production.ERROR: pbx CDR StartTime 2025-01-15 04:40:06 - End Time 2025-01-15 07:40:06 [2025-01-15 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252150', 'tblTempUsageDetail_20' ) start [2025-01-15 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252150', 'tblTempUsageDetail_20' ) end [2025-01-15 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252150', 'tblTempVendorCDR_20' ) start [2025-01-15 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252150', 'tblTempVendorCDR_20' ) end [2025-01-15 07:40:19] Production.INFO: ProcessCDR(1,14252150,1,1,2) [2025-01-15 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252150', 'tblTempUsageDetail_20' ) start [2025-01-15 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252150', 'tblTempUsageDetail_20' ) end [2025-01-15 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:40:22] Production.INFO: ==22885== Releasing lock... [2025-01-15 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:40:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:41:05 [end_date_ymd] => 2025-01-15 07:41:05 [RateCDR] => 1 ) [2025-01-15 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:41:05' and `end` < '2025-01-15 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:41:18] Production.INFO: count ==14 [2025-01-15 07:41:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:41:05 - End Time 2025-01-15 07:41:05 [2025-01-15 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252155', 'tblTempUsageDetail_20' ) start [2025-01-15 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252155', 'tblTempUsageDetail_20' ) end [2025-01-15 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252155', 'tblTempVendorCDR_20' ) start [2025-01-15 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252155', 'tblTempVendorCDR_20' ) end [2025-01-15 07:41:18] Production.INFO: ProcessCDR(1,14252155,1,1,2) [2025-01-15 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252155', 'tblTempUsageDetail_20' ) start [2025-01-15 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252155', 'tblTempUsageDetail_20' ) end [2025-01-15 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:41:22] Production.INFO: ==22956== Releasing lock... [2025-01-15 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:41:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:42:05 [end_date_ymd] => 2025-01-15 07:42:05 [RateCDR] => 1 ) [2025-01-15 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:42:05' and `end` < '2025-01-15 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:42:17] Production.INFO: count ==14 [2025-01-15 07:42:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:42:05 - End Time 2025-01-15 07:42:05 [2025-01-15 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252160', 'tblTempUsageDetail_20' ) start [2025-01-15 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252160', 'tblTempUsageDetail_20' ) end [2025-01-15 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252160', 'tblTempVendorCDR_20' ) start [2025-01-15 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252160', 'tblTempVendorCDR_20' ) end [2025-01-15 07:42:17] Production.INFO: ProcessCDR(1,14252160,1,1,2) [2025-01-15 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252160', 'tblTempUsageDetail_20' ) start [2025-01-15 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252160', 'tblTempUsageDetail_20' ) end [2025-01-15 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:42:21] Production.INFO: ==23027== Releasing lock... [2025-01-15 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:42:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:43:05 [end_date_ymd] => 2025-01-15 07:43:05 [RateCDR] => 1 ) [2025-01-15 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:43:05' and `end` < '2025-01-15 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:43:17] Production.INFO: count ==14 [2025-01-15 07:43:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:43:05 - End Time 2025-01-15 07:43:05 [2025-01-15 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252165', 'tblTempUsageDetail_20' ) start [2025-01-15 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252165', 'tblTempUsageDetail_20' ) end [2025-01-15 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252165', 'tblTempVendorCDR_20' ) start [2025-01-15 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252165', 'tblTempVendorCDR_20' ) end [2025-01-15 07:43:17] Production.INFO: ProcessCDR(1,14252165,1,1,2) [2025-01-15 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252165', 'tblTempUsageDetail_20' ) start [2025-01-15 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252165', 'tblTempUsageDetail_20' ) end [2025-01-15 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:43:21] Production.INFO: ==23099== Releasing lock... [2025-01-15 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:43:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:44:05 [end_date_ymd] => 2025-01-15 07:44:05 [RateCDR] => 1 ) [2025-01-15 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:44:05' and `end` < '2025-01-15 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:44:18] Production.INFO: count ==14 [2025-01-15 07:44:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:44:05 - End Time 2025-01-15 07:44:05 [2025-01-15 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252170', 'tblTempUsageDetail_20' ) start [2025-01-15 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252170', 'tblTempUsageDetail_20' ) end [2025-01-15 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252170', 'tblTempVendorCDR_20' ) start [2025-01-15 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252170', 'tblTempVendorCDR_20' ) end [2025-01-15 07:44:18] Production.INFO: ProcessCDR(1,14252170,1,1,2) [2025-01-15 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252170', 'tblTempUsageDetail_20' ) start [2025-01-15 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252170', 'tblTempUsageDetail_20' ) end [2025-01-15 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:44:22] Production.INFO: ==23170== Releasing lock... [2025-01-15 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:44:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:45:05 [end_date_ymd] => 2025-01-15 07:45:05 [RateCDR] => 1 ) [2025-01-15 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:45:05' and `end` < '2025-01-15 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:45:17] Production.INFO: count ==14 [2025-01-15 07:45:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:45:05 - End Time 2025-01-15 07:45:05 [2025-01-15 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252175', 'tblTempUsageDetail_20' ) start [2025-01-15 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252175', 'tblTempUsageDetail_20' ) end [2025-01-15 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252175', 'tblTempVendorCDR_20' ) start [2025-01-15 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252175', 'tblTempVendorCDR_20' ) end [2025-01-15 07:45:17] Production.INFO: ProcessCDR(1,14252175,1,1,2) [2025-01-15 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252175', 'tblTempUsageDetail_20' ) start [2025-01-15 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252175', 'tblTempUsageDetail_20' ) end [2025-01-15 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:45:21] Production.INFO: ==23243== Releasing lock... [2025-01-15 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:45:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:46:06 [end_date_ymd] => 2025-01-15 07:46:06 [RateCDR] => 1 ) [2025-01-15 07:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:46:06' and `end` < '2025-01-15 07:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:46:18] Production.INFO: count ==14 [2025-01-15 07:46:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:46:06 - End Time 2025-01-15 07:46:06 [2025-01-15 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252180', 'tblTempUsageDetail_20' ) start [2025-01-15 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252180', 'tblTempUsageDetail_20' ) end [2025-01-15 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252180', 'tblTempVendorCDR_20' ) start [2025-01-15 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252180', 'tblTempVendorCDR_20' ) end [2025-01-15 07:46:18] Production.INFO: ProcessCDR(1,14252180,1,1,2) [2025-01-15 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252180', 'tblTempUsageDetail_20' ) start [2025-01-15 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252180', 'tblTempUsageDetail_20' ) end [2025-01-15 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:46:21] Production.INFO: ==23353== Releasing lock... [2025-01-15 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:46:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:47:05 [end_date_ymd] => 2025-01-15 07:47:05 [RateCDR] => 1 ) [2025-01-15 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:47:05' and `end` < '2025-01-15 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:47:18] Production.INFO: count ==14 [2025-01-15 07:47:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:47:05 - End Time 2025-01-15 07:47:05 [2025-01-15 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252185', 'tblTempUsageDetail_20' ) start [2025-01-15 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252185', 'tblTempUsageDetail_20' ) end [2025-01-15 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252185', 'tblTempVendorCDR_20' ) start [2025-01-15 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252185', 'tblTempVendorCDR_20' ) end [2025-01-15 07:47:18] Production.INFO: ProcessCDR(1,14252185,1,1,2) [2025-01-15 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252185', 'tblTempUsageDetail_20' ) start [2025-01-15 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252185', 'tblTempUsageDetail_20' ) end [2025-01-15 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:47:21] Production.INFO: ==23423== Releasing lock... [2025-01-15 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:47:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:48:05 [end_date_ymd] => 2025-01-15 07:48:05 [RateCDR] => 1 ) [2025-01-15 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:48:05' and `end` < '2025-01-15 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:48:18] Production.INFO: count ==14 [2025-01-15 07:48:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:48:05 - End Time 2025-01-15 07:48:05 [2025-01-15 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252190', 'tblTempUsageDetail_20' ) start [2025-01-15 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252190', 'tblTempUsageDetail_20' ) end [2025-01-15 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252190', 'tblTempVendorCDR_20' ) start [2025-01-15 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252190', 'tblTempVendorCDR_20' ) end [2025-01-15 07:48:18] Production.INFO: ProcessCDR(1,14252190,1,1,2) [2025-01-15 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252190', 'tblTempUsageDetail_20' ) start [2025-01-15 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252190', 'tblTempUsageDetail_20' ) end [2025-01-15 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:48:21] Production.INFO: ==23494== Releasing lock... [2025-01-15 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:48:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:49:05 [end_date_ymd] => 2025-01-15 07:49:05 [RateCDR] => 1 ) [2025-01-15 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:49:05' and `end` < '2025-01-15 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:49:17] Production.INFO: count ==14 [2025-01-15 07:49:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:49:05 - End Time 2025-01-15 07:49:05 [2025-01-15 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252195', 'tblTempUsageDetail_20' ) start [2025-01-15 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252195', 'tblTempUsageDetail_20' ) end [2025-01-15 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252195', 'tblTempVendorCDR_20' ) start [2025-01-15 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252195', 'tblTempVendorCDR_20' ) end [2025-01-15 07:49:17] Production.INFO: ProcessCDR(1,14252195,1,1,2) [2025-01-15 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252195', 'tblTempUsageDetail_20' ) start [2025-01-15 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252195', 'tblTempUsageDetail_20' ) end [2025-01-15 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:49:21] Production.INFO: ==23564== Releasing lock... [2025-01-15 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:49:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:50:06 [end_date_ymd] => 2025-01-15 07:50:06 [RateCDR] => 1 ) [2025-01-15 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:50:06' and `end` < '2025-01-15 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:50:18] Production.INFO: count ==14 [2025-01-15 07:50:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:50:06 - End Time 2025-01-15 07:50:06 [2025-01-15 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252200', 'tblTempUsageDetail_20' ) start [2025-01-15 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252200', 'tblTempUsageDetail_20' ) end [2025-01-15 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252200', 'tblTempVendorCDR_20' ) start [2025-01-15 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252200', 'tblTempVendorCDR_20' ) end [2025-01-15 07:50:18] Production.INFO: ProcessCDR(1,14252200,1,1,2) [2025-01-15 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252200', 'tblTempUsageDetail_20' ) start [2025-01-15 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252200', 'tblTempUsageDetail_20' ) end [2025-01-15 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:50:21] Production.INFO: ==23635== Releasing lock... [2025-01-15 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:50:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:51:05 [end_date_ymd] => 2025-01-15 07:51:05 [RateCDR] => 1 ) [2025-01-15 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:51:05' and `end` < '2025-01-15 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:51:18] Production.INFO: count ==14 [2025-01-15 07:51:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:51:05 - End Time 2025-01-15 07:51:05 [2025-01-15 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252206', 'tblTempUsageDetail_20' ) start [2025-01-15 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252206', 'tblTempUsageDetail_20' ) end [2025-01-15 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252206', 'tblTempVendorCDR_20' ) start [2025-01-15 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252206', 'tblTempVendorCDR_20' ) end [2025-01-15 07:51:18] Production.INFO: ProcessCDR(1,14252206,1,1,2) [2025-01-15 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252206', 'tblTempUsageDetail_20' ) start [2025-01-15 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252206', 'tblTempUsageDetail_20' ) end [2025-01-15 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:51:22] Production.INFO: ==23710== Releasing lock... [2025-01-15 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:51:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:52:05 [end_date_ymd] => 2025-01-15 07:52:05 [RateCDR] => 1 ) [2025-01-15 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:52:05' and `end` < '2025-01-15 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:52:17] Production.INFO: count ==14 [2025-01-15 07:52:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:52:05 - End Time 2025-01-15 07:52:05 [2025-01-15 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252211', 'tblTempUsageDetail_20' ) start [2025-01-15 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252211', 'tblTempUsageDetail_20' ) end [2025-01-15 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252211', 'tblTempVendorCDR_20' ) start [2025-01-15 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252211', 'tblTempVendorCDR_20' ) end [2025-01-15 07:52:17] Production.INFO: ProcessCDR(1,14252211,1,1,2) [2025-01-15 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252211', 'tblTempUsageDetail_20' ) start [2025-01-15 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252211', 'tblTempUsageDetail_20' ) end [2025-01-15 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:52:20] Production.INFO: ==23784== Releasing lock... [2025-01-15 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:52:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:53:05 [end_date_ymd] => 2025-01-15 07:53:05 [RateCDR] => 1 ) [2025-01-15 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:53:05' and `end` < '2025-01-15 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:53:17] Production.INFO: count ==14 [2025-01-15 07:53:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:53:05 - End Time 2025-01-15 07:53:05 [2025-01-15 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252216', 'tblTempUsageDetail_20' ) start [2025-01-15 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252216', 'tblTempUsageDetail_20' ) end [2025-01-15 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252216', 'tblTempVendorCDR_20' ) start [2025-01-15 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252216', 'tblTempVendorCDR_20' ) end [2025-01-15 07:53:17] Production.INFO: ProcessCDR(1,14252216,1,1,2) [2025-01-15 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252216', 'tblTempUsageDetail_20' ) start [2025-01-15 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252216', 'tblTempUsageDetail_20' ) end [2025-01-15 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:53:21] Production.INFO: ==23853== Releasing lock... [2025-01-15 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:53:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:54:06 [end_date_ymd] => 2025-01-15 07:54:06 [RateCDR] => 1 ) [2025-01-15 07:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:54:06' and `end` < '2025-01-15 07:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:54:18] Production.INFO: count ==14 [2025-01-15 07:54:18] Production.ERROR: pbx CDR StartTime 2025-01-15 04:54:06 - End Time 2025-01-15 07:54:06 [2025-01-15 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252221', 'tblTempUsageDetail_20' ) start [2025-01-15 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252221', 'tblTempUsageDetail_20' ) end [2025-01-15 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252221', 'tblTempVendorCDR_20' ) start [2025-01-15 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252221', 'tblTempVendorCDR_20' ) end [2025-01-15 07:54:18] Production.INFO: ProcessCDR(1,14252221,1,1,2) [2025-01-15 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252221', 'tblTempUsageDetail_20' ) start [2025-01-15 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252221', 'tblTempUsageDetail_20' ) end [2025-01-15 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:54:22] Production.INFO: ==23928== Releasing lock... [2025-01-15 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:54:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:55:05 [end_date_ymd] => 2025-01-15 07:55:05 [RateCDR] => 1 ) [2025-01-15 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:55:05' and `end` < '2025-01-15 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:55:17] Production.INFO: count ==14 [2025-01-15 07:55:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:55:05 - End Time 2025-01-15 07:55:05 [2025-01-15 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252226', 'tblTempUsageDetail_20' ) start [2025-01-15 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252226', 'tblTempUsageDetail_20' ) end [2025-01-15 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252226', 'tblTempVendorCDR_20' ) start [2025-01-15 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252226', 'tblTempVendorCDR_20' ) end [2025-01-15 07:55:17] Production.INFO: ProcessCDR(1,14252226,1,1,2) [2025-01-15 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252226', 'tblTempUsageDetail_20' ) start [2025-01-15 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252226', 'tblTempUsageDetail_20' ) end [2025-01-15 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:55:21] Production.INFO: ==24001== Releasing lock... [2025-01-15 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:55:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:56:04 [end_date_ymd] => 2025-01-15 07:56:04 [RateCDR] => 1 ) [2025-01-15 07:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:56:04' and `end` < '2025-01-15 07:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:56:17] Production.INFO: count ==14 [2025-01-15 07:56:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:56:04 - End Time 2025-01-15 07:56:04 [2025-01-15 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252231', 'tblTempUsageDetail_20' ) start [2025-01-15 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252231', 'tblTempUsageDetail_20' ) end [2025-01-15 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252231', 'tblTempVendorCDR_20' ) start [2025-01-15 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252231', 'tblTempVendorCDR_20' ) end [2025-01-15 07:56:17] Production.INFO: ProcessCDR(1,14252231,1,1,2) [2025-01-15 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252231', 'tblTempUsageDetail_20' ) start [2025-01-15 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252231', 'tblTempUsageDetail_20' ) end [2025-01-15 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:56:21] Production.INFO: ==24070== Releasing lock... [2025-01-15 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:56:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:57:05 [end_date_ymd] => 2025-01-15 07:57:05 [RateCDR] => 1 ) [2025-01-15 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:57:05' and `end` < '2025-01-15 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:57:17] Production.INFO: count ==14 [2025-01-15 07:57:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:57:05 - End Time 2025-01-15 07:57:05 [2025-01-15 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252236', 'tblTempUsageDetail_20' ) start [2025-01-15 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252236', 'tblTempUsageDetail_20' ) end [2025-01-15 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252236', 'tblTempVendorCDR_20' ) start [2025-01-15 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252236', 'tblTempVendorCDR_20' ) end [2025-01-15 07:57:17] Production.INFO: ProcessCDR(1,14252236,1,1,2) [2025-01-15 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252236', 'tblTempUsageDetail_20' ) start [2025-01-15 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252236', 'tblTempUsageDetail_20' ) end [2025-01-15 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:57:21] Production.INFO: ==24147== Releasing lock... [2025-01-15 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:57:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-15 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:58:06 [end_date_ymd] => 2025-01-15 07:58:06 [RateCDR] => 1 ) [2025-01-15 07:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:58:06' and `end` < '2025-01-15 07:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:58:19] Production.INFO: count ==37 [2025-01-15 07:58:19] Production.ERROR: pbx CDR StartTime 2025-01-15 04:58:06 - End Time 2025-01-15 07:58:06 [2025-01-15 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252241', 'tblTempUsageDetail_20' ) start [2025-01-15 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252241', 'tblTempUsageDetail_20' ) end [2025-01-15 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252241', 'tblTempVendorCDR_20' ) start [2025-01-15 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252241', 'tblTempVendorCDR_20' ) end [2025-01-15 07:58:19] Production.INFO: ProcessCDR(1,14252241,1,1,2) [2025-01-15 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252241', 'tblTempUsageDetail_20' ) start [2025-01-15 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252241', 'tblTempUsageDetail_20' ) end [2025-01-15 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:58:22] Production.INFO: ==24220== Releasing lock... [2025-01-15 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:58:22] Production.INFO: 28 MB #Memory Used# [2025-01-15 07:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 04:59:04 [end_date_ymd] => 2025-01-15 07:59:04 [RateCDR] => 1 ) [2025-01-15 07:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 04:59:04' and `end` < '2025-01-15 07:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 07:59:17] Production.INFO: count ==37 [2025-01-15 07:59:17] Production.ERROR: pbx CDR StartTime 2025-01-15 04:59:04 - End Time 2025-01-15 07:59:04 [2025-01-15 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252246', 'tblTempUsageDetail_20' ) start [2025-01-15 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252246', 'tblTempUsageDetail_20' ) end [2025-01-15 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252246', 'tblTempVendorCDR_20' ) start [2025-01-15 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252246', 'tblTempVendorCDR_20' ) end [2025-01-15 07:59:17] Production.INFO: ProcessCDR(1,14252246,1,1,2) [2025-01-15 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252246', 'tblTempUsageDetail_20' ) start [2025-01-15 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252246', 'tblTempUsageDetail_20' ) end [2025-01-15 07:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 07:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 07:59:20] Production.INFO: ==24294== Releasing lock... [2025-01-15 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 07:59:20] Production.INFO: 28 MB #Memory Used# [2025-01-15 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:00:06 [end_date_ymd] => 2025-01-15 08:00:06 [RateCDR] => 1 ) [2025-01-15 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:00:06' and `end` < '2025-01-15 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:00:18] Production.INFO: count ==64 [2025-01-15 08:00:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:00:06 - End Time 2025-01-15 08:00:06 [2025-01-15 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252252', 'tblTempUsageDetail_20' ) start [2025-01-15 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252252', 'tblTempUsageDetail_20' ) end [2025-01-15 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252252', 'tblTempVendorCDR_20' ) start [2025-01-15 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252252', 'tblTempVendorCDR_20' ) end [2025-01-15 08:00:18] Production.INFO: ProcessCDR(1,14252252,1,1,2) [2025-01-15 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252252', 'tblTempUsageDetail_20' ) start [2025-01-15 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252252', 'tblTempUsageDetail_20' ) end [2025-01-15 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:00:23] Production.INFO: ==24371== Releasing lock... [2025-01-15 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:00:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:01:05 [end_date_ymd] => 2025-01-15 08:01:05 [RateCDR] => 1 ) [2025-01-15 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:01:05' and `end` < '2025-01-15 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:01:19] Production.INFO: count ==64 [2025-01-15 08:01:19] Production.ERROR: pbx CDR StartTime 2025-01-15 05:01:05 - End Time 2025-01-15 08:01:05 [2025-01-15 08:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252257', 'tblTempUsageDetail_20' ) start [2025-01-15 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252257', 'tblTempUsageDetail_20' ) end [2025-01-15 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252257', 'tblTempVendorCDR_20' ) start [2025-01-15 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252257', 'tblTempVendorCDR_20' ) end [2025-01-15 08:01:19] Production.INFO: ProcessCDR(1,14252257,1,1,2) [2025-01-15 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252257', 'tblTempUsageDetail_20' ) start [2025-01-15 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252257', 'tblTempUsageDetail_20' ) end [2025-01-15 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:01:22] Production.INFO: ==24457== Releasing lock... [2025-01-15 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:01:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:02:06 [end_date_ymd] => 2025-01-15 08:02:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 05:02:06' and `end` < '2025-01-15 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-01-15 08:02:18] Production.INFO: count ==64 [2025-01-15 08:02:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:02:06 - End Time 2025-01-15 08:02:06 [2025-01-15 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252262', 'tblTempUsageDetail_20' ) start [2025-01-15 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252262', 'tblTempUsageDetail_20' ) end [2025-01-15 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252262', 'tblTempVendorCDR_20' ) start [2025-01-15 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252262', 'tblTempVendorCDR_20' ) end [2025-01-15 08:02:18] Production.INFO: ProcessCDR(1,14252262,1,1,2) [2025-01-15 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252262', 'tblTempUsageDetail_20' ) start [2025-01-15 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252262', 'tblTempUsageDetail_20' ) end [2025-01-15 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:02:22] Production.INFO: ==24571== Releasing lock... [2025-01-15 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:02:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:03:05 [end_date_ymd] => 2025-01-15 08:03:05 [RateCDR] => 1 ) [2025-01-15 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:03:05' and `end` < '2025-01-15 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:03:18] Production.INFO: count ==64 [2025-01-15 08:03:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:03:05 - End Time 2025-01-15 08:03:05 [2025-01-15 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252267', 'tblTempUsageDetail_20' ) start [2025-01-15 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252267', 'tblTempUsageDetail_20' ) end [2025-01-15 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252267', 'tblTempVendorCDR_20' ) start [2025-01-15 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252267', 'tblTempVendorCDR_20' ) end [2025-01-15 08:03:18] Production.INFO: ProcessCDR(1,14252267,1,1,2) [2025-01-15 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252267', 'tblTempUsageDetail_20' ) start [2025-01-15 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252267', 'tblTempUsageDetail_20' ) end [2025-01-15 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:03:22] Production.INFO: ==24645== Releasing lock... [2025-01-15 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:03:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-15 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:04:05 [end_date_ymd] => 2025-01-15 08:04:05 [RateCDR] => 1 ) [2025-01-15 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:04:05' and `end` < '2025-01-15 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:04:17] Production.INFO: count ==80 [2025-01-15 08:04:17] Production.ERROR: pbx CDR StartTime 2025-01-15 05:04:05 - End Time 2025-01-15 08:04:05 [2025-01-15 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252272', 'tblTempUsageDetail_20' ) start [2025-01-15 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252272', 'tblTempUsageDetail_20' ) end [2025-01-15 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252272', 'tblTempVendorCDR_20' ) start [2025-01-15 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252272', 'tblTempVendorCDR_20' ) end [2025-01-15 08:04:17] Production.INFO: ProcessCDR(1,14252272,1,1,2) [2025-01-15 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252272', 'tblTempUsageDetail_20' ) start [2025-01-15 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252272', 'tblTempUsageDetail_20' ) end [2025-01-15 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:04:21] Production.INFO: ==24716== Releasing lock... [2025-01-15 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-15 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:05:05 [end_date_ymd] => 2025-01-15 08:05:05 [RateCDR] => 1 ) [2025-01-15 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:05:05' and `end` < '2025-01-15 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:05:17] Production.INFO: count ==104 [2025-01-15 08:05:17] Production.ERROR: pbx CDR StartTime 2025-01-15 05:05:05 - End Time 2025-01-15 08:05:05 [2025-01-15 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252277', 'tblTempUsageDetail_20' ) start [2025-01-15 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252277', 'tblTempUsageDetail_20' ) end [2025-01-15 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252277', 'tblTempVendorCDR_20' ) start [2025-01-15 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252277', 'tblTempVendorCDR_20' ) end [2025-01-15 08:05:17] Production.INFO: ProcessCDR(1,14252277,1,1,2) [2025-01-15 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252277', 'tblTempUsageDetail_20' ) start [2025-01-15 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252277', 'tblTempUsageDetail_20' ) end [2025-01-15 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:05:21] Production.INFO: ==24794== Releasing lock... [2025-01-15 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:05:21] Production.INFO: 29 MB #Memory Used# [2025-01-15 08:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:06:04 [end_date_ymd] => 2025-01-15 08:06:04 [RateCDR] => 1 ) [2025-01-15 08:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:06:04' and `end` < '2025-01-15 08:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:06:17] Production.INFO: count ==116 [2025-01-15 08:06:17] Production.ERROR: pbx CDR StartTime 2025-01-15 05:06:04 - End Time 2025-01-15 08:06:04 [2025-01-15 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252279', 'tblTempUsageDetail_20' ) start [2025-01-15 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252279', 'tblTempUsageDetail_20' ) end [2025-01-15 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252279', 'tblTempVendorCDR_20' ) start [2025-01-15 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252279', 'tblTempVendorCDR_20' ) end [2025-01-15 08:06:17] Production.INFO: ProcessCDR(1,14252279,1,1,2) [2025-01-15 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252279', 'tblTempUsageDetail_20' ) start [2025-01-15 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252279', 'tblTempUsageDetail_20' ) end [2025-01-15 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:06:22] Production.INFO: ==24870== Releasing lock... [2025-01-15 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:06:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:07:05 [end_date_ymd] => 2025-01-15 08:07:05 [RateCDR] => 1 ) [2025-01-15 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:07:05' and `end` < '2025-01-15 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:07:17] Production.INFO: count ==128 [2025-01-15 08:07:17] Production.ERROR: pbx CDR StartTime 2025-01-15 05:07:05 - End Time 2025-01-15 08:07:05 [2025-01-15 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252287', 'tblTempUsageDetail_20' ) start [2025-01-15 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252287', 'tblTempUsageDetail_20' ) end [2025-01-15 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252287', 'tblTempVendorCDR_20' ) start [2025-01-15 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252287', 'tblTempVendorCDR_20' ) end [2025-01-15 08:07:17] Production.INFO: ProcessCDR(1,14252287,1,1,2) [2025-01-15 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252287', 'tblTempUsageDetail_20' ) start [2025-01-15 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252287', 'tblTempUsageDetail_20' ) end [2025-01-15 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:07:21] Production.INFO: ==24944== Releasing lock... [2025-01-15 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:07:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:08:05 [end_date_ymd] => 2025-01-15 08:08:05 [RateCDR] => 1 ) [2025-01-15 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:08:05' and `end` < '2025-01-15 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:08:17] Production.INFO: count ==134 [2025-01-15 08:08:17] Production.ERROR: pbx CDR StartTime 2025-01-15 05:08:05 - End Time 2025-01-15 08:08:05 [2025-01-15 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252292', 'tblTempUsageDetail_20' ) start [2025-01-15 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252292', 'tblTempUsageDetail_20' ) end [2025-01-15 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252292', 'tblTempVendorCDR_20' ) start [2025-01-15 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252292', 'tblTempVendorCDR_20' ) end [2025-01-15 08:08:17] Production.INFO: ProcessCDR(1,14252292,1,1,2) [2025-01-15 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252292', 'tblTempUsageDetail_20' ) start [2025-01-15 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252292', 'tblTempUsageDetail_20' ) end [2025-01-15 08:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:08:20] Production.INFO: ==25013== Releasing lock... [2025-01-15 08:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:08:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:09:05 [end_date_ymd] => 2025-01-15 08:09:05 [RateCDR] => 1 ) [2025-01-15 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:09:05' and `end` < '2025-01-15 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:09:17] Production.INFO: count ==141 [2025-01-15 08:09:17] Production.ERROR: pbx CDR StartTime 2025-01-15 05:09:05 - End Time 2025-01-15 08:09:05 [2025-01-15 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252297', 'tblTempUsageDetail_20' ) start [2025-01-15 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252297', 'tblTempUsageDetail_20' ) end [2025-01-15 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252297', 'tblTempVendorCDR_20' ) start [2025-01-15 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252297', 'tblTempVendorCDR_20' ) end [2025-01-15 08:09:17] Production.INFO: ProcessCDR(1,14252297,1,1,2) [2025-01-15 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252297', 'tblTempUsageDetail_20' ) start [2025-01-15 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252297', 'tblTempUsageDetail_20' ) end [2025-01-15 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:09:22] Production.INFO: ==25085== Releasing lock... [2025-01-15 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:09:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-15 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:10:06 [end_date_ymd] => 2025-01-15 08:10:06 [RateCDR] => 1 ) [2025-01-15 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:10:06' and `end` < '2025-01-15 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:10:19] Production.INFO: count ==167 [2025-01-15 08:10:19] Production.ERROR: pbx CDR StartTime 2025-01-15 05:10:06 - End Time 2025-01-15 08:10:06 [2025-01-15 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252303', 'tblTempUsageDetail_20' ) start [2025-01-15 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252303', 'tblTempUsageDetail_20' ) end [2025-01-15 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252303', 'tblTempVendorCDR_20' ) start [2025-01-15 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252303', 'tblTempVendorCDR_20' ) end [2025-01-15 08:10:19] Production.INFO: ProcessCDR(1,14252303,1,1,2) [2025-01-15 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252303', 'tblTempUsageDetail_20' ) start [2025-01-15 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252303', 'tblTempUsageDetail_20' ) end [2025-01-15 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:10:22] Production.INFO: ==25158== Releasing lock... [2025-01-15 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-15 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:11:05 [end_date_ymd] => 2025-01-15 08:11:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 05:11:05' and `end` < '2025-01-15 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-01-15 08:11:17] Production.INFO: count ==183 [2025-01-15 08:11:17] Production.ERROR: pbx CDR StartTime 2025-01-15 05:11:05 - End Time 2025-01-15 08:11:05 [2025-01-15 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252308', 'tblTempUsageDetail_20' ) start [2025-01-15 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252308', 'tblTempUsageDetail_20' ) end [2025-01-15 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252308', 'tblTempVendorCDR_20' ) start [2025-01-15 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252308', 'tblTempVendorCDR_20' ) end [2025-01-15 08:11:17] Production.INFO: ProcessCDR(1,14252308,1,1,2) [2025-01-15 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252308', 'tblTempUsageDetail_20' ) start [2025-01-15 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252308', 'tblTempUsageDetail_20' ) end [2025-01-15 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:11:21] Production.INFO: ==25229== Releasing lock... [2025-01-15 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:11:21] Production.INFO: 30 MB #Memory Used# [2025-01-15 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:12:05 [end_date_ymd] => 2025-01-15 08:12:05 [RateCDR] => 1 ) [2025-01-15 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:12:05' and `end` < '2025-01-15 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:12:18] Production.INFO: count ==208 [2025-01-15 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:12:05 - End Time 2025-01-15 08:12:05 [2025-01-15 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252313', 'tblTempUsageDetail_20' ) start [2025-01-15 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252313', 'tblTempUsageDetail_20' ) end [2025-01-15 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252313', 'tblTempVendorCDR_20' ) start [2025-01-15 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252313', 'tblTempVendorCDR_20' ) end [2025-01-15 08:12:18] Production.INFO: ProcessCDR(1,14252313,1,1,2) [2025-01-15 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252313', 'tblTempUsageDetail_20' ) start [2025-01-15 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252313', 'tblTempUsageDetail_20' ) end [2025-01-15 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:12:21] Production.INFO: ==25301== Releasing lock... [2025-01-15 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-15 08:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:13:06 [end_date_ymd] => 2025-01-15 08:13:06 [RateCDR] => 1 ) [2025-01-15 08:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:13:06' and `end` < '2025-01-15 08:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:13:19] Production.INFO: count ==219 [2025-01-15 08:13:19] Production.ERROR: pbx CDR StartTime 2025-01-15 05:13:06 - End Time 2025-01-15 08:13:06 [2025-01-15 08:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252318', 'tblTempUsageDetail_20' ) start [2025-01-15 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252318', 'tblTempUsageDetail_20' ) end [2025-01-15 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252318', 'tblTempVendorCDR_20' ) start [2025-01-15 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252318', 'tblTempVendorCDR_20' ) end [2025-01-15 08:13:19] Production.INFO: ProcessCDR(1,14252318,1,1,2) [2025-01-15 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252318', 'tblTempUsageDetail_20' ) start [2025-01-15 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252318', 'tblTempUsageDetail_20' ) end [2025-01-15 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:13:23] Production.INFO: ==25370== Releasing lock... [2025-01-15 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:13:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-15 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:14:05 [end_date_ymd] => 2025-01-15 08:14:05 [RateCDR] => 1 ) [2025-01-15 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:14:05' and `end` < '2025-01-15 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:14:17] Production.INFO: count ==219 [2025-01-15 08:14:17] Production.ERROR: pbx CDR StartTime 2025-01-15 05:14:05 - End Time 2025-01-15 08:14:05 [2025-01-15 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252323', 'tblTempUsageDetail_20' ) start [2025-01-15 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252323', 'tblTempUsageDetail_20' ) end [2025-01-15 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252323', 'tblTempVendorCDR_20' ) start [2025-01-15 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252323', 'tblTempVendorCDR_20' ) end [2025-01-15 08:14:17] Production.INFO: ProcessCDR(1,14252323,1,1,2) [2025-01-15 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252323', 'tblTempUsageDetail_20' ) start [2025-01-15 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252323', 'tblTempUsageDetail_20' ) end [2025-01-15 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:14:21] Production.INFO: ==25439== Releasing lock... [2025-01-15 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-15 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:15:05 [end_date_ymd] => 2025-01-15 08:15:05 [RateCDR] => 1 ) [2025-01-15 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:15:05' and `end` < '2025-01-15 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:15:18] Production.INFO: count ==224 [2025-01-15 08:15:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:15:05 - End Time 2025-01-15 08:15:05 [2025-01-15 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252328', 'tblTempUsageDetail_20' ) start [2025-01-15 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252328', 'tblTempUsageDetail_20' ) end [2025-01-15 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252328', 'tblTempVendorCDR_20' ) start [2025-01-15 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252328', 'tblTempVendorCDR_20' ) end [2025-01-15 08:15:18] Production.INFO: ProcessCDR(1,14252328,1,1,2) [2025-01-15 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252328', 'tblTempUsageDetail_20' ) start [2025-01-15 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252328', 'tblTempUsageDetail_20' ) end [2025-01-15 08:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:15:23] Production.INFO: ==25509== Releasing lock... [2025-01-15 08:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:15:23] Production.INFO: 30 MB #Memory Used# [2025-01-15 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:16:05 [end_date_ymd] => 2025-01-15 08:16:05 [RateCDR] => 1 ) [2025-01-15 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:16:05' and `end` < '2025-01-15 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:16:19] Production.INFO: count ==229 [2025-01-15 08:16:20] Production.ERROR: pbx CDR StartTime 2025-01-15 05:16:05 - End Time 2025-01-15 08:16:05 [2025-01-15 08:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252333', 'tblTempUsageDetail_20' ) start [2025-01-15 08:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252333', 'tblTempUsageDetail_20' ) end [2025-01-15 08:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252333', 'tblTempVendorCDR_20' ) start [2025-01-15 08:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252333', 'tblTempVendorCDR_20' ) end [2025-01-15 08:16:20] Production.INFO: ProcessCDR(1,14252333,1,1,2) [2025-01-15 08:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252333', 'tblTempUsageDetail_20' ) start [2025-01-15 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252333', 'tblTempUsageDetail_20' ) end [2025-01-15 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:16:23] Production.INFO: ==25579== Releasing lock... [2025-01-15 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:16:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-15 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:17:05 [end_date_ymd] => 2025-01-15 08:17:05 [RateCDR] => 1 ) [2025-01-15 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:17:05' and `end` < '2025-01-15 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:17:18] Production.INFO: count ==229 [2025-01-15 08:17:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:17:05 - End Time 2025-01-15 08:17:05 [2025-01-15 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252338', 'tblTempUsageDetail_20' ) start [2025-01-15 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252338', 'tblTempUsageDetail_20' ) end [2025-01-15 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252338', 'tblTempVendorCDR_20' ) start [2025-01-15 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252338', 'tblTempVendorCDR_20' ) end [2025-01-15 08:17:18] Production.INFO: ProcessCDR(1,14252338,1,1,2) [2025-01-15 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252338', 'tblTempUsageDetail_20' ) start [2025-01-15 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252338', 'tblTempUsageDetail_20' ) end [2025-01-15 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:17:21] Production.INFO: ==25651== Releasing lock... [2025-01-15 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:17:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-15 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:18:05 [end_date_ymd] => 2025-01-15 08:18:05 [RateCDR] => 1 ) [2025-01-15 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:18:05' and `end` < '2025-01-15 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:18:18] Production.INFO: count ==230 [2025-01-15 08:18:19] Production.ERROR: pbx CDR StartTime 2025-01-15 05:18:05 - End Time 2025-01-15 08:18:05 [2025-01-15 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252343', 'tblTempUsageDetail_20' ) start [2025-01-15 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252343', 'tblTempUsageDetail_20' ) end [2025-01-15 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252343', 'tblTempVendorCDR_20' ) start [2025-01-15 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252343', 'tblTempVendorCDR_20' ) end [2025-01-15 08:18:19] Production.INFO: ProcessCDR(1,14252343,1,1,2) [2025-01-15 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252343', 'tblTempUsageDetail_20' ) start [2025-01-15 08:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252343', 'tblTempUsageDetail_20' ) end [2025-01-15 08:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:18:24] Production.INFO: ==25770== Releasing lock... [2025-01-15 08:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:18:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-15 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:19:05 [end_date_ymd] => 2025-01-15 08:19:05 [RateCDR] => 1 ) [2025-01-15 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:19:05' and `end` < '2025-01-15 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:19:18] Production.INFO: count ==231 [2025-01-15 08:19:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:19:05 - End Time 2025-01-15 08:19:05 [2025-01-15 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252348', 'tblTempUsageDetail_20' ) start [2025-01-15 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252348', 'tblTempUsageDetail_20' ) end [2025-01-15 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252348', 'tblTempVendorCDR_20' ) start [2025-01-15 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252348', 'tblTempVendorCDR_20' ) end [2025-01-15 08:19:18] Production.INFO: ProcessCDR(1,14252348,1,1,2) [2025-01-15 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252348', 'tblTempUsageDetail_20' ) start [2025-01-15 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252348', 'tblTempUsageDetail_20' ) end [2025-01-15 08:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:19:24] Production.INFO: ==25845== Releasing lock... [2025-01-15 08:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:19:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-15 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:20:06 [end_date_ymd] => 2025-01-15 08:20:06 [RateCDR] => 1 ) [2025-01-15 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:20:06' and `end` < '2025-01-15 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-01-15 08:20:18] Production.INFO: count ==239 [2025-01-15 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:20:06 - End Time 2025-01-15 08:20:06 [2025-01-15 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252354', 'tblTempUsageDetail_20' ) start [2025-01-15 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252354', 'tblTempUsageDetail_20' ) end [2025-01-15 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252354', 'tblTempVendorCDR_20' ) start [2025-01-15 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252354', 'tblTempVendorCDR_20' ) end [2025-01-15 08:20:18] Production.INFO: ProcessCDR(1,14252354,1,1,2) [2025-01-15 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252354', 'tblTempUsageDetail_20' ) start [2025-01-15 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252354', 'tblTempUsageDetail_20' ) end [2025-01-15 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:20:21] Production.INFO: ==25919== Releasing lock... [2025-01-15 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:20:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-15 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:21:05 [end_date_ymd] => 2025-01-15 08:21:05 [RateCDR] => 1 ) [2025-01-15 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:21:05' and `end` < '2025-01-15 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:21:18] Production.INFO: count ==261 [2025-01-15 08:21:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:21:05 - End Time 2025-01-15 08:21:05 [2025-01-15 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252359', 'tblTempUsageDetail_20' ) start [2025-01-15 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252359', 'tblTempUsageDetail_20' ) end [2025-01-15 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252359', 'tblTempVendorCDR_20' ) start [2025-01-15 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252359', 'tblTempVendorCDR_20' ) end [2025-01-15 08:21:18] Production.INFO: ProcessCDR(1,14252359,1,1,2) [2025-01-15 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252359', 'tblTempUsageDetail_20' ) start [2025-01-15 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252359', 'tblTempUsageDetail_20' ) end [2025-01-15 08:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:21:23] Production.INFO: ==25993== Releasing lock... [2025-01-15 08:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:21:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-15 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:22:06 [end_date_ymd] => 2025-01-15 08:22:06 [RateCDR] => 1 ) [2025-01-15 08:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:22:06' and `end` < '2025-01-15 08:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:22:20] Production.INFO: count ==261 [2025-01-15 08:22:20] Production.ERROR: pbx CDR StartTime 2025-01-15 05:22:06 - End Time 2025-01-15 08:22:06 [2025-01-15 08:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252364', 'tblTempUsageDetail_20' ) start [2025-01-15 08:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252364', 'tblTempUsageDetail_20' ) end [2025-01-15 08:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252364', 'tblTempVendorCDR_20' ) start [2025-01-15 08:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252364', 'tblTempVendorCDR_20' ) end [2025-01-15 08:22:20] Production.INFO: ProcessCDR(1,14252364,1,1,2) [2025-01-15 08:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252364', 'tblTempUsageDetail_20' ) start [2025-01-15 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252364', 'tblTempUsageDetail_20' ) end [2025-01-15 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:22:23] Production.INFO: ==26064== Releasing lock... [2025-01-15 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:22:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-15 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:23:05 [end_date_ymd] => 2025-01-15 08:23:05 [RateCDR] => 1 ) [2025-01-15 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:23:05' and `end` < '2025-01-15 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:23:18] Production.INFO: count ==262 [2025-01-15 08:23:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:23:05 - End Time 2025-01-15 08:23:05 [2025-01-15 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252369', 'tblTempUsageDetail_20' ) start [2025-01-15 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252369', 'tblTempUsageDetail_20' ) end [2025-01-15 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252369', 'tblTempVendorCDR_20' ) start [2025-01-15 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252369', 'tblTempVendorCDR_20' ) end [2025-01-15 08:23:18] Production.INFO: ProcessCDR(1,14252369,1,1,2) [2025-01-15 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252369', 'tblTempUsageDetail_20' ) start [2025-01-15 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252369', 'tblTempUsageDetail_20' ) end [2025-01-15 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:23:23] Production.INFO: ==26134== Releasing lock... [2025-01-15 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:23:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-15 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:24:06 [end_date_ymd] => 2025-01-15 08:24:06 [RateCDR] => 1 ) [2025-01-15 08:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:24:06' and `end` < '2025-01-15 08:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:24:18] Production.INFO: count ==262 [2025-01-15 08:24:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:24:06 - End Time 2025-01-15 08:24:06 [2025-01-15 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252374', 'tblTempUsageDetail_20' ) start [2025-01-15 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252374', 'tblTempUsageDetail_20' ) end [2025-01-15 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252374', 'tblTempVendorCDR_20' ) start [2025-01-15 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252374', 'tblTempVendorCDR_20' ) end [2025-01-15 08:24:18] Production.INFO: ProcessCDR(1,14252374,1,1,2) [2025-01-15 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252374', 'tblTempUsageDetail_20' ) start [2025-01-15 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252374', 'tblTempUsageDetail_20' ) end [2025-01-15 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:24:21] Production.INFO: ==26207== Releasing lock... [2025-01-15 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-15 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:25:05 [end_date_ymd] => 2025-01-15 08:25:05 [RateCDR] => 1 ) [2025-01-15 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:25:05' and `end` < '2025-01-15 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:25:17] Production.INFO: count ==263 [2025-01-15 08:25:17] Production.ERROR: pbx CDR StartTime 2025-01-15 05:25:05 - End Time 2025-01-15 08:25:05 [2025-01-15 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252379', 'tblTempUsageDetail_20' ) start [2025-01-15 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252379', 'tblTempUsageDetail_20' ) end [2025-01-15 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252379', 'tblTempVendorCDR_20' ) start [2025-01-15 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252379', 'tblTempVendorCDR_20' ) end [2025-01-15 08:25:17] Production.INFO: ProcessCDR(1,14252379,1,1,2) [2025-01-15 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252379', 'tblTempUsageDetail_20' ) start [2025-01-15 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252379', 'tblTempUsageDetail_20' ) end [2025-01-15 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:25:21] Production.INFO: ==26276== Releasing lock... [2025-01-15 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:25:21] Production.INFO: 31 MB #Memory Used# [2025-01-15 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:26:06 [end_date_ymd] => 2025-01-15 08:26:06 [RateCDR] => 1 ) [2025-01-15 08:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:26:06' and `end` < '2025-01-15 08:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:26:21] Production.INFO: count ==276 [2025-01-15 08:26:21] Production.ERROR: pbx CDR StartTime 2025-01-15 05:26:06 - End Time 2025-01-15 08:26:06 [2025-01-15 08:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252384', 'tblTempUsageDetail_20' ) start [2025-01-15 08:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252384', 'tblTempUsageDetail_20' ) end [2025-01-15 08:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252384', 'tblTempVendorCDR_20' ) start [2025-01-15 08:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252384', 'tblTempVendorCDR_20' ) end [2025-01-15 08:26:21] Production.INFO: ProcessCDR(1,14252384,1,1,2) [2025-01-15 08:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252384', 'tblTempUsageDetail_20' ) start [2025-01-15 08:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252384', 'tblTempUsageDetail_20' ) end [2025-01-15 08:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:26:24] Production.INFO: ==26350== Releasing lock... [2025-01-15 08:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:26:24] Production.INFO: 31 MB #Memory Used# [2025-01-15 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:27:05 [end_date_ymd] => 2025-01-15 08:27:05 [RateCDR] => 1 ) [2025-01-15 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:27:05' and `end` < '2025-01-15 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:27:17] Production.INFO: count ==277 [2025-01-15 08:27:17] Production.ERROR: pbx CDR StartTime 2025-01-15 05:27:05 - End Time 2025-01-15 08:27:05 [2025-01-15 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252389', 'tblTempUsageDetail_20' ) start [2025-01-15 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252389', 'tblTempUsageDetail_20' ) end [2025-01-15 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252389', 'tblTempVendorCDR_20' ) start [2025-01-15 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252389', 'tblTempVendorCDR_20' ) end [2025-01-15 08:27:17] Production.INFO: ProcessCDR(1,14252389,1,1,2) [2025-01-15 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252389', 'tblTempUsageDetail_20' ) start [2025-01-15 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252389', 'tblTempUsageDetail_20' ) end [2025-01-15 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:27:23] Production.INFO: ==26420== Releasing lock... [2025-01-15 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:27:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-15 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:28:05 [end_date_ymd] => 2025-01-15 08:28:05 [RateCDR] => 1 ) [2025-01-15 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:28:05' and `end` < '2025-01-15 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:28:19] Production.INFO: count ==303 [2025-01-15 08:28:19] Production.ERROR: pbx CDR StartTime 2025-01-15 05:28:05 - End Time 2025-01-15 08:28:05 [2025-01-15 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252394', 'tblTempUsageDetail_20' ) start [2025-01-15 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252394', 'tblTempUsageDetail_20' ) end [2025-01-15 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252394', 'tblTempVendorCDR_20' ) start [2025-01-15 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252394', 'tblTempVendorCDR_20' ) end [2025-01-15 08:28:19] Production.INFO: ProcessCDR(1,14252394,1,1,2) [2025-01-15 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252394', 'tblTempUsageDetail_20' ) start [2025-01-15 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252394', 'tblTempUsageDetail_20' ) end [2025-01-15 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:28:22] Production.INFO: ==26491== Releasing lock... [2025-01-15 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:28:22] Production.INFO: 31 MB #Memory Used# [2025-01-15 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:29:05 [end_date_ymd] => 2025-01-15 08:29:05 [RateCDR] => 1 ) [2025-01-15 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:29:05' and `end` < '2025-01-15 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:29:18] Production.INFO: count ==323 [2025-01-15 08:29:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:29:05 - End Time 2025-01-15 08:29:05 [2025-01-15 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252399', 'tblTempUsageDetail_20' ) start [2025-01-15 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252399', 'tblTempUsageDetail_20' ) end [2025-01-15 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252399', 'tblTempVendorCDR_20' ) start [2025-01-15 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252399', 'tblTempVendorCDR_20' ) end [2025-01-15 08:29:18] Production.INFO: ProcessCDR(1,14252399,1,1,2) [2025-01-15 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252399', 'tblTempUsageDetail_20' ) start [2025-01-15 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252399', 'tblTempUsageDetail_20' ) end [2025-01-15 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:29:23] Production.INFO: ==26562== Releasing lock... [2025-01-15 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:29:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-15 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:30:06 [end_date_ymd] => 2025-01-15 08:30:06 [RateCDR] => 1 ) [2025-01-15 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:30:06' and `end` < '2025-01-15 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:30:18] Production.INFO: count ==338 [2025-01-15 08:30:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:30:06 - End Time 2025-01-15 08:30:06 [2025-01-15 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252405', 'tblTempUsageDetail_20' ) start [2025-01-15 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252405', 'tblTempUsageDetail_20' ) end [2025-01-15 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252405', 'tblTempVendorCDR_20' ) start [2025-01-15 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252405', 'tblTempVendorCDR_20' ) end [2025-01-15 08:30:18] Production.INFO: ProcessCDR(1,14252405,1,1,2) [2025-01-15 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252405', 'tblTempUsageDetail_20' ) start [2025-01-15 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252405', 'tblTempUsageDetail_20' ) end [2025-01-15 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:30:23] Production.INFO: ==26634== Releasing lock... [2025-01-15 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:30:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-15 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:31:05 [end_date_ymd] => 2025-01-15 08:31:05 [RateCDR] => 1 ) [2025-01-15 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:31:05' and `end` < '2025-01-15 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:31:18] Production.INFO: count ==343 [2025-01-15 08:31:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:31:05 - End Time 2025-01-15 08:31:05 [2025-01-15 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252410', 'tblTempUsageDetail_20' ) start [2025-01-15 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252410', 'tblTempUsageDetail_20' ) end [2025-01-15 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252410', 'tblTempVendorCDR_20' ) start [2025-01-15 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252410', 'tblTempVendorCDR_20' ) end [2025-01-15 08:31:18] Production.INFO: ProcessCDR(1,14252410,1,1,2) [2025-01-15 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252410', 'tblTempUsageDetail_20' ) start [2025-01-15 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252410', 'tblTempUsageDetail_20' ) end [2025-01-15 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:31:23] Production.INFO: ==26706== Releasing lock... [2025-01-15 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:31:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-15 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:32:05 [end_date_ymd] => 2025-01-15 08:32:05 [RateCDR] => 1 ) [2025-01-15 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:32:05' and `end` < '2025-01-15 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:32:18] Production.INFO: count ==349 [2025-01-15 08:32:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:32:05 - End Time 2025-01-15 08:32:05 [2025-01-15 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252415', 'tblTempUsageDetail_20' ) start [2025-01-15 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252415', 'tblTempUsageDetail_20' ) end [2025-01-15 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252415', 'tblTempVendorCDR_20' ) start [2025-01-15 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252415', 'tblTempVendorCDR_20' ) end [2025-01-15 08:32:18] Production.INFO: ProcessCDR(1,14252415,1,1,2) [2025-01-15 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252415', 'tblTempUsageDetail_20' ) start [2025-01-15 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252415', 'tblTempUsageDetail_20' ) end [2025-01-15 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:32:22] Production.INFO: ==26775== Releasing lock... [2025-01-15 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:32:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-15 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:33:05 [end_date_ymd] => 2025-01-15 08:33:05 [RateCDR] => 1 ) [2025-01-15 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:33:05' and `end` < '2025-01-15 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:33:18] Production.INFO: count ==359 [2025-01-15 08:33:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:33:05 - End Time 2025-01-15 08:33:05 [2025-01-15 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252420', 'tblTempUsageDetail_20' ) start [2025-01-15 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252420', 'tblTempUsageDetail_20' ) end [2025-01-15 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252420', 'tblTempVendorCDR_20' ) start [2025-01-15 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252420', 'tblTempVendorCDR_20' ) end [2025-01-15 08:33:18] Production.INFO: ProcessCDR(1,14252420,1,1,2) [2025-01-15 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252420', 'tblTempUsageDetail_20' ) start [2025-01-15 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252420', 'tblTempUsageDetail_20' ) end [2025-01-15 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:33:22] Production.INFO: ==26891== Releasing lock... [2025-01-15 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:33:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-15 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:34:05 [end_date_ymd] => 2025-01-15 08:34:05 [RateCDR] => 1 ) [2025-01-15 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:34:05' and `end` < '2025-01-15 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:34:17] Production.INFO: count ==369 [2025-01-15 08:34:17] Production.ERROR: pbx CDR StartTime 2025-01-15 05:34:05 - End Time 2025-01-15 08:34:05 [2025-01-15 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252425', 'tblTempUsageDetail_20' ) start [2025-01-15 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252425', 'tblTempUsageDetail_20' ) end [2025-01-15 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252425', 'tblTempVendorCDR_20' ) start [2025-01-15 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252425', 'tblTempVendorCDR_20' ) end [2025-01-15 08:34:17] Production.INFO: ProcessCDR(1,14252425,1,1,2) [2025-01-15 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252425', 'tblTempUsageDetail_20' ) start [2025-01-15 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252425', 'tblTempUsageDetail_20' ) end [2025-01-15 08:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:34:20] Production.INFO: ==26962== Releasing lock... [2025-01-15 08:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:34:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-15 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:35:05 [end_date_ymd] => 2025-01-15 08:35:05 [RateCDR] => 1 ) [2025-01-15 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:35:05' and `end` < '2025-01-15 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:35:18] Production.INFO: count ==374 [2025-01-15 08:35:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:35:05 - End Time 2025-01-15 08:35:05 [2025-01-15 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252430', 'tblTempUsageDetail_20' ) start [2025-01-15 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252430', 'tblTempUsageDetail_20' ) end [2025-01-15 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252430', 'tblTempVendorCDR_20' ) start [2025-01-15 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252430', 'tblTempVendorCDR_20' ) end [2025-01-15 08:35:18] Production.INFO: ProcessCDR(1,14252430,1,1,2) [2025-01-15 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252430', 'tblTempUsageDetail_20' ) start [2025-01-15 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252430', 'tblTempUsageDetail_20' ) end [2025-01-15 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:35:21] Production.INFO: ==27034== Releasing lock... [2025-01-15 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:35:21] Production.INFO: 31 MB #Memory Used# [2025-01-15 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:36:05 [end_date_ymd] => 2025-01-15 08:36:05 [RateCDR] => 1 ) [2025-01-15 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:36:05' and `end` < '2025-01-15 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:36:17] Production.INFO: count ==380 [2025-01-15 08:36:17] Production.ERROR: pbx CDR StartTime 2025-01-15 05:36:05 - End Time 2025-01-15 08:36:05 [2025-01-15 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252435', 'tblTempUsageDetail_20' ) start [2025-01-15 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252435', 'tblTempUsageDetail_20' ) end [2025-01-15 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252435', 'tblTempVendorCDR_20' ) start [2025-01-15 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252435', 'tblTempVendorCDR_20' ) end [2025-01-15 08:36:17] Production.INFO: ProcessCDR(1,14252435,1,1,2) [2025-01-15 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252435', 'tblTempUsageDetail_20' ) start [2025-01-15 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252435', 'tblTempUsageDetail_20' ) end [2025-01-15 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:36:21] Production.INFO: ==27105== Releasing lock... [2025-01-15 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:36:21] Production.INFO: 32 MB #Memory Used# [2025-01-15 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:37:05 [end_date_ymd] => 2025-01-15 08:37:05 [RateCDR] => 1 ) [2025-01-15 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:37:05' and `end` < '2025-01-15 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:37:18] Production.INFO: count ==388 [2025-01-15 08:37:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:37:05 - End Time 2025-01-15 08:37:05 [2025-01-15 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252440', 'tblTempUsageDetail_20' ) start [2025-01-15 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252440', 'tblTempUsageDetail_20' ) end [2025-01-15 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252440', 'tblTempVendorCDR_20' ) start [2025-01-15 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252440', 'tblTempVendorCDR_20' ) end [2025-01-15 08:37:18] Production.INFO: ProcessCDR(1,14252440,1,1,2) [2025-01-15 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252440', 'tblTempUsageDetail_20' ) start [2025-01-15 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252440', 'tblTempUsageDetail_20' ) end [2025-01-15 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:37:22] Production.INFO: ==27175== Releasing lock... [2025-01-15 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:37:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-15 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:38:05 [end_date_ymd] => 2025-01-15 08:38:05 [RateCDR] => 1 ) [2025-01-15 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:38:05' and `end` < '2025-01-15 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:38:17] Production.INFO: count ==388 [2025-01-15 08:38:17] Production.ERROR: pbx CDR StartTime 2025-01-15 05:38:05 - End Time 2025-01-15 08:38:05 [2025-01-15 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252445', 'tblTempUsageDetail_20' ) start [2025-01-15 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252445', 'tblTempUsageDetail_20' ) end [2025-01-15 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252445', 'tblTempVendorCDR_20' ) start [2025-01-15 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252445', 'tblTempVendorCDR_20' ) end [2025-01-15 08:38:17] Production.INFO: ProcessCDR(1,14252445,1,1,2) [2025-01-15 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252445', 'tblTempUsageDetail_20' ) start [2025-01-15 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252445', 'tblTempUsageDetail_20' ) end [2025-01-15 08:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:38:20] Production.INFO: ==27244== Releasing lock... [2025-01-15 08:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:38:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-15 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:39:06 [end_date_ymd] => 2025-01-15 08:39:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 05:39:06' and `end` < '2025-01-15 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-01-15 08:39:19] Production.INFO: count ==393 [2025-01-15 08:39:19] Production.ERROR: pbx CDR StartTime 2025-01-15 05:39:06 - End Time 2025-01-15 08:39:06 [2025-01-15 08:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252450', 'tblTempUsageDetail_20' ) start [2025-01-15 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252450', 'tblTempUsageDetail_20' ) end [2025-01-15 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252450', 'tblTempVendorCDR_20' ) start [2025-01-15 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252450', 'tblTempVendorCDR_20' ) end [2025-01-15 08:39:19] Production.INFO: ProcessCDR(1,14252450,1,1,2) [2025-01-15 08:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252450', 'tblTempUsageDetail_20' ) start [2025-01-15 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252450', 'tblTempUsageDetail_20' ) end [2025-01-15 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:39:22] Production.INFO: ==27314== Releasing lock... [2025-01-15 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:39:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-15 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:40:06 [end_date_ymd] => 2025-01-15 08:40:06 [RateCDR] => 1 ) [2025-01-15 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:40:06' and `end` < '2025-01-15 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:40:18] Production.INFO: count ==404 [2025-01-15 08:40:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:40:06 - End Time 2025-01-15 08:40:06 [2025-01-15 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252456', 'tblTempUsageDetail_20' ) start [2025-01-15 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252456', 'tblTempUsageDetail_20' ) end [2025-01-15 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252456', 'tblTempVendorCDR_20' ) start [2025-01-15 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252456', 'tblTempVendorCDR_20' ) end [2025-01-15 08:40:18] Production.INFO: ProcessCDR(1,14252456,1,1,2) [2025-01-15 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252456', 'tblTempUsageDetail_20' ) start [2025-01-15 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252456', 'tblTempUsageDetail_20' ) end [2025-01-15 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:40:22] Production.INFO: ==27387== Releasing lock... [2025-01-15 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-15 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:41:05 [end_date_ymd] => 2025-01-15 08:41:05 [RateCDR] => 1 ) [2025-01-15 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:41:05' and `end` < '2025-01-15 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:41:18] Production.INFO: count ==433 [2025-01-15 08:41:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:41:05 - End Time 2025-01-15 08:41:05 [2025-01-15 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252461', 'tblTempUsageDetail_20' ) start [2025-01-15 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252461', 'tblTempUsageDetail_20' ) end [2025-01-15 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252461', 'tblTempVendorCDR_20' ) start [2025-01-15 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252461', 'tblTempVendorCDR_20' ) end [2025-01-15 08:41:18] Production.INFO: ProcessCDR(1,14252461,1,1,2) [2025-01-15 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252461', 'tblTempUsageDetail_20' ) start [2025-01-15 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252461', 'tblTempUsageDetail_20' ) end [2025-01-15 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:41:23] Production.INFO: ==27460== Releasing lock... [2025-01-15 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:41:23] Production.INFO: 32 MB #Memory Used# [2025-01-15 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:42:05 [end_date_ymd] => 2025-01-15 08:42:05 [RateCDR] => 1 ) [2025-01-15 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:42:05' and `end` < '2025-01-15 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:42:17] Production.INFO: count ==448 [2025-01-15 08:42:17] Production.ERROR: pbx CDR StartTime 2025-01-15 05:42:05 - End Time 2025-01-15 08:42:05 [2025-01-15 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252466', 'tblTempUsageDetail_20' ) start [2025-01-15 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252466', 'tblTempUsageDetail_20' ) end [2025-01-15 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252466', 'tblTempVendorCDR_20' ) start [2025-01-15 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252466', 'tblTempVendorCDR_20' ) end [2025-01-15 08:42:17] Production.INFO: ProcessCDR(1,14252466,1,1,2) [2025-01-15 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252466', 'tblTempUsageDetail_20' ) start [2025-01-15 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252466', 'tblTempUsageDetail_20' ) end [2025-01-15 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:42:21] Production.INFO: ==27529== Releasing lock... [2025-01-15 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:43:06 [end_date_ymd] => 2025-01-15 08:43:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 05:43:06' and `end` < '2025-01-15 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-01-15 08:43:19] Production.INFO: count ==464 [2025-01-15 08:43:19] Production.ERROR: pbx CDR StartTime 2025-01-15 05:43:06 - End Time 2025-01-15 08:43:06 [2025-01-15 08:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252471', 'tblTempUsageDetail_20' ) start [2025-01-15 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252471', 'tblTempUsageDetail_20' ) end [2025-01-15 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252471', 'tblTempVendorCDR_20' ) start [2025-01-15 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252471', 'tblTempVendorCDR_20' ) end [2025-01-15 08:43:19] Production.INFO: ProcessCDR(1,14252471,1,1,2) [2025-01-15 08:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252471', 'tblTempUsageDetail_20' ) start [2025-01-15 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252471', 'tblTempUsageDetail_20' ) end [2025-01-15 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:43:22] Production.INFO: ==27600== Releasing lock... [2025-01-15 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:43:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:44:05 [end_date_ymd] => 2025-01-15 08:44:05 [RateCDR] => 1 ) [2025-01-15 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:44:05' and `end` < '2025-01-15 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:44:17] Production.INFO: count ==468 [2025-01-15 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:44:05 - End Time 2025-01-15 08:44:05 [2025-01-15 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252476', 'tblTempUsageDetail_20' ) start [2025-01-15 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252476', 'tblTempUsageDetail_20' ) end [2025-01-15 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252476', 'tblTempVendorCDR_20' ) start [2025-01-15 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252476', 'tblTempVendorCDR_20' ) end [2025-01-15 08:44:18] Production.INFO: ProcessCDR(1,14252476,1,1,2) [2025-01-15 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252476', 'tblTempUsageDetail_20' ) start [2025-01-15 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252476', 'tblTempUsageDetail_20' ) end [2025-01-15 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:44:21] Production.INFO: ==27675== Releasing lock... [2025-01-15 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:44:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:45:05 [end_date_ymd] => 2025-01-15 08:45:05 [RateCDR] => 1 ) [2025-01-15 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:45:05' and `end` < '2025-01-15 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:45:18] Production.INFO: count ==470 [2025-01-15 08:45:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:45:05 - End Time 2025-01-15 08:45:05 [2025-01-15 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252481', 'tblTempUsageDetail_20' ) start [2025-01-15 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252481', 'tblTempUsageDetail_20' ) end [2025-01-15 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252481', 'tblTempVendorCDR_20' ) start [2025-01-15 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252481', 'tblTempVendorCDR_20' ) end [2025-01-15 08:45:19] Production.INFO: ProcessCDR(1,14252481,1,1,2) [2025-01-15 08:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252481', 'tblTempUsageDetail_20' ) start [2025-01-15 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252481', 'tblTempUsageDetail_20' ) end [2025-01-15 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:45:23] Production.INFO: ==27746== Releasing lock... [2025-01-15 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:45:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:46:05 [end_date_ymd] => 2025-01-15 08:46:05 [RateCDR] => 1 ) [2025-01-15 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:46:05' and `end` < '2025-01-15 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:46:18] Production.INFO: count ==475 [2025-01-15 08:46:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:46:05 - End Time 2025-01-15 08:46:05 [2025-01-15 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252486', 'tblTempUsageDetail_20' ) start [2025-01-15 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252486', 'tblTempUsageDetail_20' ) end [2025-01-15 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252486', 'tblTempVendorCDR_20' ) start [2025-01-15 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252486', 'tblTempVendorCDR_20' ) end [2025-01-15 08:46:18] Production.INFO: ProcessCDR(1,14252486,1,1,2) [2025-01-15 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252486', 'tblTempUsageDetail_20' ) start [2025-01-15 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252486', 'tblTempUsageDetail_20' ) end [2025-01-15 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:46:22] Production.INFO: ==27816== Releasing lock... [2025-01-15 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:46:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:47:06 [end_date_ymd] => 2025-01-15 08:47:06 [RateCDR] => 1 ) [2025-01-15 08:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:47:06' and `end` < '2025-01-15 08:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:47:19] Production.INFO: count ==477 [2025-01-15 08:47:20] Production.ERROR: pbx CDR StartTime 2025-01-15 05:47:06 - End Time 2025-01-15 08:47:06 [2025-01-15 08:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252491', 'tblTempUsageDetail_20' ) start [2025-01-15 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252491', 'tblTempUsageDetail_20' ) end [2025-01-15 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252491', 'tblTempVendorCDR_20' ) start [2025-01-15 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252491', 'tblTempVendorCDR_20' ) end [2025-01-15 08:47:20] Production.INFO: ProcessCDR(1,14252491,1,1,2) [2025-01-15 08:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252491', 'tblTempUsageDetail_20' ) start [2025-01-15 08:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252491', 'tblTempUsageDetail_20' ) end [2025-01-15 08:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:47:25] Production.INFO: ==27889== Releasing lock... [2025-01-15 08:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:47:25] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:48:05 [end_date_ymd] => 2025-01-15 08:48:05 [RateCDR] => 1 ) [2025-01-15 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:48:05' and `end` < '2025-01-15 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:48:18] Production.INFO: count ==487 [2025-01-15 08:48:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:48:05 - End Time 2025-01-15 08:48:05 [2025-01-15 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252496', 'tblTempUsageDetail_20' ) start [2025-01-15 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252496', 'tblTempUsageDetail_20' ) end [2025-01-15 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252496', 'tblTempVendorCDR_20' ) start [2025-01-15 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252496', 'tblTempVendorCDR_20' ) end [2025-01-15 08:48:18] Production.INFO: ProcessCDR(1,14252496,1,1,2) [2025-01-15 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252496', 'tblTempUsageDetail_20' ) start [2025-01-15 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252496', 'tblTempUsageDetail_20' ) end [2025-01-15 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:48:22] Production.INFO: ==27960== Releasing lock... [2025-01-15 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:48:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:49:05 [end_date_ymd] => 2025-01-15 08:49:05 [RateCDR] => 1 ) [2025-01-15 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:49:05' and `end` < '2025-01-15 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:49:19] Production.INFO: count ==492 [2025-01-15 08:49:19] Production.ERROR: pbx CDR StartTime 2025-01-15 05:49:05 - End Time 2025-01-15 08:49:05 [2025-01-15 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252501', 'tblTempUsageDetail_20' ) start [2025-01-15 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252501', 'tblTempUsageDetail_20' ) end [2025-01-15 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252501', 'tblTempVendorCDR_20' ) start [2025-01-15 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252501', 'tblTempVendorCDR_20' ) end [2025-01-15 08:49:19] Production.INFO: ProcessCDR(1,14252501,1,1,2) [2025-01-15 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252501', 'tblTempUsageDetail_20' ) start [2025-01-15 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252501', 'tblTempUsageDetail_20' ) end [2025-01-15 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:49:22] Production.INFO: ==28070== Releasing lock... [2025-01-15 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:49:22] Production.INFO: 32 MB #Memory Used# [2025-01-15 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:50:06 [end_date_ymd] => 2025-01-15 08:50:06 [RateCDR] => 1 ) [2025-01-15 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:50:06' and `end` < '2025-01-15 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:50:18] Production.INFO: count ==501 [2025-01-15 08:50:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:50:06 - End Time 2025-01-15 08:50:06 [2025-01-15 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252507', 'tblTempUsageDetail_20' ) start [2025-01-15 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252507', 'tblTempUsageDetail_20' ) end [2025-01-15 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252507', 'tblTempVendorCDR_20' ) start [2025-01-15 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252507', 'tblTempVendorCDR_20' ) end [2025-01-15 08:50:18] Production.INFO: ProcessCDR(1,14252507,1,1,2) [2025-01-15 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252507', 'tblTempUsageDetail_20' ) start [2025-01-15 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252507', 'tblTempUsageDetail_20' ) end [2025-01-15 08:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:50:21] Production.INFO: ==28143== Releasing lock... [2025-01-15 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:50:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 08:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:51:06 [end_date_ymd] => 2025-01-15 08:51:06 [RateCDR] => 1 ) [2025-01-15 08:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:51:06' and `end` < '2025-01-15 08:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:51:18] Production.INFO: count ==515 [2025-01-15 08:51:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:51:06 - End Time 2025-01-15 08:51:06 [2025-01-15 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252512', 'tblTempUsageDetail_20' ) start [2025-01-15 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252512', 'tblTempUsageDetail_20' ) end [2025-01-15 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252512', 'tblTempVendorCDR_20' ) start [2025-01-15 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252512', 'tblTempVendorCDR_20' ) end [2025-01-15 08:51:18] Production.INFO: ProcessCDR(1,14252512,1,1,2) [2025-01-15 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252512', 'tblTempUsageDetail_20' ) start [2025-01-15 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252512', 'tblTempUsageDetail_20' ) end [2025-01-15 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:51:22] Production.INFO: ==28216== Releasing lock... [2025-01-15 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:51:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-15 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:52:05 [end_date_ymd] => 2025-01-15 08:52:05 [RateCDR] => 1 ) [2025-01-15 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:52:05' and `end` < '2025-01-15 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:52:18] Production.INFO: count ==516 [2025-01-15 08:52:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:52:05 - End Time 2025-01-15 08:52:05 [2025-01-15 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252517', 'tblTempUsageDetail_20' ) start [2025-01-15 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252517', 'tblTempUsageDetail_20' ) end [2025-01-15 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252517', 'tblTempVendorCDR_20' ) start [2025-01-15 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252517', 'tblTempVendorCDR_20' ) end [2025-01-15 08:52:18] Production.INFO: ProcessCDR(1,14252517,1,1,2) [2025-01-15 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252517', 'tblTempUsageDetail_20' ) start [2025-01-15 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252517', 'tblTempUsageDetail_20' ) end [2025-01-15 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:52:22] Production.INFO: ==28285== Releasing lock... [2025-01-15 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:52:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-15 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:53:05 [end_date_ymd] => 2025-01-15 08:53:05 [RateCDR] => 1 ) [2025-01-15 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:53:05' and `end` < '2025-01-15 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:53:19] Production.INFO: count ==519 [2025-01-15 08:53:19] Production.ERROR: pbx CDR StartTime 2025-01-15 05:53:05 - End Time 2025-01-15 08:53:05 [2025-01-15 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252522', 'tblTempUsageDetail_20' ) start [2025-01-15 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252522', 'tblTempUsageDetail_20' ) end [2025-01-15 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252522', 'tblTempVendorCDR_20' ) start [2025-01-15 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252522', 'tblTempVendorCDR_20' ) end [2025-01-15 08:53:19] Production.INFO: ProcessCDR(1,14252522,1,1,2) [2025-01-15 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252522', 'tblTempUsageDetail_20' ) start [2025-01-15 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252522', 'tblTempUsageDetail_20' ) end [2025-01-15 08:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:53:24] Production.INFO: ==28356== Releasing lock... [2025-01-15 08:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:53:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-15 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:54:04 [end_date_ymd] => 2025-01-15 08:54:04 [RateCDR] => 1 ) [2025-01-15 08:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:54:04' and `end` < '2025-01-15 08:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:54:16] Production.INFO: count ==537 [2025-01-15 08:54:17] Production.ERROR: pbx CDR StartTime 2025-01-15 05:54:04 - End Time 2025-01-15 08:54:04 [2025-01-15 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252527', 'tblTempUsageDetail_20' ) start [2025-01-15 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252527', 'tblTempUsageDetail_20' ) end [2025-01-15 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252527', 'tblTempVendorCDR_20' ) start [2025-01-15 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252527', 'tblTempVendorCDR_20' ) end [2025-01-15 08:54:17] Production.INFO: ProcessCDR(1,14252527,1,1,2) [2025-01-15 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252527', 'tblTempUsageDetail_20' ) start [2025-01-15 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252527', 'tblTempUsageDetail_20' ) end [2025-01-15 08:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:54:20] Production.INFO: ==28424== Releasing lock... [2025-01-15 08:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:54:20] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:55:05 [end_date_ymd] => 2025-01-15 08:55:05 [RateCDR] => 1 ) [2025-01-15 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:55:05' and `end` < '2025-01-15 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:55:17] Production.INFO: count ==537 [2025-01-15 08:55:17] Production.ERROR: pbx CDR StartTime 2025-01-15 05:55:05 - End Time 2025-01-15 08:55:05 [2025-01-15 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252532', 'tblTempUsageDetail_20' ) start [2025-01-15 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252532', 'tblTempUsageDetail_20' ) end [2025-01-15 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252532', 'tblTempVendorCDR_20' ) start [2025-01-15 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252532', 'tblTempVendorCDR_20' ) end [2025-01-15 08:55:17] Production.INFO: ProcessCDR(1,14252532,1,1,2) [2025-01-15 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252532', 'tblTempUsageDetail_20' ) start [2025-01-15 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252532', 'tblTempUsageDetail_20' ) end [2025-01-15 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:55:21] Production.INFO: ==28497== Releasing lock... [2025-01-15 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:55:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:56:05 [end_date_ymd] => 2025-01-15 08:56:05 [RateCDR] => 1 ) [2025-01-15 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:56:05' and `end` < '2025-01-15 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:56:19] Production.INFO: count ==538 [2025-01-15 08:56:19] Production.ERROR: pbx CDR StartTime 2025-01-15 05:56:05 - End Time 2025-01-15 08:56:05 [2025-01-15 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252537', 'tblTempUsageDetail_20' ) start [2025-01-15 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252537', 'tblTempUsageDetail_20' ) end [2025-01-15 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252537', 'tblTempVendorCDR_20' ) start [2025-01-15 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252537', 'tblTempVendorCDR_20' ) end [2025-01-15 08:56:19] Production.INFO: ProcessCDR(1,14252537,1,1,2) [2025-01-15 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252537', 'tblTempUsageDetail_20' ) start [2025-01-15 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252537', 'tblTempUsageDetail_20' ) end [2025-01-15 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:56:22] Production.INFO: ==28571== Releasing lock... [2025-01-15 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:56:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:57:05 [end_date_ymd] => 2025-01-15 08:57:05 [RateCDR] => 1 ) [2025-01-15 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:57:05' and `end` < '2025-01-15 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:57:18] Production.INFO: count ==538 [2025-01-15 08:57:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:57:05 - End Time 2025-01-15 08:57:05 [2025-01-15 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252542', 'tblTempUsageDetail_20' ) start [2025-01-15 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252542', 'tblTempUsageDetail_20' ) end [2025-01-15 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252542', 'tblTempVendorCDR_20' ) start [2025-01-15 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252542', 'tblTempVendorCDR_20' ) end [2025-01-15 08:57:18] Production.INFO: ProcessCDR(1,14252542,1,1,2) [2025-01-15 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252542', 'tblTempUsageDetail_20' ) start [2025-01-15 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252542', 'tblTempUsageDetail_20' ) end [2025-01-15 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:57:21] Production.INFO: ==28641== Releasing lock... [2025-01-15 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:57:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:58:05 [end_date_ymd] => 2025-01-15 08:58:05 [RateCDR] => 1 ) [2025-01-15 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:58:05' and `end` < '2025-01-15 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:58:18] Production.INFO: count ==545 [2025-01-15 08:58:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:58:05 - End Time 2025-01-15 08:58:05 [2025-01-15 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252547', 'tblTempUsageDetail_20' ) start [2025-01-15 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252547', 'tblTempUsageDetail_20' ) end [2025-01-15 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252547', 'tblTempVendorCDR_20' ) start [2025-01-15 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252547', 'tblTempVendorCDR_20' ) end [2025-01-15 08:58:18] Production.INFO: ProcessCDR(1,14252547,1,1,2) [2025-01-15 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252547', 'tblTempUsageDetail_20' ) start [2025-01-15 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252547', 'tblTempUsageDetail_20' ) end [2025-01-15 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:58:21] Production.INFO: ==28710== Releasing lock... [2025-01-15 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:58:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-15 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 05:59:05 [end_date_ymd] => 2025-01-15 08:59:05 [RateCDR] => 1 ) [2025-01-15 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 05:59:05' and `end` < '2025-01-15 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 08:59:18] Production.INFO: count ==547 [2025-01-15 08:59:18] Production.ERROR: pbx CDR StartTime 2025-01-15 05:59:05 - End Time 2025-01-15 08:59:05 [2025-01-15 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252552', 'tblTempUsageDetail_20' ) start [2025-01-15 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252552', 'tblTempUsageDetail_20' ) end [2025-01-15 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252552', 'tblTempVendorCDR_20' ) start [2025-01-15 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252552', 'tblTempVendorCDR_20' ) end [2025-01-15 08:59:18] Production.INFO: ProcessCDR(1,14252552,1,1,2) [2025-01-15 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252552', 'tblTempUsageDetail_20' ) start [2025-01-15 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252552', 'tblTempUsageDetail_20' ) end [2025-01-15 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 08:59:23] Production.INFO: ==28782== Releasing lock... [2025-01-15 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 08:59:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:00:05 [end_date_ymd] => 2025-01-15 09:00:05 [RateCDR] => 1 ) [2025-01-15 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:00:05' and `end` < '2025-01-15 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:00:17] Production.INFO: count ==558 [2025-01-15 09:00:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:00:05 - End Time 2025-01-15 09:00:05 [2025-01-15 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252557', 'tblTempUsageDetail_20' ) start [2025-01-15 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252557', 'tblTempUsageDetail_20' ) end [2025-01-15 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252557', 'tblTempVendorCDR_20' ) start [2025-01-15 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252557', 'tblTempVendorCDR_20' ) end [2025-01-15 09:00:18] Production.INFO: ProcessCDR(1,14252557,1,1,2) [2025-01-15 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252557', 'tblTempUsageDetail_20' ) start [2025-01-15 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252557', 'tblTempUsageDetail_20' ) end [2025-01-15 09:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:00:21] Production.INFO: ==28857== Releasing lock... [2025-01-15 09:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:00:21] Production.INFO: 33 MB #Memory Used# [2025-01-15 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:01:05 [end_date_ymd] => 2025-01-15 09:01:05 [RateCDR] => 1 ) [2025-01-15 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:01:05' and `end` < '2025-01-15 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:01:17] Production.INFO: count ==576 [2025-01-15 09:01:17] Production.ERROR: pbx CDR StartTime 2025-01-15 06:01:05 - End Time 2025-01-15 09:01:05 [2025-01-15 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252563', 'tblTempUsageDetail_20' ) start [2025-01-15 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252563', 'tblTempUsageDetail_20' ) end [2025-01-15 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252563', 'tblTempVendorCDR_20' ) start [2025-01-15 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252563', 'tblTempVendorCDR_20' ) end [2025-01-15 09:01:17] Production.INFO: ProcessCDR(1,14252563,1,1,2) [2025-01-15 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252563', 'tblTempUsageDetail_20' ) start [2025-01-15 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252563', 'tblTempUsageDetail_20' ) end [2025-01-15 09:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:01:20] Production.INFO: ==28946== Releasing lock... [2025-01-15 09:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:01:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-15 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:02:05 [end_date_ymd] => 2025-01-15 09:02:05 [RateCDR] => 1 ) [2025-01-15 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:02:05' and `end` < '2025-01-15 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:02:17] Production.INFO: count ==582 [2025-01-15 09:02:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:02:05 - End Time 2025-01-15 09:02:05 [2025-01-15 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252568', 'tblTempUsageDetail_20' ) start [2025-01-15 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252568', 'tblTempUsageDetail_20' ) end [2025-01-15 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252568', 'tblTempVendorCDR_20' ) start [2025-01-15 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252568', 'tblTempVendorCDR_20' ) end [2025-01-15 09:02:18] Production.INFO: ProcessCDR(1,14252568,1,1,2) [2025-01-15 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252568', 'tblTempUsageDetail_20' ) start [2025-01-15 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252568', 'tblTempUsageDetail_20' ) end [2025-01-15 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:02:21] Production.INFO: ==29026== Releasing lock... [2025-01-15 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:02:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-15 09:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:03:04 [end_date_ymd] => 2025-01-15 09:03:04 [RateCDR] => 1 ) [2025-01-15 09:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:03:04' and `end` < '2025-01-15 09:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:03:16] Production.INFO: count ==599 [2025-01-15 09:03:17] Production.ERROR: pbx CDR StartTime 2025-01-15 06:03:04 - End Time 2025-01-15 09:03:04 [2025-01-15 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252573', 'tblTempUsageDetail_20' ) start [2025-01-15 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252573', 'tblTempUsageDetail_20' ) end [2025-01-15 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252573', 'tblTempVendorCDR_20' ) start [2025-01-15 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252573', 'tblTempVendorCDR_20' ) end [2025-01-15 09:03:17] Production.INFO: ProcessCDR(1,14252573,1,1,2) [2025-01-15 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252573', 'tblTempUsageDetail_20' ) start [2025-01-15 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252573', 'tblTempUsageDetail_20' ) end [2025-01-15 09:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:03:20] Production.INFO: ==29102== Releasing lock... [2025-01-15 09:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:03:20] Production.INFO: 32.75 MB #Memory Used# [2025-01-15 09:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:04:04 [end_date_ymd] => 2025-01-15 09:04:04 [RateCDR] => 1 ) [2025-01-15 09:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:04:04' and `end` < '2025-01-15 09:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:04:18] Production.INFO: count ==606 [2025-01-15 09:04:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:04:04 - End Time 2025-01-15 09:04:04 [2025-01-15 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252578', 'tblTempUsageDetail_20' ) start [2025-01-15 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252578', 'tblTempUsageDetail_20' ) end [2025-01-15 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252578', 'tblTempVendorCDR_20' ) start [2025-01-15 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252578', 'tblTempVendorCDR_20' ) end [2025-01-15 09:04:18] Production.INFO: ProcessCDR(1,14252578,1,1,2) [2025-01-15 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252578', 'tblTempUsageDetail_20' ) start [2025-01-15 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252578', 'tblTempUsageDetail_20' ) end [2025-01-15 09:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:04:22] Production.INFO: ==29214== Releasing lock... [2025-01-15 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:04:22] Production.INFO: 33 MB #Memory Used# [2025-01-15 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:05:05 [end_date_ymd] => 2025-01-15 09:05:05 [RateCDR] => 1 ) [2025-01-15 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:05:05' and `end` < '2025-01-15 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:05:17] Production.INFO: count ==611 [2025-01-15 09:05:17] Production.ERROR: pbx CDR StartTime 2025-01-15 06:05:05 - End Time 2025-01-15 09:05:05 [2025-01-15 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252583', 'tblTempUsageDetail_20' ) start [2025-01-15 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252583', 'tblTempUsageDetail_20' ) end [2025-01-15 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252583', 'tblTempVendorCDR_20' ) start [2025-01-15 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252583', 'tblTempVendorCDR_20' ) end [2025-01-15 09:05:17] Production.INFO: ProcessCDR(1,14252583,1,1,2) [2025-01-15 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252583', 'tblTempUsageDetail_20' ) start [2025-01-15 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252583', 'tblTempUsageDetail_20' ) end [2025-01-15 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:05:22] Production.INFO: ==29305== Releasing lock... [2025-01-15 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:05:22] Production.INFO: 33 MB #Memory Used# [2025-01-15 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:06:04 [end_date_ymd] => 2025-01-15 09:06:04 [RateCDR] => 1 ) [2025-01-15 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:06:04' and `end` < '2025-01-15 09:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:06:20] Production.INFO: count ==625 [2025-01-15 09:06:20] Production.ERROR: pbx CDR StartTime 2025-01-15 06:06:04 - End Time 2025-01-15 09:06:04 [2025-01-15 09:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252588', 'tblTempUsageDetail_20' ) start [2025-01-15 09:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252588', 'tblTempUsageDetail_20' ) end [2025-01-15 09:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252588', 'tblTempVendorCDR_20' ) start [2025-01-15 09:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252588', 'tblTempVendorCDR_20' ) end [2025-01-15 09:06:20] Production.INFO: ProcessCDR(1,14252588,1,1,2) [2025-01-15 09:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252588', 'tblTempUsageDetail_20' ) start [2025-01-15 09:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252588', 'tblTempUsageDetail_20' ) end [2025-01-15 09:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:06:25] Production.INFO: ==29384== Releasing lock... [2025-01-15 09:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:06:25] Production.INFO: 33.5 MB #Memory Used# [2025-01-15 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:07:05 [end_date_ymd] => 2025-01-15 09:07:05 [RateCDR] => 1 ) [2025-01-15 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:07:05' and `end` < '2025-01-15 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:07:19] Production.INFO: count ==627 [2025-01-15 09:07:19] Production.ERROR: pbx CDR StartTime 2025-01-15 06:07:05 - End Time 2025-01-15 09:07:05 [2025-01-15 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252593', 'tblTempUsageDetail_20' ) start [2025-01-15 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252593', 'tblTempUsageDetail_20' ) end [2025-01-15 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252593', 'tblTempVendorCDR_20' ) start [2025-01-15 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252593', 'tblTempVendorCDR_20' ) end [2025-01-15 09:07:19] Production.INFO: ProcessCDR(1,14252593,1,1,2) [2025-01-15 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252593', 'tblTempUsageDetail_20' ) start [2025-01-15 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252593', 'tblTempUsageDetail_20' ) end [2025-01-15 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:07:23] Production.INFO: ==29461== Releasing lock... [2025-01-15 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:07:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-15 09:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:08:04 [end_date_ymd] => 2025-01-15 09:08:04 [RateCDR] => 1 ) [2025-01-15 09:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:08:04' and `end` < '2025-01-15 09:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:08:17] Production.INFO: count ==654 [2025-01-15 09:08:17] Production.ERROR: pbx CDR StartTime 2025-01-15 06:08:04 - End Time 2025-01-15 09:08:04 [2025-01-15 09:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252598', 'tblTempUsageDetail_20' ) start [2025-01-15 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252598', 'tblTempUsageDetail_20' ) end [2025-01-15 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252598', 'tblTempVendorCDR_20' ) start [2025-01-15 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252598', 'tblTempVendorCDR_20' ) end [2025-01-15 09:08:17] Production.INFO: ProcessCDR(1,14252598,1,1,2) [2025-01-15 09:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252598', 'tblTempUsageDetail_20' ) start [2025-01-15 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252598', 'tblTempUsageDetail_20' ) end [2025-01-15 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:08:22] Production.INFO: ==29543== Releasing lock... [2025-01-15 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:08:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-15 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:09:05 [end_date_ymd] => 2025-01-15 09:09:05 [RateCDR] => 1 ) [2025-01-15 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:09:05' and `end` < '2025-01-15 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:09:18] Production.INFO: count ==671 [2025-01-15 09:09:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:09:05 - End Time 2025-01-15 09:09:05 [2025-01-15 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252603', 'tblTempUsageDetail_20' ) start [2025-01-15 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252603', 'tblTempUsageDetail_20' ) end [2025-01-15 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252603', 'tblTempVendorCDR_20' ) start [2025-01-15 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252603', 'tblTempVendorCDR_20' ) end [2025-01-15 09:09:18] Production.INFO: ProcessCDR(1,14252603,1,1,2) [2025-01-15 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252603', 'tblTempUsageDetail_20' ) start [2025-01-15 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252603', 'tblTempUsageDetail_20' ) end [2025-01-15 09:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:09:21] Production.INFO: ==29623== Releasing lock... [2025-01-15 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:09:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-15 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:10:06 [end_date_ymd] => 2025-01-15 09:10:06 [RateCDR] => 1 ) [2025-01-15 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:10:06' and `end` < '2025-01-15 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:10:19] Production.INFO: count ==709 [2025-01-15 09:10:19] Production.ERROR: pbx CDR StartTime 2025-01-15 06:10:06 - End Time 2025-01-15 09:10:06 [2025-01-15 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252609', 'tblTempUsageDetail_20' ) start [2025-01-15 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252609', 'tblTempUsageDetail_20' ) end [2025-01-15 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252609', 'tblTempVendorCDR_20' ) start [2025-01-15 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252609', 'tblTempVendorCDR_20' ) end [2025-01-15 09:10:19] Production.INFO: ProcessCDR(1,14252609,1,1,2) [2025-01-15 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252609', 'tblTempUsageDetail_20' ) start [2025-01-15 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252609', 'tblTempUsageDetail_20' ) end [2025-01-15 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:10:23] Production.INFO: ==29705== Releasing lock... [2025-01-15 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:10:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-15 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:11:05 [end_date_ymd] => 2025-01-15 09:11:05 [RateCDR] => 1 ) [2025-01-15 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:11:05' and `end` < '2025-01-15 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:11:17] Production.INFO: count ==785 [2025-01-15 09:11:17] Production.ERROR: pbx CDR StartTime 2025-01-15 06:11:05 - End Time 2025-01-15 09:11:05 [2025-01-15 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252614', 'tblTempUsageDetail_20' ) start [2025-01-15 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252614', 'tblTempUsageDetail_20' ) end [2025-01-15 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252614', 'tblTempVendorCDR_20' ) start [2025-01-15 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252614', 'tblTempVendorCDR_20' ) end [2025-01-15 09:11:17] Production.INFO: ProcessCDR(1,14252614,1,1,2) [2025-01-15 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252614', 'tblTempUsageDetail_20' ) start [2025-01-15 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252614', 'tblTempUsageDetail_20' ) end [2025-01-15 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:11:22] Production.INFO: ==29784== Releasing lock... [2025-01-15 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:11:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-15 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:12:05 [end_date_ymd] => 2025-01-15 09:12:05 [RateCDR] => 1 ) [2025-01-15 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:12:05' and `end` < '2025-01-15 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:12:18] Production.INFO: count ==806 [2025-01-15 09:12:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:12:05 - End Time 2025-01-15 09:12:05 [2025-01-15 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252619', 'tblTempUsageDetail_20' ) start [2025-01-15 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252619', 'tblTempUsageDetail_20' ) end [2025-01-15 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252619', 'tblTempVendorCDR_20' ) start [2025-01-15 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252619', 'tblTempVendorCDR_20' ) end [2025-01-15 09:12:18] Production.INFO: ProcessCDR(1,14252619,1,1,2) [2025-01-15 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252619', 'tblTempUsageDetail_20' ) start [2025-01-15 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252619', 'tblTempUsageDetail_20' ) end [2025-01-15 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:12:23] Production.INFO: ==29867== Releasing lock... [2025-01-15 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:12:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-15 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:13:05 [end_date_ymd] => 2025-01-15 09:13:05 [RateCDR] => 1 ) [2025-01-15 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:13:05' and `end` < '2025-01-15 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:13:19] Production.INFO: count ==821 [2025-01-15 09:13:19] Production.ERROR: pbx CDR StartTime 2025-01-15 06:13:05 - End Time 2025-01-15 09:13:05 [2025-01-15 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252624', 'tblTempUsageDetail_20' ) start [2025-01-15 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252624', 'tblTempUsageDetail_20' ) end [2025-01-15 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252624', 'tblTempVendorCDR_20' ) start [2025-01-15 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252624', 'tblTempVendorCDR_20' ) end [2025-01-15 09:13:19] Production.INFO: ProcessCDR(1,14252624,1,1,2) [2025-01-15 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252624', 'tblTempUsageDetail_20' ) start [2025-01-15 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252624', 'tblTempUsageDetail_20' ) end [2025-01-15 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:13:24] Production.INFO: ==29947== Releasing lock... [2025-01-15 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:13:24] Production.INFO: 34.25 MB #Memory Used# [2025-01-15 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:14:05 [end_date_ymd] => 2025-01-15 09:14:05 [RateCDR] => 1 ) [2025-01-15 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:14:05' and `end` < '2025-01-15 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:14:18] Production.INFO: count ==838 [2025-01-15 09:14:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:14:05 - End Time 2025-01-15 09:14:05 [2025-01-15 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252629', 'tblTempUsageDetail_20' ) start [2025-01-15 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252629', 'tblTempUsageDetail_20' ) end [2025-01-15 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252629', 'tblTempVendorCDR_20' ) start [2025-01-15 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252629', 'tblTempVendorCDR_20' ) end [2025-01-15 09:14:18] Production.INFO: ProcessCDR(1,14252629,1,1,2) [2025-01-15 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252629', 'tblTempUsageDetail_20' ) start [2025-01-15 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252629', 'tblTempUsageDetail_20' ) end [2025-01-15 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:14:22] Production.INFO: ==30026== Releasing lock... [2025-01-15 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:14:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-15 09:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:15:04 [end_date_ymd] => 2025-01-15 09:15:04 [RateCDR] => 1 ) [2025-01-15 09:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:15:04' and `end` < '2025-01-15 09:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:15:17] Production.INFO: count ==849 [2025-01-15 09:15:17] Production.ERROR: pbx CDR StartTime 2025-01-15 06:15:04 - End Time 2025-01-15 09:15:04 [2025-01-15 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252634', 'tblTempUsageDetail_20' ) start [2025-01-15 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252634', 'tblTempUsageDetail_20' ) end [2025-01-15 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252634', 'tblTempVendorCDR_20' ) start [2025-01-15 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252634', 'tblTempVendorCDR_20' ) end [2025-01-15 09:15:17] Production.INFO: ProcessCDR(1,14252634,1,1,2) [2025-01-15 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252634', 'tblTempUsageDetail_20' ) start [2025-01-15 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252634', 'tblTempUsageDetail_20' ) end [2025-01-15 09:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:15:22] Production.INFO: ==30109== Releasing lock... [2025-01-15 09:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:15:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-15 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:16:05 [end_date_ymd] => 2025-01-15 09:16:05 [RateCDR] => 1 ) [2025-01-15 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:16:05' and `end` < '2025-01-15 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:16:17] Production.INFO: count ==853 [2025-01-15 09:16:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:16:05 - End Time 2025-01-15 09:16:05 [2025-01-15 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252639', 'tblTempUsageDetail_20' ) start [2025-01-15 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252639', 'tblTempUsageDetail_20' ) end [2025-01-15 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252639', 'tblTempVendorCDR_20' ) start [2025-01-15 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252639', 'tblTempVendorCDR_20' ) end [2025-01-15 09:16:18] Production.INFO: ProcessCDR(1,14252639,1,1,2) [2025-01-15 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252639', 'tblTempUsageDetail_20' ) start [2025-01-15 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252639', 'tblTempUsageDetail_20' ) end [2025-01-15 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:16:22] Production.INFO: ==30191== Releasing lock... [2025-01-15 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:16:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-15 09:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:17:04 [end_date_ymd] => 2025-01-15 09:17:04 [RateCDR] => 1 ) [2025-01-15 09:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:17:04' and `end` < '2025-01-15 09:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:17:17] Production.INFO: count ==856 [2025-01-15 09:17:17] Production.ERROR: pbx CDR StartTime 2025-01-15 06:17:04 - End Time 2025-01-15 09:17:04 [2025-01-15 09:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252644', 'tblTempUsageDetail_20' ) start [2025-01-15 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252644', 'tblTempUsageDetail_20' ) end [2025-01-15 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252644', 'tblTempVendorCDR_20' ) start [2025-01-15 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252644', 'tblTempVendorCDR_20' ) end [2025-01-15 09:17:17] Production.INFO: ProcessCDR(1,14252644,1,1,2) [2025-01-15 09:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252644', 'tblTempUsageDetail_20' ) start [2025-01-15 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252644', 'tblTempUsageDetail_20' ) end [2025-01-15 09:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:17:21] Production.INFO: ==30271== Releasing lock... [2025-01-15 09:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:17:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-15 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:18:05 [end_date_ymd] => 2025-01-15 09:18:05 [RateCDR] => 1 ) [2025-01-15 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:18:05' and `end` < '2025-01-15 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:18:18] Production.INFO: count ==861 [2025-01-15 09:18:19] Production.ERROR: pbx CDR StartTime 2025-01-15 06:18:05 - End Time 2025-01-15 09:18:05 [2025-01-15 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252649', 'tblTempUsageDetail_20' ) start [2025-01-15 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252649', 'tblTempUsageDetail_20' ) end [2025-01-15 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252649', 'tblTempVendorCDR_20' ) start [2025-01-15 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252649', 'tblTempVendorCDR_20' ) end [2025-01-15 09:18:19] Production.INFO: ProcessCDR(1,14252649,1,1,2) [2025-01-15 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252649', 'tblTempUsageDetail_20' ) start [2025-01-15 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252649', 'tblTempUsageDetail_20' ) end [2025-01-15 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:18:23] Production.INFO: ==30352== Releasing lock... [2025-01-15 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:18:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-15 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:19:05 [end_date_ymd] => 2025-01-15 09:19:05 [RateCDR] => 1 ) [2025-01-15 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:19:05' and `end` < '2025-01-15 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:19:17] Production.INFO: count ==871 [2025-01-15 09:19:17] Production.ERROR: pbx CDR StartTime 2025-01-15 06:19:05 - End Time 2025-01-15 09:19:05 [2025-01-15 09:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252654', 'tblTempUsageDetail_20' ) start [2025-01-15 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252654', 'tblTempUsageDetail_20' ) end [2025-01-15 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252654', 'tblTempVendorCDR_20' ) start [2025-01-15 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252654', 'tblTempVendorCDR_20' ) end [2025-01-15 09:19:18] Production.INFO: ProcessCDR(1,14252654,1,1,2) [2025-01-15 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252654', 'tblTempUsageDetail_20' ) start [2025-01-15 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252654', 'tblTempUsageDetail_20' ) end [2025-01-15 09:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:19:22] Production.INFO: ==30431== Releasing lock... [2025-01-15 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:19:22] Production.INFO: 35 MB #Memory Used# [2025-01-15 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:20:05 [end_date_ymd] => 2025-01-15 09:20:05 [RateCDR] => 1 ) [2025-01-15 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:20:05' and `end` < '2025-01-15 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:20:17] Production.INFO: count ==892 [2025-01-15 09:20:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:20:05 - End Time 2025-01-15 09:20:05 [2025-01-15 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252660', 'tblTempUsageDetail_20' ) start [2025-01-15 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252660', 'tblTempUsageDetail_20' ) end [2025-01-15 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252660', 'tblTempVendorCDR_20' ) start [2025-01-15 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252660', 'tblTempVendorCDR_20' ) end [2025-01-15 09:20:18] Production.INFO: ProcessCDR(1,14252660,1,1,2) [2025-01-15 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252660', 'tblTempUsageDetail_20' ) start [2025-01-15 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252660', 'tblTempUsageDetail_20' ) end [2025-01-15 09:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:20:22] Production.INFO: ==30549== Releasing lock... [2025-01-15 09:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:20:22] Production.INFO: 35 MB #Memory Used# [2025-01-15 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:21:05 [end_date_ymd] => 2025-01-15 09:21:05 [RateCDR] => 1 ) [2025-01-15 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:21:05' and `end` < '2025-01-15 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:21:17] Production.INFO: count ==947 [2025-01-15 09:21:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:21:05 - End Time 2025-01-15 09:21:05 [2025-01-15 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252665', 'tblTempUsageDetail_20' ) start [2025-01-15 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252665', 'tblTempUsageDetail_20' ) end [2025-01-15 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252665', 'tblTempVendorCDR_20' ) start [2025-01-15 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252665', 'tblTempVendorCDR_20' ) end [2025-01-15 09:21:18] Production.INFO: ProcessCDR(1,14252665,1,1,2) [2025-01-15 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252665', 'tblTempUsageDetail_20' ) start [2025-01-15 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252665', 'tblTempUsageDetail_20' ) end [2025-01-15 09:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:21:22] Production.INFO: ==30628== Releasing lock... [2025-01-15 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:21:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-15 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:22:05 [end_date_ymd] => 2025-01-15 09:22:05 [RateCDR] => 1 ) [2025-01-15 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:22:05' and `end` < '2025-01-15 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:22:17] Production.INFO: count ==959 [2025-01-15 09:22:17] Production.ERROR: pbx CDR StartTime 2025-01-15 06:22:05 - End Time 2025-01-15 09:22:05 [2025-01-15 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252670', 'tblTempUsageDetail_20' ) start [2025-01-15 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252670', 'tblTempUsageDetail_20' ) end [2025-01-15 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252670', 'tblTempVendorCDR_20' ) start [2025-01-15 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252670', 'tblTempVendorCDR_20' ) end [2025-01-15 09:22:17] Production.INFO: ProcessCDR(1,14252670,1,1,2) [2025-01-15 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252670', 'tblTempUsageDetail_20' ) start [2025-01-15 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252670', 'tblTempUsageDetail_20' ) end [2025-01-15 09:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:22:22] Production.INFO: ==30701== Releasing lock... [2025-01-15 09:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:22:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-15 09:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:23:04 [end_date_ymd] => 2025-01-15 09:23:04 [RateCDR] => 1 ) [2025-01-15 09:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:23:04' and `end` < '2025-01-15 09:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:23:17] Production.INFO: count ==979 [2025-01-15 09:23:17] Production.ERROR: pbx CDR StartTime 2025-01-15 06:23:04 - End Time 2025-01-15 09:23:04 [2025-01-15 09:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252675', 'tblTempUsageDetail_20' ) start [2025-01-15 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252675', 'tblTempUsageDetail_20' ) end [2025-01-15 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252675', 'tblTempVendorCDR_20' ) start [2025-01-15 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252675', 'tblTempVendorCDR_20' ) end [2025-01-15 09:23:17] Production.INFO: ProcessCDR(1,14252675,1,1,2) [2025-01-15 09:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252675', 'tblTempUsageDetail_20' ) start [2025-01-15 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252675', 'tblTempUsageDetail_20' ) end [2025-01-15 09:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:23:22] Production.INFO: ==30772== Releasing lock... [2025-01-15 09:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:23:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-15 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:24:05 [end_date_ymd] => 2025-01-15 09:24:05 [RateCDR] => 1 ) [2025-01-15 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:24:05' and `end` < '2025-01-15 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:24:18] Production.INFO: count ==1005 [2025-01-15 09:24:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:24:05 - End Time 2025-01-15 09:24:05 [2025-01-15 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252680', 'tblTempUsageDetail_20' ) start [2025-01-15 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252680', 'tblTempUsageDetail_20' ) end [2025-01-15 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252680', 'tblTempVendorCDR_20' ) start [2025-01-15 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252680', 'tblTempVendorCDR_20' ) end [2025-01-15 09:24:18] Production.INFO: ProcessCDR(1,14252680,1,1,2) [2025-01-15 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252680', 'tblTempUsageDetail_20' ) start [2025-01-15 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252680', 'tblTempUsageDetail_20' ) end [2025-01-15 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:24:23] Production.INFO: ==30843== Releasing lock... [2025-01-15 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:24:23] Production.INFO: 36 MB #Memory Used# [2025-01-15 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:25:05 [end_date_ymd] => 2025-01-15 09:25:05 [RateCDR] => 1 ) [2025-01-15 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:25:05' and `end` < '2025-01-15 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:25:17] Production.INFO: count ==1034 [2025-01-15 09:25:17] Production.ERROR: pbx CDR StartTime 2025-01-15 06:25:05 - End Time 2025-01-15 09:25:05 [2025-01-15 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252685', 'tblTempUsageDetail_20' ) start [2025-01-15 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252685', 'tblTempUsageDetail_20' ) end [2025-01-15 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252685', 'tblTempVendorCDR_20' ) start [2025-01-15 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252685', 'tblTempVendorCDR_20' ) end [2025-01-15 09:25:18] Production.INFO: ProcessCDR(1,14252685,1,1,2) [2025-01-15 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252685', 'tblTempUsageDetail_20' ) start [2025-01-15 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252685', 'tblTempUsageDetail_20' ) end [2025-01-15 09:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:25:22] Production.INFO: ==30912== Releasing lock... [2025-01-15 09:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:25:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-15 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:26:05 [end_date_ymd] => 2025-01-15 09:26:05 [RateCDR] => 1 ) [2025-01-15 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:26:05' and `end` < '2025-01-15 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:26:18] Production.INFO: count ==1042 [2025-01-15 09:26:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:26:05 - End Time 2025-01-15 09:26:05 [2025-01-15 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252690', 'tblTempUsageDetail_20' ) start [2025-01-15 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252690', 'tblTempUsageDetail_20' ) end [2025-01-15 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252690', 'tblTempVendorCDR_20' ) start [2025-01-15 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252690', 'tblTempVendorCDR_20' ) end [2025-01-15 09:26:18] Production.INFO: ProcessCDR(1,14252690,1,1,2) [2025-01-15 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252690', 'tblTempUsageDetail_20' ) start [2025-01-15 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252690', 'tblTempUsageDetail_20' ) end [2025-01-15 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:26:23] Production.INFO: ==30982== Releasing lock... [2025-01-15 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:26:23] Production.INFO: 36 MB #Memory Used# [2025-01-15 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:27:05 [end_date_ymd] => 2025-01-15 09:27:05 [RateCDR] => 1 ) [2025-01-15 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:27:05' and `end` < '2025-01-15 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:27:17] Production.INFO: count ==1056 [2025-01-15 09:27:17] Production.ERROR: pbx CDR StartTime 2025-01-15 06:27:05 - End Time 2025-01-15 09:27:05 [2025-01-15 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252695', 'tblTempUsageDetail_20' ) start [2025-01-15 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252695', 'tblTempUsageDetail_20' ) end [2025-01-15 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252695', 'tblTempVendorCDR_20' ) start [2025-01-15 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252695', 'tblTempVendorCDR_20' ) end [2025-01-15 09:27:18] Production.INFO: ProcessCDR(1,14252695,1,1,2) [2025-01-15 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252695', 'tblTempUsageDetail_20' ) start [2025-01-15 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252695', 'tblTempUsageDetail_20' ) end [2025-01-15 09:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:27:22] Production.INFO: ==31051== Releasing lock... [2025-01-15 09:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:27:22] Production.INFO: 37 MB #Memory Used# [2025-01-15 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:28:05 [end_date_ymd] => 2025-01-15 09:28:05 [RateCDR] => 1 ) [2025-01-15 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:28:05' and `end` < '2025-01-15 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:28:18] Production.INFO: count ==1079 [2025-01-15 09:28:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:28:05 - End Time 2025-01-15 09:28:05 [2025-01-15 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252700', 'tblTempUsageDetail_20' ) start [2025-01-15 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252700', 'tblTempUsageDetail_20' ) end [2025-01-15 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252700', 'tblTempVendorCDR_20' ) start [2025-01-15 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252700', 'tblTempVendorCDR_20' ) end [2025-01-15 09:28:18] Production.INFO: ProcessCDR(1,14252700,1,1,2) [2025-01-15 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252700', 'tblTempUsageDetail_20' ) start [2025-01-15 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252700', 'tblTempUsageDetail_20' ) end [2025-01-15 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:28:23] Production.INFO: ==31122== Releasing lock... [2025-01-15 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:28:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-15 09:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:29:04 [end_date_ymd] => 2025-01-15 09:29:04 [RateCDR] => 1 ) [2025-01-15 09:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:29:04' and `end` < '2025-01-15 09:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:29:17] Production.INFO: count ==1090 [2025-01-15 09:29:17] Production.ERROR: pbx CDR StartTime 2025-01-15 06:29:04 - End Time 2025-01-15 09:29:04 [2025-01-15 09:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252705', 'tblTempUsageDetail_20' ) start [2025-01-15 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252705', 'tblTempUsageDetail_20' ) end [2025-01-15 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252705', 'tblTempVendorCDR_20' ) start [2025-01-15 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252705', 'tblTempVendorCDR_20' ) end [2025-01-15 09:29:18] Production.INFO: ProcessCDR(1,14252705,1,1,2) [2025-01-15 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252705', 'tblTempUsageDetail_20' ) start [2025-01-15 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252705', 'tblTempUsageDetail_20' ) end [2025-01-15 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:29:23] Production.INFO: ==31195== Releasing lock... [2025-01-15 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:29:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-15 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:30:06 [end_date_ymd] => 2025-01-15 09:30:06 [RateCDR] => 1 ) [2025-01-15 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:30:06' and `end` < '2025-01-15 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:30:18] Production.INFO: count ==1120 [2025-01-15 09:30:19] Production.ERROR: pbx CDR StartTime 2025-01-15 06:30:06 - End Time 2025-01-15 09:30:06 [2025-01-15 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252711', 'tblTempUsageDetail_20' ) start [2025-01-15 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252711', 'tblTempUsageDetail_20' ) end [2025-01-15 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252711', 'tblTempVendorCDR_20' ) start [2025-01-15 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252711', 'tblTempVendorCDR_20' ) end [2025-01-15 09:30:19] Production.INFO: ProcessCDR(1,14252711,1,1,2) [2025-01-15 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252711', 'tblTempUsageDetail_20' ) start [2025-01-15 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252711', 'tblTempUsageDetail_20' ) end [2025-01-15 09:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:30:22] Production.INFO: ==31270== Releasing lock... [2025-01-15 09:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:30:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-15 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:31:05 [end_date_ymd] => 2025-01-15 09:31:05 [RateCDR] => 1 ) [2025-01-15 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:31:05' and `end` < '2025-01-15 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:31:18] Production.INFO: count ==1205 [2025-01-15 09:31:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:31:05 - End Time 2025-01-15 09:31:05 [2025-01-15 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252716', 'tblTempUsageDetail_20' ) start [2025-01-15 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252716', 'tblTempUsageDetail_20' ) end [2025-01-15 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252716', 'tblTempVendorCDR_20' ) start [2025-01-15 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252716', 'tblTempVendorCDR_20' ) end [2025-01-15 09:31:18] Production.INFO: ProcessCDR(1,14252716,1,1,2) [2025-01-15 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252716', 'tblTempUsageDetail_20' ) start [2025-01-15 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252716', 'tblTempUsageDetail_20' ) end [2025-01-15 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:31:23] Production.INFO: ==31345== Releasing lock... [2025-01-15 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:31:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-15 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:32:06 [end_date_ymd] => 2025-01-15 09:32:06 [RateCDR] => 1 ) [2025-01-15 09:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:32:06' and `end` < '2025-01-15 09:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:32:19] Production.INFO: count ==1230 [2025-01-15 09:32:19] Production.ERROR: pbx CDR StartTime 2025-01-15 06:32:06 - End Time 2025-01-15 09:32:06 [2025-01-15 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252721', 'tblTempUsageDetail_20' ) start [2025-01-15 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252721', 'tblTempUsageDetail_20' ) end [2025-01-15 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252721', 'tblTempVendorCDR_20' ) start [2025-01-15 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252721', 'tblTempVendorCDR_20' ) end [2025-01-15 09:32:19] Production.INFO: ProcessCDR(1,14252721,1,1,2) [2025-01-15 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252721', 'tblTempUsageDetail_20' ) start [2025-01-15 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252721', 'tblTempUsageDetail_20' ) end [2025-01-15 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:32:24] Production.INFO: ==31414== Releasing lock... [2025-01-15 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:32:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-15 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:33:05 [end_date_ymd] => 2025-01-15 09:33:05 [RateCDR] => 1 ) [2025-01-15 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:33:05' and `end` < '2025-01-15 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:33:18] Production.INFO: count ==1240 [2025-01-15 09:33:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:33:05 - End Time 2025-01-15 09:33:05 [2025-01-15 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252726', 'tblTempUsageDetail_20' ) start [2025-01-15 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252726', 'tblTempUsageDetail_20' ) end [2025-01-15 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252726', 'tblTempVendorCDR_20' ) start [2025-01-15 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252726', 'tblTempVendorCDR_20' ) end [2025-01-15 09:33:19] Production.INFO: ProcessCDR(1,14252726,1,1,2) [2025-01-15 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252726', 'tblTempUsageDetail_20' ) start [2025-01-15 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252726', 'tblTempUsageDetail_20' ) end [2025-01-15 09:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:33:23] Production.INFO: ==31485== Releasing lock... [2025-01-15 09:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:33:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-15 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:34:05 [end_date_ymd] => 2025-01-15 09:34:05 [RateCDR] => 1 ) [2025-01-15 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:34:05' and `end` < '2025-01-15 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:34:20] Production.INFO: count ==1247 [2025-01-15 09:34:20] Production.ERROR: pbx CDR StartTime 2025-01-15 06:34:05 - End Time 2025-01-15 09:34:05 [2025-01-15 09:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252731', 'tblTempUsageDetail_20' ) start [2025-01-15 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252731', 'tblTempUsageDetail_20' ) end [2025-01-15 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252731', 'tblTempVendorCDR_20' ) start [2025-01-15 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252731', 'tblTempVendorCDR_20' ) end [2025-01-15 09:34:20] Production.INFO: ProcessCDR(1,14252731,1,1,2) [2025-01-15 09:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252731', 'tblTempUsageDetail_20' ) start [2025-01-15 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252731', 'tblTempUsageDetail_20' ) end [2025-01-15 09:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:34:25] Production.INFO: ==31556== Releasing lock... [2025-01-15 09:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:34:25] Production.INFO: 38 MB #Memory Used# [2025-01-15 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:35:05 [end_date_ymd] => 2025-01-15 09:35:05 [RateCDR] => 1 ) [2025-01-15 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:35:05' and `end` < '2025-01-15 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:35:18] Production.INFO: count ==1251 [2025-01-15 09:35:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:35:05 - End Time 2025-01-15 09:35:05 [2025-01-15 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252736', 'tblTempUsageDetail_20' ) start [2025-01-15 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252736', 'tblTempUsageDetail_20' ) end [2025-01-15 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252736', 'tblTempVendorCDR_20' ) start [2025-01-15 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252736', 'tblTempVendorCDR_20' ) end [2025-01-15 09:35:18] Production.INFO: ProcessCDR(1,14252736,1,1,2) [2025-01-15 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252736', 'tblTempUsageDetail_20' ) start [2025-01-15 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252736', 'tblTempUsageDetail_20' ) end [2025-01-15 09:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:35:23] Production.INFO: ==31626== Releasing lock... [2025-01-15 09:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:35:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-15 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:36:05 [end_date_ymd] => 2025-01-15 09:36:05 [RateCDR] => 1 ) [2025-01-15 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:36:05' and `end` < '2025-01-15 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:36:18] Production.INFO: count ==1260 [2025-01-15 09:36:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:36:05 - End Time 2025-01-15 09:36:05 [2025-01-15 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252741', 'tblTempUsageDetail_20' ) start [2025-01-15 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252741', 'tblTempUsageDetail_20' ) end [2025-01-15 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252741', 'tblTempVendorCDR_20' ) start [2025-01-15 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252741', 'tblTempVendorCDR_20' ) end [2025-01-15 09:36:18] Production.INFO: ProcessCDR(1,14252741,1,1,2) [2025-01-15 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252741', 'tblTempUsageDetail_20' ) start [2025-01-15 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252741', 'tblTempUsageDetail_20' ) end [2025-01-15 09:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:36:23] Production.INFO: ==31736== Releasing lock... [2025-01-15 09:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:36:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-15 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:37:05 [end_date_ymd] => 2025-01-15 09:37:05 [RateCDR] => 1 ) [2025-01-15 09:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:37:05' and `end` < '2025-01-15 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:37:19] Production.INFO: count ==1272 [2025-01-15 09:37:20] Production.ERROR: pbx CDR StartTime 2025-01-15 06:37:05 - End Time 2025-01-15 09:37:05 [2025-01-15 09:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252746', 'tblTempUsageDetail_20' ) start [2025-01-15 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252746', 'tblTempUsageDetail_20' ) end [2025-01-15 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252746', 'tblTempVendorCDR_20' ) start [2025-01-15 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252746', 'tblTempVendorCDR_20' ) end [2025-01-15 09:37:20] Production.INFO: ProcessCDR(1,14252746,1,1,2) [2025-01-15 09:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252746', 'tblTempUsageDetail_20' ) start [2025-01-15 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252746', 'tblTempUsageDetail_20' ) end [2025-01-15 09:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:37:25] Production.INFO: ==31805== Releasing lock... [2025-01-15 09:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:37:25] Production.INFO: 37.75 MB #Memory Used# [2025-01-15 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:38:05 [end_date_ymd] => 2025-01-15 09:38:05 [RateCDR] => 1 ) [2025-01-15 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:38:05' and `end` < '2025-01-15 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:38:17] Production.INFO: count ==1294 [2025-01-15 09:38:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:38:05 - End Time 2025-01-15 09:38:05 [2025-01-15 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252751', 'tblTempUsageDetail_20' ) start [2025-01-15 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252751', 'tblTempUsageDetail_20' ) end [2025-01-15 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252751', 'tblTempVendorCDR_20' ) start [2025-01-15 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252751', 'tblTempVendorCDR_20' ) end [2025-01-15 09:38:18] Production.INFO: ProcessCDR(1,14252751,1,1,2) [2025-01-15 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252751', 'tblTempUsageDetail_20' ) start [2025-01-15 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252751', 'tblTempUsageDetail_20' ) end [2025-01-15 09:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:38:23] Production.INFO: ==31876== Releasing lock... [2025-01-15 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:38:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-15 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:39:05 [end_date_ymd] => 2025-01-15 09:39:05 [RateCDR] => 1 ) [2025-01-15 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:39:05' and `end` < '2025-01-15 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:39:19] Production.INFO: count ==1304 [2025-01-15 09:39:19] Production.ERROR: pbx CDR StartTime 2025-01-15 06:39:05 - End Time 2025-01-15 09:39:05 [2025-01-15 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252756', 'tblTempUsageDetail_20' ) start [2025-01-15 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252756', 'tblTempUsageDetail_20' ) end [2025-01-15 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252756', 'tblTempVendorCDR_20' ) start [2025-01-15 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252756', 'tblTempVendorCDR_20' ) end [2025-01-15 09:39:19] Production.INFO: ProcessCDR(1,14252756,1,1,2) [2025-01-15 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252756', 'tblTempUsageDetail_20' ) start [2025-01-15 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252756', 'tblTempUsageDetail_20' ) end [2025-01-15 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:39:24] Production.INFO: ==31949== Releasing lock... [2025-01-15 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:39:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-15 09:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:40:05 [end_date_ymd] => 2025-01-15 09:40:05 [RateCDR] => 1 ) [2025-01-15 09:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:40:05' and `end` < '2025-01-15 09:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:40:21] Production.INFO: count ==1327 [2025-01-15 09:40:22] Production.ERROR: pbx CDR StartTime 2025-01-15 06:40:05 - End Time 2025-01-15 09:40:05 [2025-01-15 09:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252762', 'tblTempUsageDetail_20' ) start [2025-01-15 09:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252762', 'tblTempUsageDetail_20' ) end [2025-01-15 09:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252762', 'tblTempVendorCDR_20' ) start [2025-01-15 09:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252762', 'tblTempVendorCDR_20' ) end [2025-01-15 09:40:22] Production.INFO: ProcessCDR(1,14252762,1,1,2) [2025-01-15 09:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252762', 'tblTempUsageDetail_20' ) start [2025-01-15 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252762', 'tblTempUsageDetail_20' ) end [2025-01-15 09:40:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:40:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:40:26] Production.INFO: ==32020== Releasing lock... [2025-01-15 09:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:40:26] Production.INFO: 38.75 MB #Memory Used# [2025-01-15 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:41:05 [end_date_ymd] => 2025-01-15 09:41:05 [RateCDR] => 1 ) [2025-01-15 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:41:05' and `end` < '2025-01-15 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:41:21] Production.INFO: count ==1443 [2025-01-15 09:41:22] Production.ERROR: pbx CDR StartTime 2025-01-15 06:41:05 - End Time 2025-01-15 09:41:05 [2025-01-15 09:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252767', 'tblTempUsageDetail_20' ) start [2025-01-15 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252767', 'tblTempUsageDetail_20' ) end [2025-01-15 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252767', 'tblTempVendorCDR_20' ) start [2025-01-15 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252767', 'tblTempVendorCDR_20' ) end [2025-01-15 09:41:22] Production.INFO: ProcessCDR(1,14252767,1,1,2) [2025-01-15 09:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252767', 'tblTempUsageDetail_20' ) start [2025-01-15 09:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252767', 'tblTempUsageDetail_20' ) end [2025-01-15 09:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:41:27] Production.INFO: ==32093== Releasing lock... [2025-01-15 09:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:41:27] Production.INFO: 39 MB #Memory Used# [2025-01-15 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:42:05 [end_date_ymd] => 2025-01-15 09:42:05 [RateCDR] => 1 ) [2025-01-15 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:42:05' and `end` < '2025-01-15 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:42:23] Production.INFO: count ==1455 [2025-01-15 09:42:24] Production.ERROR: pbx CDR StartTime 2025-01-15 06:42:05 - End Time 2025-01-15 09:42:05 [2025-01-15 09:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252772', 'tblTempUsageDetail_20' ) start [2025-01-15 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252772', 'tblTempUsageDetail_20' ) end [2025-01-15 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252772', 'tblTempVendorCDR_20' ) start [2025-01-15 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252772', 'tblTempVendorCDR_20' ) end [2025-01-15 09:42:24] Production.INFO: ProcessCDR(1,14252772,1,1,2) [2025-01-15 09:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252772', 'tblTempUsageDetail_20' ) start [2025-01-15 09:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252772', 'tblTempUsageDetail_20' ) end [2025-01-15 09:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:42:29] Production.INFO: ==32164== Releasing lock... [2025-01-15 09:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:42:29] Production.INFO: 39 MB #Memory Used# [2025-01-15 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:43:05 [end_date_ymd] => 2025-01-15 09:43:05 [RateCDR] => 1 ) [2025-01-15 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:43:05' and `end` < '2025-01-15 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:43:18] Production.INFO: count ==1476 [2025-01-15 09:43:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:43:05 - End Time 2025-01-15 09:43:05 [2025-01-15 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252777', 'tblTempUsageDetail_20' ) start [2025-01-15 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252777', 'tblTempUsageDetail_20' ) end [2025-01-15 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252777', 'tblTempVendorCDR_20' ) start [2025-01-15 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252777', 'tblTempVendorCDR_20' ) end [2025-01-15 09:43:19] Production.INFO: ProcessCDR(1,14252777,1,1,2) [2025-01-15 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252777', 'tblTempUsageDetail_20' ) start [2025-01-15 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252777', 'tblTempUsageDetail_20' ) end [2025-01-15 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:43:23] Production.INFO: ==32244== Releasing lock... [2025-01-15 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:43:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-15 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:44:05 [end_date_ymd] => 2025-01-15 09:44:05 [RateCDR] => 1 ) [2025-01-15 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:44:05' and `end` < '2025-01-15 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:44:18] Production.INFO: count ==1498 [2025-01-15 09:44:19] Production.ERROR: pbx CDR StartTime 2025-01-15 06:44:05 - End Time 2025-01-15 09:44:05 [2025-01-15 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252782', 'tblTempUsageDetail_20' ) start [2025-01-15 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252782', 'tblTempUsageDetail_20' ) end [2025-01-15 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252782', 'tblTempVendorCDR_20' ) start [2025-01-15 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252782', 'tblTempVendorCDR_20' ) end [2025-01-15 09:44:19] Production.INFO: ProcessCDR(1,14252782,1,1,2) [2025-01-15 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252782', 'tblTempUsageDetail_20' ) start [2025-01-15 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252782', 'tblTempUsageDetail_20' ) end [2025-01-15 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:44:24] Production.INFO: ==32315== Releasing lock... [2025-01-15 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:44:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-15 09:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:45:04 [end_date_ymd] => 2025-01-15 09:45:04 [RateCDR] => 1 ) [2025-01-15 09:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:45:04' and `end` < '2025-01-15 09:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:45:18] Production.INFO: count ==1514 [2025-01-15 09:45:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:45:04 - End Time 2025-01-15 09:45:04 [2025-01-15 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252787', 'tblTempUsageDetail_20' ) start [2025-01-15 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252787', 'tblTempUsageDetail_20' ) end [2025-01-15 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252787', 'tblTempVendorCDR_20' ) start [2025-01-15 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252787', 'tblTempVendorCDR_20' ) end [2025-01-15 09:45:18] Production.INFO: ProcessCDR(1,14252787,1,1,2) [2025-01-15 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252787', 'tblTempUsageDetail_20' ) start [2025-01-15 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252787', 'tblTempUsageDetail_20' ) end [2025-01-15 09:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:45:23] Production.INFO: ==32384== Releasing lock... [2025-01-15 09:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:45:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-15 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:46:05 [end_date_ymd] => 2025-01-15 09:46:05 [RateCDR] => 1 ) [2025-01-15 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:46:05' and `end` < '2025-01-15 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:46:19] Production.INFO: count ==1536 [2025-01-15 09:46:20] Production.ERROR: pbx CDR StartTime 2025-01-15 06:46:05 - End Time 2025-01-15 09:46:05 [2025-01-15 09:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252792', 'tblTempUsageDetail_20' ) start [2025-01-15 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252792', 'tblTempUsageDetail_20' ) end [2025-01-15 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252792', 'tblTempVendorCDR_20' ) start [2025-01-15 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252792', 'tblTempVendorCDR_20' ) end [2025-01-15 09:46:20] Production.INFO: ProcessCDR(1,14252792,1,1,2) [2025-01-15 09:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252792', 'tblTempUsageDetail_20' ) start [2025-01-15 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252792', 'tblTempUsageDetail_20' ) end [2025-01-15 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:46:24] Production.INFO: ==32456== Releasing lock... [2025-01-15 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:46:24] Production.INFO: 40 MB #Memory Used# [2025-01-15 09:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:47:04 [end_date_ymd] => 2025-01-15 09:47:04 [RateCDR] => 1 ) [2025-01-15 09:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:47:04' and `end` < '2025-01-15 09:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:47:23] Production.INFO: count ==1547 [2025-01-15 09:47:24] Production.ERROR: pbx CDR StartTime 2025-01-15 06:47:04 - End Time 2025-01-15 09:47:04 [2025-01-15 09:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252797', 'tblTempUsageDetail_20' ) start [2025-01-15 09:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252797', 'tblTempUsageDetail_20' ) end [2025-01-15 09:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252797', 'tblTempVendorCDR_20' ) start [2025-01-15 09:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252797', 'tblTempVendorCDR_20' ) end [2025-01-15 09:47:24] Production.INFO: ProcessCDR(1,14252797,1,1,2) [2025-01-15 09:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252797', 'tblTempUsageDetail_20' ) start [2025-01-15 09:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252797', 'tblTempUsageDetail_20' ) end [2025-01-15 09:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:47:29] Production.INFO: ==32527== Releasing lock... [2025-01-15 09:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:47:29] Production.INFO: 39.75 MB #Memory Used# [2025-01-15 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:48:05 [end_date_ymd] => 2025-01-15 09:48:05 [RateCDR] => 1 ) [2025-01-15 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:48:05' and `end` < '2025-01-15 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:48:18] Production.INFO: count ==1567 [2025-01-15 09:48:19] Production.ERROR: pbx CDR StartTime 2025-01-15 06:48:05 - End Time 2025-01-15 09:48:05 [2025-01-15 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252802', 'tblTempUsageDetail_20' ) start [2025-01-15 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252802', 'tblTempUsageDetail_20' ) end [2025-01-15 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252802', 'tblTempVendorCDR_20' ) start [2025-01-15 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252802', 'tblTempVendorCDR_20' ) end [2025-01-15 09:48:19] Production.INFO: ProcessCDR(1,14252802,1,1,2) [2025-01-15 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252802', 'tblTempUsageDetail_20' ) start [2025-01-15 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252802', 'tblTempUsageDetail_20' ) end [2025-01-15 09:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:48:23] Production.INFO: ==32599== Releasing lock... [2025-01-15 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:48:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-15 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:49:05 [end_date_ymd] => 2025-01-15 09:49:05 [RateCDR] => 1 ) [2025-01-15 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:49:05' and `end` < '2025-01-15 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:49:20] Production.INFO: count ==1589 [2025-01-15 09:49:21] Production.ERROR: pbx CDR StartTime 2025-01-15 06:49:05 - End Time 2025-01-15 09:49:05 [2025-01-15 09:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252807', 'tblTempUsageDetail_20' ) start [2025-01-15 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252807', 'tblTempUsageDetail_20' ) end [2025-01-15 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252807', 'tblTempVendorCDR_20' ) start [2025-01-15 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252807', 'tblTempVendorCDR_20' ) end [2025-01-15 09:49:21] Production.INFO: ProcessCDR(1,14252807,1,1,2) [2025-01-15 09:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252807', 'tblTempUsageDetail_20' ) start [2025-01-15 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252807', 'tblTempUsageDetail_20' ) end [2025-01-15 09:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:49:26] Production.INFO: ==32671== Releasing lock... [2025-01-15 09:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:49:26] Production.INFO: 40.25 MB #Memory Used# [2025-01-15 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:50:06 [end_date_ymd] => 2025-01-15 09:50:06 [RateCDR] => 1 ) [2025-01-15 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:50:06' and `end` < '2025-01-15 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:50:30] Production.INFO: count ==1612 [2025-01-15 09:50:31] Production.ERROR: pbx CDR StartTime 2025-01-15 06:50:06 - End Time 2025-01-15 09:50:06 [2025-01-15 09:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252813', 'tblTempUsageDetail_20' ) start [2025-01-15 09:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252813', 'tblTempUsageDetail_20' ) end [2025-01-15 09:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252813', 'tblTempVendorCDR_20' ) start [2025-01-15 09:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252813', 'tblTempVendorCDR_20' ) end [2025-01-15 09:50:31] Production.INFO: ProcessCDR(1,14252813,1,1,2) [2025-01-15 09:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:50:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:50:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252813', 'tblTempUsageDetail_20' ) start [2025-01-15 09:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252813', 'tblTempUsageDetail_20' ) end [2025-01-15 09:50:36] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:50:36] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:50:36] Production.INFO: ==32743== Releasing lock... [2025-01-15 09:50:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:50:36] Production.INFO: 40.75 MB #Memory Used# [2025-01-15 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:51:05 [end_date_ymd] => 2025-01-15 09:51:05 [RateCDR] => 1 ) [2025-01-15 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:51:05' and `end` < '2025-01-15 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:51:26] Production.INFO: count ==1675 [2025-01-15 09:51:26] Production.ERROR: pbx CDR StartTime 2025-01-15 06:51:05 - End Time 2025-01-15 09:51:05 [2025-01-15 09:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252818', 'tblTempUsageDetail_20' ) start [2025-01-15 09:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252818', 'tblTempUsageDetail_20' ) end [2025-01-15 09:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252818', 'tblTempVendorCDR_20' ) start [2025-01-15 09:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252818', 'tblTempVendorCDR_20' ) end [2025-01-15 09:51:26] Production.INFO: ProcessCDR(1,14252818,1,1,2) [2025-01-15 09:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252818', 'tblTempUsageDetail_20' ) start [2025-01-15 09:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252818', 'tblTempUsageDetail_20' ) end [2025-01-15 09:51:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:51:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:51:31] Production.INFO: ==407== Releasing lock... [2025-01-15 09:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:51:31] Production.INFO: 41 MB #Memory Used# [2025-01-15 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:52:05 [end_date_ymd] => 2025-01-15 09:52:05 [RateCDR] => 1 ) [2025-01-15 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:52:05' and `end` < '2025-01-15 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:52:24] Production.INFO: count ==1692 [2025-01-15 09:52:25] Production.ERROR: pbx CDR StartTime 2025-01-15 06:52:05 - End Time 2025-01-15 09:52:05 [2025-01-15 09:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252823', 'tblTempUsageDetail_20' ) start [2025-01-15 09:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252823', 'tblTempUsageDetail_20' ) end [2025-01-15 09:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252823', 'tblTempVendorCDR_20' ) start [2025-01-15 09:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252823', 'tblTempVendorCDR_20' ) end [2025-01-15 09:52:25] Production.INFO: ProcessCDR(1,14252823,1,1,2) [2025-01-15 09:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252823', 'tblTempUsageDetail_20' ) start [2025-01-15 09:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252823', 'tblTempUsageDetail_20' ) end [2025-01-15 09:52:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:52:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:52:31] Production.INFO: ==477== Releasing lock... [2025-01-15 09:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:52:31] Production.INFO: 41 MB #Memory Used# [2025-01-15 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:53:05 [end_date_ymd] => 2025-01-15 09:53:05 [RateCDR] => 1 ) [2025-01-15 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:53:05' and `end` < '2025-01-15 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:53:18] Production.INFO: count ==1712 [2025-01-15 09:53:18] Production.ERROR: pbx CDR StartTime 2025-01-15 06:53:05 - End Time 2025-01-15 09:53:05 [2025-01-15 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252828', 'tblTempUsageDetail_20' ) start [2025-01-15 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252828', 'tblTempUsageDetail_20' ) end [2025-01-15 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252828', 'tblTempVendorCDR_20' ) start [2025-01-15 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252828', 'tblTempVendorCDR_20' ) end [2025-01-15 09:53:18] Production.INFO: ProcessCDR(1,14252828,1,1,2) [2025-01-15 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252828', 'tblTempUsageDetail_20' ) start [2025-01-15 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252828', 'tblTempUsageDetail_20' ) end [2025-01-15 09:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:53:23] Production.INFO: ==549== Releasing lock... [2025-01-15 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:53:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-15 09:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:54:04 [end_date_ymd] => 2025-01-15 09:54:04 [RateCDR] => 1 ) [2025-01-15 09:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:54:04' and `end` < '2025-01-15 09:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:54:21] Production.INFO: count ==1714 [2025-01-15 09:54:21] Production.ERROR: pbx CDR StartTime 2025-01-15 06:54:04 - End Time 2025-01-15 09:54:04 [2025-01-15 09:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252833', 'tblTempUsageDetail_20' ) start [2025-01-15 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252833', 'tblTempUsageDetail_20' ) end [2025-01-15 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252833', 'tblTempVendorCDR_20' ) start [2025-01-15 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252833', 'tblTempVendorCDR_20' ) end [2025-01-15 09:54:21] Production.INFO: ProcessCDR(1,14252833,1,1,2) [2025-01-15 09:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252833', 'tblTempUsageDetail_20' ) start [2025-01-15 09:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252833', 'tblTempUsageDetail_20' ) end [2025-01-15 09:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:54:26] Production.INFO: ==627== Releasing lock... [2025-01-15 09:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:54:26] Production.INFO: 41.25 MB #Memory Used# [2025-01-15 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:55:05 [end_date_ymd] => 2025-01-15 09:55:05 [RateCDR] => 1 ) [2025-01-15 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:55:05' and `end` < '2025-01-15 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:55:22] Production.INFO: count ==1724 [2025-01-15 09:55:22] Production.ERROR: pbx CDR StartTime 2025-01-15 06:55:05 - End Time 2025-01-15 09:55:05 [2025-01-15 09:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252838', 'tblTempUsageDetail_20' ) start [2025-01-15 09:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252838', 'tblTempUsageDetail_20' ) end [2025-01-15 09:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252838', 'tblTempVendorCDR_20' ) start [2025-01-15 09:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252838', 'tblTempVendorCDR_20' ) end [2025-01-15 09:55:22] Production.INFO: ProcessCDR(1,14252838,1,1,2) [2025-01-15 09:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252838', 'tblTempUsageDetail_20' ) start [2025-01-15 09:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252838', 'tblTempUsageDetail_20' ) end [2025-01-15 09:55:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:55:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:55:27] Production.INFO: ==725== Releasing lock... [2025-01-15 09:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:55:27] Production.INFO: 41 MB #Memory Used# [2025-01-15 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:56:05 [end_date_ymd] => 2025-01-15 09:56:05 [RateCDR] => 1 ) [2025-01-15 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:56:05' and `end` < '2025-01-15 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:56:19] Production.INFO: count ==1732 [2025-01-15 09:56:20] Production.ERROR: pbx CDR StartTime 2025-01-15 06:56:05 - End Time 2025-01-15 09:56:05 [2025-01-15 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252843', 'tblTempUsageDetail_20' ) start [2025-01-15 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252843', 'tblTempUsageDetail_20' ) end [2025-01-15 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252843', 'tblTempVendorCDR_20' ) start [2025-01-15 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252843', 'tblTempVendorCDR_20' ) end [2025-01-15 09:56:20] Production.INFO: ProcessCDR(1,14252843,1,1,2) [2025-01-15 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252843', 'tblTempUsageDetail_20' ) start [2025-01-15 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252843', 'tblTempUsageDetail_20' ) end [2025-01-15 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:56:24] Production.INFO: ==820== Releasing lock... [2025-01-15 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:56:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-15 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:57:05 [end_date_ymd] => 2025-01-15 09:57:05 [RateCDR] => 1 ) [2025-01-15 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:57:05' and `end` < '2025-01-15 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:57:19] Production.INFO: count ==1736 [2025-01-15 09:57:20] Production.ERROR: pbx CDR StartTime 2025-01-15 06:57:05 - End Time 2025-01-15 09:57:05 [2025-01-15 09:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252848', 'tblTempUsageDetail_20' ) start [2025-01-15 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252848', 'tblTempUsageDetail_20' ) end [2025-01-15 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252848', 'tblTempVendorCDR_20' ) start [2025-01-15 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252848', 'tblTempVendorCDR_20' ) end [2025-01-15 09:57:20] Production.INFO: ProcessCDR(1,14252848,1,1,2) [2025-01-15 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252848', 'tblTempUsageDetail_20' ) start [2025-01-15 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252848', 'tblTempUsageDetail_20' ) end [2025-01-15 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:57:24] Production.INFO: ==911== Releasing lock... [2025-01-15 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:57:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-15 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:58:05 [end_date_ymd] => 2025-01-15 09:58:05 [RateCDR] => 1 ) [2025-01-15 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:58:05' and `end` < '2025-01-15 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:58:30] Production.INFO: count ==1756 [2025-01-15 09:58:31] Production.ERROR: pbx CDR StartTime 2025-01-15 06:58:05 - End Time 2025-01-15 09:58:05 [2025-01-15 09:58:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252853', 'tblTempUsageDetail_20' ) start [2025-01-15 09:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252853', 'tblTempUsageDetail_20' ) end [2025-01-15 09:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252853', 'tblTempVendorCDR_20' ) start [2025-01-15 09:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252853', 'tblTempVendorCDR_20' ) end [2025-01-15 09:58:31] Production.INFO: ProcessCDR(1,14252853,1,1,2) [2025-01-15 09:58:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:58:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:58:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:58:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:58:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252853', 'tblTempUsageDetail_20' ) start [2025-01-15 09:58:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252853', 'tblTempUsageDetail_20' ) end [2025-01-15 09:58:36] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:58:36] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:58:36] Production.INFO: ==983== Releasing lock... [2025-01-15 09:58:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:58:36] Production.INFO: 41.5 MB #Memory Used# [2025-01-15 09:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 06:59:04 [end_date_ymd] => 2025-01-15 09:59:04 [RateCDR] => 1 ) [2025-01-15 09:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 06:59:04' and `end` < '2025-01-15 09:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 09:59:21] Production.INFO: count ==1786 [2025-01-15 09:59:22] Production.ERROR: pbx CDR StartTime 2025-01-15 06:59:04 - End Time 2025-01-15 09:59:04 [2025-01-15 09:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 09:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252858', 'tblTempUsageDetail_20' ) start [2025-01-15 09:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252858', 'tblTempUsageDetail_20' ) end [2025-01-15 09:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252858', 'tblTempVendorCDR_20' ) start [2025-01-15 09:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252858', 'tblTempVendorCDR_20' ) end [2025-01-15 09:59:22] Production.INFO: ProcessCDR(1,14252858,1,1,2) [2025-01-15 09:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 09:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 09:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252858', 'tblTempUsageDetail_20' ) start [2025-01-15 09:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252858', 'tblTempUsageDetail_20' ) end [2025-01-15 09:59:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 09:59:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 09:59:27] Production.INFO: ==1053== Releasing lock... [2025-01-15 09:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 09:59:27] Production.INFO: 41.75 MB #Memory Used# [2025-01-15 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:00:06 [end_date_ymd] => 2025-01-15 10:00:06 [RateCDR] => 1 ) [2025-01-15 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:00:06' and `end` < '2025-01-15 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:00:19] Production.INFO: count ==1833 [2025-01-15 10:00:19] Production.ERROR: pbx CDR StartTime 2025-01-15 07:00:06 - End Time 2025-01-15 10:00:06 [2025-01-15 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252864', 'tblTempUsageDetail_20' ) start [2025-01-15 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252864', 'tblTempUsageDetail_20' ) end [2025-01-15 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252864', 'tblTempVendorCDR_20' ) start [2025-01-15 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252864', 'tblTempVendorCDR_20' ) end [2025-01-15 10:00:19] Production.INFO: ProcessCDR(1,14252864,1,1,2) [2025-01-15 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252864', 'tblTempUsageDetail_20' ) start [2025-01-15 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252864', 'tblTempUsageDetail_20' ) end [2025-01-15 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:00:24] Production.INFO: ==1133== Releasing lock... [2025-01-15 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:00:24] Production.INFO: 42 MB #Memory Used# [2025-01-15 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:01:05 [end_date_ymd] => 2025-01-15 10:01:05 [RateCDR] => 1 ) [2025-01-15 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:01:05' and `end` < '2025-01-15 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:01:18] Production.INFO: count ==1905 [2025-01-15 10:01:18] Production.ERROR: pbx CDR StartTime 2025-01-15 07:01:05 - End Time 2025-01-15 10:01:05 [2025-01-15 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252869', 'tblTempUsageDetail_20' ) start [2025-01-15 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252869', 'tblTempUsageDetail_20' ) end [2025-01-15 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252869', 'tblTempVendorCDR_20' ) start [2025-01-15 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252869', 'tblTempVendorCDR_20' ) end [2025-01-15 10:01:18] Production.INFO: ProcessCDR(1,14252869,1,1,2) [2025-01-15 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252869', 'tblTempUsageDetail_20' ) start [2025-01-15 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252869', 'tblTempUsageDetail_20' ) end [2025-01-15 10:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:01:23] Production.INFO: ==1230== Releasing lock... [2025-01-15 10:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:01:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-15 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:02:05 [end_date_ymd] => 2025-01-15 10:02:05 [RateCDR] => 1 ) [2025-01-15 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:02:05' and `end` < '2025-01-15 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:02:18] Production.INFO: count ==1929 [2025-01-15 10:02:19] Production.ERROR: pbx CDR StartTime 2025-01-15 07:02:05 - End Time 2025-01-15 10:02:05 [2025-01-15 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252874', 'tblTempUsageDetail_20' ) start [2025-01-15 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252874', 'tblTempUsageDetail_20' ) end [2025-01-15 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252874', 'tblTempVendorCDR_20' ) start [2025-01-15 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252874', 'tblTempVendorCDR_20' ) end [2025-01-15 10:02:19] Production.INFO: ProcessCDR(1,14252874,1,1,2) [2025-01-15 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252874', 'tblTempUsageDetail_20' ) start [2025-01-15 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252874', 'tblTempUsageDetail_20' ) end [2025-01-15 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:02:24] Production.INFO: ==1312== Releasing lock... [2025-01-15 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:02:24] Production.INFO: 42.75 MB #Memory Used# [2025-01-15 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:03:05 [end_date_ymd] => 2025-01-15 10:03:05 [RateCDR] => 1 ) [2025-01-15 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:03:05' and `end` < '2025-01-15 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:03:18] Production.INFO: count ==1944 [2025-01-15 10:03:18] Production.ERROR: pbx CDR StartTime 2025-01-15 07:03:05 - End Time 2025-01-15 10:03:05 [2025-01-15 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252879', 'tblTempUsageDetail_20' ) start [2025-01-15 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252879', 'tblTempUsageDetail_20' ) end [2025-01-15 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252879', 'tblTempVendorCDR_20' ) start [2025-01-15 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252879', 'tblTempVendorCDR_20' ) end [2025-01-15 10:03:18] Production.INFO: ProcessCDR(1,14252879,1,1,2) [2025-01-15 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252879', 'tblTempUsageDetail_20' ) start [2025-01-15 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252879', 'tblTempUsageDetail_20' ) end [2025-01-15 10:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:03:23] Production.INFO: ==1383== Releasing lock... [2025-01-15 10:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:03:23] Production.INFO: 43 MB #Memory Used# [2025-01-15 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:04:05 [end_date_ymd] => 2025-01-15 10:04:05 [RateCDR] => 1 ) [2025-01-15 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:04:05' and `end` < '2025-01-15 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:04:20] Production.INFO: count ==1961 [2025-01-15 10:04:20] Production.ERROR: pbx CDR StartTime 2025-01-15 07:04:05 - End Time 2025-01-15 10:04:05 [2025-01-15 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252884', 'tblTempUsageDetail_20' ) start [2025-01-15 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252884', 'tblTempUsageDetail_20' ) end [2025-01-15 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252884', 'tblTempVendorCDR_20' ) start [2025-01-15 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252884', 'tblTempVendorCDR_20' ) end [2025-01-15 10:04:20] Production.INFO: ProcessCDR(1,14252884,1,1,2) [2025-01-15 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252884', 'tblTempUsageDetail_20' ) start [2025-01-15 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252884', 'tblTempUsageDetail_20' ) end [2025-01-15 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:04:25] Production.INFO: ==1455== Releasing lock... [2025-01-15 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:04:25] Production.INFO: 43 MB #Memory Used# [2025-01-15 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:05:05 [end_date_ymd] => 2025-01-15 10:05:05 [RateCDR] => 1 ) [2025-01-15 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:05:05' and `end` < '2025-01-15 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:05:18] Production.INFO: count ==1969 [2025-01-15 10:05:19] Production.ERROR: pbx CDR StartTime 2025-01-15 07:05:05 - End Time 2025-01-15 10:05:05 [2025-01-15 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252889', 'tblTempUsageDetail_20' ) start [2025-01-15 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252889', 'tblTempUsageDetail_20' ) end [2025-01-15 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252889', 'tblTempVendorCDR_20' ) start [2025-01-15 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252889', 'tblTempVendorCDR_20' ) end [2025-01-15 10:05:19] Production.INFO: ProcessCDR(1,14252889,1,1,2) [2025-01-15 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252889', 'tblTempUsageDetail_20' ) start [2025-01-15 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252889', 'tblTempUsageDetail_20' ) end [2025-01-15 10:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:05:24] Production.INFO: ==1560== Releasing lock... [2025-01-15 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:05:24] Production.INFO: 43 MB #Memory Used# [2025-01-15 10:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:06:04 [end_date_ymd] => 2025-01-15 10:06:04 [RateCDR] => 1 ) [2025-01-15 10:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:06:04' and `end` < '2025-01-15 10:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:06:18] Production.INFO: count ==1977 [2025-01-15 10:06:19] Production.ERROR: pbx CDR StartTime 2025-01-15 07:06:04 - End Time 2025-01-15 10:06:04 [2025-01-15 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252894', 'tblTempUsageDetail_20' ) start [2025-01-15 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252894', 'tblTempUsageDetail_20' ) end [2025-01-15 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252894', 'tblTempVendorCDR_20' ) start [2025-01-15 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252894', 'tblTempVendorCDR_20' ) end [2025-01-15 10:06:19] Production.INFO: ProcessCDR(1,14252894,1,1,2) [2025-01-15 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252894', 'tblTempUsageDetail_20' ) start [2025-01-15 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252894', 'tblTempUsageDetail_20' ) end [2025-01-15 10:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:06:24] Production.INFO: ==1636== Releasing lock... [2025-01-15 10:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:06:24] Production.INFO: 43.75 MB #Memory Used# [2025-01-15 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:07:05 [end_date_ymd] => 2025-01-15 10:07:05 [RateCDR] => 1 ) [2025-01-15 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:07:05' and `end` < '2025-01-15 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:07:20] Production.INFO: count ==1989 [2025-01-15 10:07:21] Production.ERROR: pbx CDR StartTime 2025-01-15 07:07:05 - End Time 2025-01-15 10:07:05 [2025-01-15 10:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252899', 'tblTempUsageDetail_20' ) start [2025-01-15 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252899', 'tblTempUsageDetail_20' ) end [2025-01-15 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252899', 'tblTempVendorCDR_20' ) start [2025-01-15 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252899', 'tblTempVendorCDR_20' ) end [2025-01-15 10:07:21] Production.INFO: ProcessCDR(1,14252899,1,1,2) [2025-01-15 10:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252899', 'tblTempUsageDetail_20' ) start [2025-01-15 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252899', 'tblTempUsageDetail_20' ) end [2025-01-15 10:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:07:26] Production.INFO: ==1745== Releasing lock... [2025-01-15 10:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:07:26] Production.INFO: 43.25 MB #Memory Used# [2025-01-15 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:08:05 [end_date_ymd] => 2025-01-15 10:08:05 [RateCDR] => 1 ) [2025-01-15 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:08:05' and `end` < '2025-01-15 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:08:21] Production.INFO: count ==2013 [2025-01-15 10:08:22] Production.ERROR: pbx CDR StartTime 2025-01-15 07:08:05 - End Time 2025-01-15 10:08:05 [2025-01-15 10:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252904', 'tblTempUsageDetail_20' ) start [2025-01-15 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252904', 'tblTempUsageDetail_20' ) end [2025-01-15 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252904', 'tblTempVendorCDR_20' ) start [2025-01-15 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252904', 'tblTempVendorCDR_20' ) end [2025-01-15 10:08:22] Production.INFO: ProcessCDR(1,14252904,1,1,2) [2025-01-15 10:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252904', 'tblTempUsageDetail_20' ) start [2025-01-15 10:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252904', 'tblTempUsageDetail_20' ) end [2025-01-15 10:08:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:08:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:08:27] Production.INFO: ==1817== Releasing lock... [2025-01-15 10:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:08:27] Production.INFO: 43.5 MB #Memory Used# [2025-01-15 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:09:05 [end_date_ymd] => 2025-01-15 10:09:05 [RateCDR] => 1 ) [2025-01-15 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:09:05' and `end` < '2025-01-15 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:09:18] Production.INFO: count ==2041 [2025-01-15 10:09:19] Production.ERROR: pbx CDR StartTime 2025-01-15 07:09:05 - End Time 2025-01-15 10:09:05 [2025-01-15 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252909', 'tblTempUsageDetail_20' ) start [2025-01-15 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252909', 'tblTempUsageDetail_20' ) end [2025-01-15 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252909', 'tblTempVendorCDR_20' ) start [2025-01-15 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252909', 'tblTempVendorCDR_20' ) end [2025-01-15 10:09:19] Production.INFO: ProcessCDR(1,14252909,1,1,2) [2025-01-15 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252909', 'tblTempUsageDetail_20' ) start [2025-01-15 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252909', 'tblTempUsageDetail_20' ) end [2025-01-15 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:09:24] Production.INFO: ==1890== Releasing lock... [2025-01-15 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:09:24] Production.INFO: 44 MB #Memory Used# [2025-01-15 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:10:05 [end_date_ymd] => 2025-01-15 10:10:05 [RateCDR] => 1 ) [2025-01-15 10:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:10:05' and `end` < '2025-01-15 10:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:10:19] Production.INFO: count ==2073 [2025-01-15 10:10:20] Production.ERROR: pbx CDR StartTime 2025-01-15 07:10:05 - End Time 2025-01-15 10:10:05 [2025-01-15 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252915', 'tblTempUsageDetail_20' ) start [2025-01-15 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252915', 'tblTempUsageDetail_20' ) end [2025-01-15 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252915', 'tblTempVendorCDR_20' ) start [2025-01-15 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252915', 'tblTempVendorCDR_20' ) end [2025-01-15 10:10:20] Production.INFO: ProcessCDR(1,14252915,1,1,2) [2025-01-15 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252915', 'tblTempUsageDetail_20' ) start [2025-01-15 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252915', 'tblTempUsageDetail_20' ) end [2025-01-15 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:10:25] Production.INFO: ==1962== Releasing lock... [2025-01-15 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:10:25] Production.INFO: 43.75 MB #Memory Used# [2025-01-15 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:11:05 [end_date_ymd] => 2025-01-15 10:11:05 [RateCDR] => 1 ) [2025-01-15 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:11:05' and `end` < '2025-01-15 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:11:19] Production.INFO: count ==2170 [2025-01-15 10:11:20] Production.ERROR: pbx CDR StartTime 2025-01-15 07:11:05 - End Time 2025-01-15 10:11:05 [2025-01-15 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252920', 'tblTempUsageDetail_20' ) start [2025-01-15 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252920', 'tblTempUsageDetail_20' ) end [2025-01-15 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252920', 'tblTempVendorCDR_20' ) start [2025-01-15 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252920', 'tblTempVendorCDR_20' ) end [2025-01-15 10:11:20] Production.INFO: ProcessCDR(1,14252920,1,1,2) [2025-01-15 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252920', 'tblTempUsageDetail_20' ) start [2025-01-15 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252920', 'tblTempUsageDetail_20' ) end [2025-01-15 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:11:25] Production.INFO: ==2043== Releasing lock... [2025-01-15 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:11:25] Production.INFO: 44.5 MB #Memory Used# [2025-01-15 10:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:12:04 [end_date_ymd] => 2025-01-15 10:12:04 [RateCDR] => 1 ) [2025-01-15 10:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:12:04' and `end` < '2025-01-15 10:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:12:20] Production.INFO: count ==2212 [2025-01-15 10:12:21] Production.ERROR: pbx CDR StartTime 2025-01-15 07:12:04 - End Time 2025-01-15 10:12:04 [2025-01-15 10:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252925', 'tblTempUsageDetail_20' ) start [2025-01-15 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252925', 'tblTempUsageDetail_20' ) end [2025-01-15 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252925', 'tblTempVendorCDR_20' ) start [2025-01-15 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252925', 'tblTempVendorCDR_20' ) end [2025-01-15 10:12:21] Production.INFO: ProcessCDR(1,14252925,1,1,2) [2025-01-15 10:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252925', 'tblTempUsageDetail_20' ) start [2025-01-15 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252925', 'tblTempUsageDetail_20' ) end [2025-01-15 10:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:12:26] Production.INFO: ==2113== Releasing lock... [2025-01-15 10:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:12:26] Production.INFO: 45 MB #Memory Used# [2025-01-15 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:13:05 [end_date_ymd] => 2025-01-15 10:13:05 [RateCDR] => 1 ) [2025-01-15 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:13:05' and `end` < '2025-01-15 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:13:21] Production.INFO: count ==2223 [2025-01-15 10:13:22] Production.ERROR: pbx CDR StartTime 2025-01-15 07:13:05 - End Time 2025-01-15 10:13:05 [2025-01-15 10:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252930', 'tblTempUsageDetail_20' ) start [2025-01-15 10:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252930', 'tblTempUsageDetail_20' ) end [2025-01-15 10:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252930', 'tblTempVendorCDR_20' ) start [2025-01-15 10:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252930', 'tblTempVendorCDR_20' ) end [2025-01-15 10:13:22] Production.INFO: ProcessCDR(1,14252930,1,1,2) [2025-01-15 10:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252930', 'tblTempUsageDetail_20' ) start [2025-01-15 10:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252930', 'tblTempUsageDetail_20' ) end [2025-01-15 10:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:13:27] Production.INFO: ==2184== Releasing lock... [2025-01-15 10:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:13:27] Production.INFO: 45 MB #Memory Used# [2025-01-15 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:14:05 [end_date_ymd] => 2025-01-15 10:14:05 [RateCDR] => 1 ) [2025-01-15 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:14:05' and `end` < '2025-01-15 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:14:18] Production.INFO: count ==2229 [2025-01-15 10:14:19] Production.ERROR: pbx CDR StartTime 2025-01-15 07:14:05 - End Time 2025-01-15 10:14:05 [2025-01-15 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252935', 'tblTempUsageDetail_20' ) start [2025-01-15 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252935', 'tblTempUsageDetail_20' ) end [2025-01-15 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252935', 'tblTempVendorCDR_20' ) start [2025-01-15 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252935', 'tblTempVendorCDR_20' ) end [2025-01-15 10:14:19] Production.INFO: ProcessCDR(1,14252935,1,1,2) [2025-01-15 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252935', 'tblTempUsageDetail_20' ) start [2025-01-15 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252935', 'tblTempUsageDetail_20' ) end [2025-01-15 10:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:14:22] Production.INFO: ==2255== Releasing lock... [2025-01-15 10:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:14:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-15 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:15:05 [end_date_ymd] => 2025-01-15 10:15:05 [RateCDR] => 1 ) [2025-01-15 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:15:05' and `end` < '2025-01-15 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:15:19] Production.INFO: count ==2237 [2025-01-15 10:15:20] Production.ERROR: pbx CDR StartTime 2025-01-15 07:15:05 - End Time 2025-01-15 10:15:05 [2025-01-15 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252940', 'tblTempUsageDetail_20' ) start [2025-01-15 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252940', 'tblTempUsageDetail_20' ) end [2025-01-15 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252940', 'tblTempVendorCDR_20' ) start [2025-01-15 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252940', 'tblTempVendorCDR_20' ) end [2025-01-15 10:15:20] Production.INFO: ProcessCDR(1,14252940,1,1,2) [2025-01-15 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252940', 'tblTempUsageDetail_20' ) start [2025-01-15 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252940', 'tblTempUsageDetail_20' ) end [2025-01-15 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:15:25] Production.INFO: ==2327== Releasing lock... [2025-01-15 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:15:25] Production.INFO: 44.75 MB #Memory Used# [2025-01-15 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:16:05 [end_date_ymd] => 2025-01-15 10:16:05 [RateCDR] => 1 ) [2025-01-15 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:16:05' and `end` < '2025-01-15 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:16:21] Production.INFO: count ==2248 [2025-01-15 10:16:22] Production.ERROR: pbx CDR StartTime 2025-01-15 07:16:05 - End Time 2025-01-15 10:16:05 [2025-01-15 10:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252945', 'tblTempUsageDetail_20' ) start [2025-01-15 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252945', 'tblTempUsageDetail_20' ) end [2025-01-15 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252945', 'tblTempVendorCDR_20' ) start [2025-01-15 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252945', 'tblTempVendorCDR_20' ) end [2025-01-15 10:16:22] Production.INFO: ProcessCDR(1,14252945,1,1,2) [2025-01-15 10:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252945', 'tblTempUsageDetail_20' ) start [2025-01-15 10:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252945', 'tblTempUsageDetail_20' ) end [2025-01-15 10:16:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:16:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:16:27] Production.INFO: ==2397== Releasing lock... [2025-01-15 10:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:16:27] Production.INFO: 45 MB #Memory Used# [2025-01-15 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:17:05 [end_date_ymd] => 2025-01-15 10:17:05 [RateCDR] => 1 ) [2025-01-15 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:17:05' and `end` < '2025-01-15 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:17:22] Production.INFO: count ==2265 [2025-01-15 10:17:23] Production.ERROR: pbx CDR StartTime 2025-01-15 07:17:05 - End Time 2025-01-15 10:17:05 [2025-01-15 10:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252950', 'tblTempUsageDetail_20' ) start [2025-01-15 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252950', 'tblTempUsageDetail_20' ) end [2025-01-15 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252950', 'tblTempVendorCDR_20' ) start [2025-01-15 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252950', 'tblTempVendorCDR_20' ) end [2025-01-15 10:17:23] Production.INFO: ProcessCDR(1,14252950,1,1,2) [2025-01-15 10:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252950', 'tblTempUsageDetail_20' ) start [2025-01-15 10:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252950', 'tblTempUsageDetail_20' ) end [2025-01-15 10:17:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:17:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:17:28] Production.INFO: ==2471== Releasing lock... [2025-01-15 10:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:17:28] Production.INFO: 45.25 MB #Memory Used# [2025-01-15 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:18:05 [end_date_ymd] => 2025-01-15 10:18:05 [RateCDR] => 1 ) [2025-01-15 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:18:05' and `end` < '2025-01-15 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:18:21] Production.INFO: count ==2302 [2025-01-15 10:18:22] Production.ERROR: pbx CDR StartTime 2025-01-15 07:18:05 - End Time 2025-01-15 10:18:05 [2025-01-15 10:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252955', 'tblTempUsageDetail_20' ) start [2025-01-15 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252955', 'tblTempUsageDetail_20' ) end [2025-01-15 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252955', 'tblTempVendorCDR_20' ) start [2025-01-15 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252955', 'tblTempVendorCDR_20' ) end [2025-01-15 10:18:22] Production.INFO: ProcessCDR(1,14252955,1,1,2) [2025-01-15 10:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252955', 'tblTempUsageDetail_20' ) start [2025-01-15 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252955', 'tblTempUsageDetail_20' ) end [2025-01-15 10:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:18:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:18:27] Production.INFO: ==2542== Releasing lock... [2025-01-15 10:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:18:27] Production.INFO: 45.25 MB #Memory Used# [2025-01-15 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:19:05 [end_date_ymd] => 2025-01-15 10:19:05 [RateCDR] => 1 ) [2025-01-15 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:19:05' and `end` < '2025-01-15 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:19:18] Production.INFO: count ==2316 [2025-01-15 10:19:19] Production.ERROR: pbx CDR StartTime 2025-01-15 07:19:05 - End Time 2025-01-15 10:19:05 [2025-01-15 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252960', 'tblTempUsageDetail_20' ) start [2025-01-15 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252960', 'tblTempUsageDetail_20' ) end [2025-01-15 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252960', 'tblTempVendorCDR_20' ) start [2025-01-15 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252960', 'tblTempVendorCDR_20' ) end [2025-01-15 10:19:19] Production.INFO: ProcessCDR(1,14252960,1,1,2) [2025-01-15 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252960', 'tblTempUsageDetail_20' ) start [2025-01-15 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252960', 'tblTempUsageDetail_20' ) end [2025-01-15 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:19:24] Production.INFO: ==2635== Releasing lock... [2025-01-15 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:19:24] Production.INFO: 45.25 MB #Memory Used# [2025-01-15 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:20:05 [end_date_ymd] => 2025-01-15 10:20:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 07:20:05' and `end` < '2025-01-15 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-01-15 10:20:23] Production.INFO: count ==2352 [2025-01-15 10:20:24] Production.ERROR: pbx CDR StartTime 2025-01-15 07:20:05 - End Time 2025-01-15 10:20:05 [2025-01-15 10:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252965', 'tblTempUsageDetail_20' ) start [2025-01-15 10:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252965', 'tblTempUsageDetail_20' ) end [2025-01-15 10:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252965', 'tblTempVendorCDR_20' ) start [2025-01-15 10:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252965', 'tblTempVendorCDR_20' ) end [2025-01-15 10:20:24] Production.INFO: ProcessCDR(1,14252965,1,1,2) [2025-01-15 10:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252965', 'tblTempUsageDetail_20' ) start [2025-01-15 10:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252965', 'tblTempUsageDetail_20' ) end [2025-01-15 10:20:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:20:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:20:29] Production.INFO: ==2707== Releasing lock... [2025-01-15 10:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:20:29] Production.INFO: 45.75 MB #Memory Used# [2025-01-15 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:21:05 [end_date_ymd] => 2025-01-15 10:21:05 [RateCDR] => 1 ) [2025-01-15 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:21:05' and `end` < '2025-01-15 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:21:21] Production.INFO: count ==2495 [2025-01-15 10:21:22] Production.ERROR: pbx CDR StartTime 2025-01-15 07:21:05 - End Time 2025-01-15 10:21:05 [2025-01-15 10:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252971', 'tblTempUsageDetail_20' ) start [2025-01-15 10:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252971', 'tblTempUsageDetail_20' ) end [2025-01-15 10:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252971', 'tblTempVendorCDR_20' ) start [2025-01-15 10:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252971', 'tblTempVendorCDR_20' ) end [2025-01-15 10:21:22] Production.INFO: ProcessCDR(1,14252971,1,1,2) [2025-01-15 10:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252971', 'tblTempUsageDetail_20' ) start [2025-01-15 10:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252971', 'tblTempUsageDetail_20' ) end [2025-01-15 10:21:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:21:27] Production.INFO: ==2780== Releasing lock... [2025-01-15 10:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:21:27] Production.INFO: 47 MB #Memory Used# [2025-01-15 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:22:05 [end_date_ymd] => 2025-01-15 10:22:05 [RateCDR] => 1 ) [2025-01-15 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:22:05' and `end` < '2025-01-15 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:22:31] Production.INFO: count ==2525 [2025-01-15 10:22:32] Production.ERROR: pbx CDR StartTime 2025-01-15 07:22:05 - End Time 2025-01-15 10:22:05 [2025-01-15 10:22:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252976', 'tblTempUsageDetail_20' ) start [2025-01-15 10:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252976', 'tblTempUsageDetail_20' ) end [2025-01-15 10:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252976', 'tblTempVendorCDR_20' ) start [2025-01-15 10:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252976', 'tblTempVendorCDR_20' ) end [2025-01-15 10:22:32] Production.INFO: ProcessCDR(1,14252976,1,1,2) [2025-01-15 10:22:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:22:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:22:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:22:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:22:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252976', 'tblTempUsageDetail_20' ) start [2025-01-15 10:22:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252976', 'tblTempUsageDetail_20' ) end [2025-01-15 10:22:37] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:22:37] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:22:37] Production.INFO: ==2869== Releasing lock... [2025-01-15 10:22:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:22:37] Production.INFO: 47.25 MB #Memory Used# [2025-01-15 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:23:04 [end_date_ymd] => 2025-01-15 10:23:04 [RateCDR] => 1 ) [2025-01-15 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:23:04' and `end` < '2025-01-15 10:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:23:27] Production.INFO: count ==2614 [2025-01-15 10:23:28] Production.ERROR: pbx CDR StartTime 2025-01-15 07:23:04 - End Time 2025-01-15 10:23:04 [2025-01-15 10:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252981', 'tblTempUsageDetail_20' ) start [2025-01-15 10:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252981', 'tblTempUsageDetail_20' ) end [2025-01-15 10:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252981', 'tblTempVendorCDR_20' ) start [2025-01-15 10:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252981', 'tblTempVendorCDR_20' ) end [2025-01-15 10:23:28] Production.INFO: ProcessCDR(1,14252981,1,1,2) [2025-01-15 10:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:23:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:23:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:23:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252981', 'tblTempUsageDetail_20' ) start [2025-01-15 10:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252981', 'tblTempUsageDetail_20' ) end [2025-01-15 10:23:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:23:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:23:33] Production.INFO: ==3005== Releasing lock... [2025-01-15 10:23:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:23:33] Production.INFO: 47.75 MB #Memory Used# [2025-01-15 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:24:05 [end_date_ymd] => 2025-01-15 10:24:05 [RateCDR] => 1 ) [2025-01-15 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:24:05' and `end` < '2025-01-15 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:24:22] Production.INFO: count ==2619 [2025-01-15 10:24:23] Production.ERROR: pbx CDR StartTime 2025-01-15 07:24:05 - End Time 2025-01-15 10:24:05 [2025-01-15 10:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252986', 'tblTempUsageDetail_20' ) start [2025-01-15 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252986', 'tblTempUsageDetail_20' ) end [2025-01-15 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252986', 'tblTempVendorCDR_20' ) start [2025-01-15 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252986', 'tblTempVendorCDR_20' ) end [2025-01-15 10:24:23] Production.INFO: ProcessCDR(1,14252986,1,1,2) [2025-01-15 10:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252986', 'tblTempUsageDetail_20' ) start [2025-01-15 10:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252986', 'tblTempUsageDetail_20' ) end [2025-01-15 10:24:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:24:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:24:28] Production.INFO: ==3105== Releasing lock... [2025-01-15 10:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:24:28] Production.INFO: 47.75 MB #Memory Used# [2025-01-15 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:25:05 [end_date_ymd] => 2025-01-15 10:25:05 [RateCDR] => 1 ) [2025-01-15 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:25:05' and `end` < '2025-01-15 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:25:17] Production.INFO: count ==2628 [2025-01-15 10:25:18] Production.ERROR: pbx CDR StartTime 2025-01-15 07:25:05 - End Time 2025-01-15 10:25:05 [2025-01-15 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252991', 'tblTempUsageDetail_20' ) start [2025-01-15 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252991', 'tblTempUsageDetail_20' ) end [2025-01-15 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252991', 'tblTempVendorCDR_20' ) start [2025-01-15 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252991', 'tblTempVendorCDR_20' ) end [2025-01-15 10:25:19] Production.INFO: ProcessCDR(1,14252991,1,1,2) [2025-01-15 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252991', 'tblTempUsageDetail_20' ) start [2025-01-15 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252991', 'tblTempUsageDetail_20' ) end [2025-01-15 10:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:25:23] Production.INFO: ==3195== Releasing lock... [2025-01-15 10:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:25:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-15 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:26:05 [end_date_ymd] => 2025-01-15 10:26:05 [RateCDR] => 1 ) [2025-01-15 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:26:05' and `end` < '2025-01-15 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:26:19] Production.INFO: count ==2635 [2025-01-15 10:26:20] Production.ERROR: pbx CDR StartTime 2025-01-15 07:26:05 - End Time 2025-01-15 10:26:05 [2025-01-15 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252996', 'tblTempUsageDetail_20' ) start [2025-01-15 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14252996', 'tblTempUsageDetail_20' ) end [2025-01-15 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252996', 'tblTempVendorCDR_20' ) start [2025-01-15 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14252996', 'tblTempVendorCDR_20' ) end [2025-01-15 10:26:20] Production.INFO: ProcessCDR(1,14252996,1,1,2) [2025-01-15 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14252996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14252996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14252996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14252996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252996', 'tblTempUsageDetail_20' ) start [2025-01-15 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14252996', 'tblTempUsageDetail_20' ) end [2025-01-15 10:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:26:24] Production.INFO: ==3265== Releasing lock... [2025-01-15 10:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:26:24] Production.INFO: 48 MB #Memory Used# [2025-01-15 10:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:27:04 [end_date_ymd] => 2025-01-15 10:27:04 [RateCDR] => 1 ) [2025-01-15 10:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:27:04' and `end` < '2025-01-15 10:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:27:19] Production.INFO: count ==2658 [2025-01-15 10:27:20] Production.ERROR: pbx CDR StartTime 2025-01-15 07:27:04 - End Time 2025-01-15 10:27:04 [2025-01-15 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253001', 'tblTempUsageDetail_20' ) start [2025-01-15 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253001', 'tblTempUsageDetail_20' ) end [2025-01-15 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253001', 'tblTempVendorCDR_20' ) start [2025-01-15 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253001', 'tblTempVendorCDR_20' ) end [2025-01-15 10:27:21] Production.INFO: ProcessCDR(1,14253001,1,1,2) [2025-01-15 10:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253001', 'tblTempUsageDetail_20' ) start [2025-01-15 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253001', 'tblTempUsageDetail_20' ) end [2025-01-15 10:27:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:27:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:27:25] Production.INFO: ==3335== Releasing lock... [2025-01-15 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:27:25] Production.INFO: 48.5 MB #Memory Used# [2025-01-15 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:28:05 [end_date_ymd] => 2025-01-15 10:28:05 [RateCDR] => 1 ) [2025-01-15 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:28:05' and `end` < '2025-01-15 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:28:18] Production.INFO: count ==2676 [2025-01-15 10:28:19] Production.ERROR: pbx CDR StartTime 2025-01-15 07:28:05 - End Time 2025-01-15 10:28:05 [2025-01-15 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253006', 'tblTempUsageDetail_20' ) start [2025-01-15 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253006', 'tblTempUsageDetail_20' ) end [2025-01-15 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253006', 'tblTempVendorCDR_20' ) start [2025-01-15 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253006', 'tblTempVendorCDR_20' ) end [2025-01-15 10:28:19] Production.INFO: ProcessCDR(1,14253006,1,1,2) [2025-01-15 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253006', 'tblTempUsageDetail_20' ) start [2025-01-15 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253006', 'tblTempUsageDetail_20' ) end [2025-01-15 10:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:28:24] Production.INFO: ==3405== Releasing lock... [2025-01-15 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:28:24] Production.INFO: 48.25 MB #Memory Used# [2025-01-15 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:29:05 [end_date_ymd] => 2025-01-15 10:29:05 [RateCDR] => 1 ) [2025-01-15 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:29:05' and `end` < '2025-01-15 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:29:28] Production.INFO: count ==2696 [2025-01-15 10:29:29] Production.ERROR: pbx CDR StartTime 2025-01-15 07:29:05 - End Time 2025-01-15 10:29:05 [2025-01-15 10:29:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253011', 'tblTempUsageDetail_20' ) start [2025-01-15 10:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253011', 'tblTempUsageDetail_20' ) end [2025-01-15 10:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253011', 'tblTempVendorCDR_20' ) start [2025-01-15 10:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253011', 'tblTempVendorCDR_20' ) end [2025-01-15 10:29:29] Production.INFO: ProcessCDR(1,14253011,1,1,2) [2025-01-15 10:29:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:29:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253011', 'tblTempUsageDetail_20' ) start [2025-01-15 10:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253011', 'tblTempUsageDetail_20' ) end [2025-01-15 10:29:34] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:29:34] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:29:34] Production.INFO: ==3479== Releasing lock... [2025-01-15 10:29:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:29:34] Production.INFO: 48.5 MB #Memory Used# [2025-01-15 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:30:06 [end_date_ymd] => 2025-01-15 10:30:06 [RateCDR] => 1 ) [2025-01-15 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:30:06' and `end` < '2025-01-15 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:30:31] Production.INFO: count ==2729 [2025-01-15 10:30:32] Production.ERROR: pbx CDR StartTime 2025-01-15 07:30:06 - End Time 2025-01-15 10:30:06 [2025-01-15 10:30:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253017', 'tblTempUsageDetail_20' ) start [2025-01-15 10:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253017', 'tblTempUsageDetail_20' ) end [2025-01-15 10:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253017', 'tblTempVendorCDR_20' ) start [2025-01-15 10:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253017', 'tblTempVendorCDR_20' ) end [2025-01-15 10:30:32] Production.INFO: ProcessCDR(1,14253017,1,1,2) [2025-01-15 10:30:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:30:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:30:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:30:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253017', 'tblTempUsageDetail_20' ) start [2025-01-15 10:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253017', 'tblTempUsageDetail_20' ) end [2025-01-15 10:30:37] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:30:37] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:30:37] Production.INFO: ==3555== Releasing lock... [2025-01-15 10:30:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:30:37] Production.INFO: 48.5 MB #Memory Used# [2025-01-15 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:31:06 [end_date_ymd] => 2025-01-15 10:31:06 [RateCDR] => 1 ) [2025-01-15 10:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:31:06' and `end` < '2025-01-15 10:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:31:23] Production.INFO: count ==2798 [2025-01-15 10:31:24] Production.ERROR: pbx CDR StartTime 2025-01-15 07:31:06 - End Time 2025-01-15 10:31:06 [2025-01-15 10:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253022', 'tblTempUsageDetail_20' ) start [2025-01-15 10:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253022', 'tblTempUsageDetail_20' ) end [2025-01-15 10:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253022', 'tblTempVendorCDR_20' ) start [2025-01-15 10:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253022', 'tblTempVendorCDR_20' ) end [2025-01-15 10:31:24] Production.INFO: ProcessCDR(1,14253022,1,1,2) [2025-01-15 10:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253022', 'tblTempUsageDetail_20' ) start [2025-01-15 10:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253022', 'tblTempUsageDetail_20' ) end [2025-01-15 10:31:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:31:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:31:29] Production.INFO: ==3628== Releasing lock... [2025-01-15 10:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:31:29] Production.INFO: 49.5 MB #Memory Used# [2025-01-15 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:32:05 [end_date_ymd] => 2025-01-15 10:32:05 [RateCDR] => 1 ) [2025-01-15 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:32:05' and `end` < '2025-01-15 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:32:20] Production.INFO: count ==2813 [2025-01-15 10:32:21] Production.ERROR: pbx CDR StartTime 2025-01-15 07:32:05 - End Time 2025-01-15 10:32:05 [2025-01-15 10:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253027', 'tblTempUsageDetail_20' ) start [2025-01-15 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253027', 'tblTempUsageDetail_20' ) end [2025-01-15 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253027', 'tblTempVendorCDR_20' ) start [2025-01-15 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253027', 'tblTempVendorCDR_20' ) end [2025-01-15 10:32:21] Production.INFO: ProcessCDR(1,14253027,1,1,2) [2025-01-15 10:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253027', 'tblTempUsageDetail_20' ) start [2025-01-15 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253027', 'tblTempUsageDetail_20' ) end [2025-01-15 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:32:26] Production.INFO: ==3698== Releasing lock... [2025-01-15 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:32:26] Production.INFO: 49.5 MB #Memory Used# [2025-01-15 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:33:05 [end_date_ymd] => 2025-01-15 10:33:05 [RateCDR] => 1 ) [2025-01-15 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:33:05' and `end` < '2025-01-15 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:33:18] Production.INFO: count ==2846 [2025-01-15 10:33:19] Production.ERROR: pbx CDR StartTime 2025-01-15 07:33:05 - End Time 2025-01-15 10:33:05 [2025-01-15 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253032', 'tblTempUsageDetail_20' ) start [2025-01-15 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253032', 'tblTempUsageDetail_20' ) end [2025-01-15 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253032', 'tblTempVendorCDR_20' ) start [2025-01-15 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253032', 'tblTempVendorCDR_20' ) end [2025-01-15 10:33:19] Production.INFO: ProcessCDR(1,14253032,1,1,2) [2025-01-15 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253032', 'tblTempUsageDetail_20' ) start [2025-01-15 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253032', 'tblTempUsageDetail_20' ) end [2025-01-15 10:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:33:24] Production.INFO: ==3769== Releasing lock... [2025-01-15 10:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:33:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-15 10:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:34:04 [end_date_ymd] => 2025-01-15 10:34:04 [RateCDR] => 1 ) [2025-01-15 10:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:34:04' and `end` < '2025-01-15 10:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:34:21] Production.INFO: count ==2855 [2025-01-15 10:34:22] Production.ERROR: pbx CDR StartTime 2025-01-15 07:34:04 - End Time 2025-01-15 10:34:04 [2025-01-15 10:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253037', 'tblTempUsageDetail_20' ) start [2025-01-15 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253037', 'tblTempUsageDetail_20' ) end [2025-01-15 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253037', 'tblTempVendorCDR_20' ) start [2025-01-15 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253037', 'tblTempVendorCDR_20' ) end [2025-01-15 10:34:22] Production.INFO: ProcessCDR(1,14253037,1,1,2) [2025-01-15 10:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253037', 'tblTempUsageDetail_20' ) start [2025-01-15 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253037', 'tblTempUsageDetail_20' ) end [2025-01-15 10:34:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:34:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:34:27] Production.INFO: ==3839== Releasing lock... [2025-01-15 10:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:34:27] Production.INFO: 49.25 MB #Memory Used# [2025-01-15 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:35:05 [end_date_ymd] => 2025-01-15 10:35:05 [RateCDR] => 1 ) [2025-01-15 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:35:05' and `end` < '2025-01-15 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:35:27] Production.INFO: count ==2886 [2025-01-15 10:35:28] Production.ERROR: pbx CDR StartTime 2025-01-15 07:35:05 - End Time 2025-01-15 10:35:05 [2025-01-15 10:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253042', 'tblTempUsageDetail_20' ) start [2025-01-15 10:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253042', 'tblTempUsageDetail_20' ) end [2025-01-15 10:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253042', 'tblTempVendorCDR_20' ) start [2025-01-15 10:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253042', 'tblTempVendorCDR_20' ) end [2025-01-15 10:35:28] Production.INFO: ProcessCDR(1,14253042,1,1,2) [2025-01-15 10:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253042', 'tblTempUsageDetail_20' ) start [2025-01-15 10:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253042', 'tblTempUsageDetail_20' ) end [2025-01-15 10:35:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:35:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:35:33] Production.INFO: ==3909== Releasing lock... [2025-01-15 10:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:35:33] Production.INFO: 49.75 MB #Memory Used# [2025-01-15 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:36:05 [end_date_ymd] => 2025-01-15 10:36:05 [RateCDR] => 1 ) [2025-01-15 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:36:05' and `end` < '2025-01-15 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:36:19] Production.INFO: count ==2900 [2025-01-15 10:36:20] Production.ERROR: pbx CDR StartTime 2025-01-15 07:36:05 - End Time 2025-01-15 10:36:05 [2025-01-15 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253047', 'tblTempUsageDetail_20' ) start [2025-01-15 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253047', 'tblTempUsageDetail_20' ) end [2025-01-15 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253047', 'tblTempVendorCDR_20' ) start [2025-01-15 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253047', 'tblTempVendorCDR_20' ) end [2025-01-15 10:36:21] Production.INFO: ProcessCDR(1,14253047,1,1,2) [2025-01-15 10:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253047', 'tblTempUsageDetail_20' ) start [2025-01-15 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253047', 'tblTempUsageDetail_20' ) end [2025-01-15 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:36:25] Production.INFO: ==3983== Releasing lock... [2025-01-15 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:36:25] Production.INFO: 50.25 MB #Memory Used# [2025-01-15 10:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:37:04 [end_date_ymd] => 2025-01-15 10:37:04 [RateCDR] => 1 ) [2025-01-15 10:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:37:04' and `end` < '2025-01-15 10:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:37:18] Production.INFO: count ==2903 [2025-01-15 10:37:19] Production.ERROR: pbx CDR StartTime 2025-01-15 07:37:04 - End Time 2025-01-15 10:37:04 [2025-01-15 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253052', 'tblTempUsageDetail_20' ) start [2025-01-15 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253052', 'tblTempUsageDetail_20' ) end [2025-01-15 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253052', 'tblTempVendorCDR_20' ) start [2025-01-15 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253052', 'tblTempVendorCDR_20' ) end [2025-01-15 10:37:19] Production.INFO: ProcessCDR(1,14253052,1,1,2) [2025-01-15 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253052', 'tblTempUsageDetail_20' ) start [2025-01-15 10:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253052', 'tblTempUsageDetail_20' ) end [2025-01-15 10:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:37:23] Production.INFO: ==4054== Releasing lock... [2025-01-15 10:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:37:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-15 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:38:05 [end_date_ymd] => 2025-01-15 10:38:05 [RateCDR] => 1 ) [2025-01-15 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:38:05' and `end` < '2025-01-15 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:38:27] Production.INFO: count ==2912 [2025-01-15 10:38:28] Production.ERROR: pbx CDR StartTime 2025-01-15 07:38:05 - End Time 2025-01-15 10:38:05 [2025-01-15 10:38:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253057', 'tblTempUsageDetail_20' ) start [2025-01-15 10:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253057', 'tblTempUsageDetail_20' ) end [2025-01-15 10:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253057', 'tblTempVendorCDR_20' ) start [2025-01-15 10:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253057', 'tblTempVendorCDR_20' ) end [2025-01-15 10:38:28] Production.INFO: ProcessCDR(1,14253057,1,1,2) [2025-01-15 10:38:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253057', 'tblTempUsageDetail_20' ) start [2025-01-15 10:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253057', 'tblTempUsageDetail_20' ) end [2025-01-15 10:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:38:32] Production.INFO: ==4167== Releasing lock... [2025-01-15 10:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:38:32] Production.INFO: 50.25 MB #Memory Used# [2025-01-15 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:39:05 [end_date_ymd] => 2025-01-15 10:39:05 [RateCDR] => 1 ) [2025-01-15 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:39:05' and `end` < '2025-01-15 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:39:21] Production.INFO: count ==2920 [2025-01-15 10:39:22] Production.ERROR: pbx CDR StartTime 2025-01-15 07:39:05 - End Time 2025-01-15 10:39:05 [2025-01-15 10:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253062', 'tblTempUsageDetail_20' ) start [2025-01-15 10:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253062', 'tblTempUsageDetail_20' ) end [2025-01-15 10:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253062', 'tblTempVendorCDR_20' ) start [2025-01-15 10:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253062', 'tblTempVendorCDR_20' ) end [2025-01-15 10:39:22] Production.INFO: ProcessCDR(1,14253062,1,1,2) [2025-01-15 10:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253062', 'tblTempUsageDetail_20' ) start [2025-01-15 10:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253062', 'tblTempUsageDetail_20' ) end [2025-01-15 10:39:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:39:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:39:27] Production.INFO: ==4244== Releasing lock... [2025-01-15 10:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:39:27] Production.INFO: 50 MB #Memory Used# [2025-01-15 10:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:40:07 [end_date_ymd] => 2025-01-15 10:40:07 [RateCDR] => 1 ) [2025-01-15 10:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:40:07' and `end` < '2025-01-15 10:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:40:20] Production.INFO: count ==2930 [2025-01-15 10:40:21] Production.ERROR: pbx CDR StartTime 2025-01-15 07:40:07 - End Time 2025-01-15 10:40:07 [2025-01-15 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253068', 'tblTempUsageDetail_20' ) start [2025-01-15 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253068', 'tblTempUsageDetail_20' ) end [2025-01-15 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253068', 'tblTempVendorCDR_20' ) start [2025-01-15 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253068', 'tblTempVendorCDR_20' ) end [2025-01-15 10:40:21] Production.INFO: ProcessCDR(1,14253068,1,1,2) [2025-01-15 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253068', 'tblTempUsageDetail_20' ) start [2025-01-15 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253068', 'tblTempUsageDetail_20' ) end [2025-01-15 10:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:40:25] Production.INFO: ==4317== Releasing lock... [2025-01-15 10:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:40:25] Production.INFO: 50.25 MB #Memory Used# [2025-01-15 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:41:05 [end_date_ymd] => 2025-01-15 10:41:05 [RateCDR] => 1 ) [2025-01-15 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:41:05' and `end` < '2025-01-15 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:41:24] Production.INFO: count ==3052 [2025-01-15 10:41:25] Production.ERROR: pbx CDR StartTime 2025-01-15 07:41:05 - End Time 2025-01-15 10:41:05 [2025-01-15 10:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253073', 'tblTempUsageDetail_20' ) start [2025-01-15 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253073', 'tblTempUsageDetail_20' ) end [2025-01-15 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253073', 'tblTempVendorCDR_20' ) start [2025-01-15 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253073', 'tblTempVendorCDR_20' ) end [2025-01-15 10:41:26] Production.INFO: ProcessCDR(1,14253073,1,1,2) [2025-01-15 10:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253073', 'tblTempUsageDetail_20' ) start [2025-01-15 10:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253073', 'tblTempUsageDetail_20' ) end [2025-01-15 10:41:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:41:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:41:31] Production.INFO: ==4390== Releasing lock... [2025-01-15 10:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:41:31] Production.INFO: 51 MB #Memory Used# [2025-01-15 10:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:42:04 [end_date_ymd] => 2025-01-15 10:42:04 [RateCDR] => 1 ) [2025-01-15 10:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:42:04' and `end` < '2025-01-15 10:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:42:25] Production.INFO: count ==3080 [2025-01-15 10:42:26] Production.ERROR: pbx CDR StartTime 2025-01-15 07:42:04 - End Time 2025-01-15 10:42:04 [2025-01-15 10:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253078', 'tblTempUsageDetail_20' ) start [2025-01-15 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253078', 'tblTempUsageDetail_20' ) end [2025-01-15 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253078', 'tblTempVendorCDR_20' ) start [2025-01-15 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253078', 'tblTempVendorCDR_20' ) end [2025-01-15 10:42:26] Production.INFO: ProcessCDR(1,14253078,1,1,2) [2025-01-15 10:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253078', 'tblTempUsageDetail_20' ) start [2025-01-15 10:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253078', 'tblTempUsageDetail_20' ) end [2025-01-15 10:42:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:42:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:42:31] Production.INFO: ==4463== Releasing lock... [2025-01-15 10:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:42:31] Production.INFO: 51.25 MB #Memory Used# [2025-01-15 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:43:05 [end_date_ymd] => 2025-01-15 10:43:05 [RateCDR] => 1 ) [2025-01-15 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:43:05' and `end` < '2025-01-15 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:43:22] Production.INFO: count ==3084 [2025-01-15 10:43:23] Production.ERROR: pbx CDR StartTime 2025-01-15 07:43:05 - End Time 2025-01-15 10:43:05 [2025-01-15 10:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253083', 'tblTempUsageDetail_20' ) start [2025-01-15 10:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253083', 'tblTempUsageDetail_20' ) end [2025-01-15 10:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253083', 'tblTempVendorCDR_20' ) start [2025-01-15 10:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253083', 'tblTempVendorCDR_20' ) end [2025-01-15 10:43:24] Production.INFO: ProcessCDR(1,14253083,1,1,2) [2025-01-15 10:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253083', 'tblTempUsageDetail_20' ) start [2025-01-15 10:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253083', 'tblTempUsageDetail_20' ) end [2025-01-15 10:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:43:28] Production.INFO: ==4533== Releasing lock... [2025-01-15 10:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:43:28] Production.INFO: 51.25 MB #Memory Used# [2025-01-15 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:44:05 [end_date_ymd] => 2025-01-15 10:44:05 [RateCDR] => 1 ) [2025-01-15 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:44:05' and `end` < '2025-01-15 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:44:25] Production.INFO: count ==3104 [2025-01-15 10:44:27] Production.ERROR: pbx CDR StartTime 2025-01-15 07:44:05 - End Time 2025-01-15 10:44:05 [2025-01-15 10:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253088', 'tblTempUsageDetail_20' ) start [2025-01-15 10:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253088', 'tblTempUsageDetail_20' ) end [2025-01-15 10:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253088', 'tblTempVendorCDR_20' ) start [2025-01-15 10:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253088', 'tblTempVendorCDR_20' ) end [2025-01-15 10:44:27] Production.INFO: ProcessCDR(1,14253088,1,1,2) [2025-01-15 10:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253088', 'tblTempUsageDetail_20' ) start [2025-01-15 10:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253088', 'tblTempUsageDetail_20' ) end [2025-01-15 10:44:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:44:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:44:31] Production.INFO: ==4612== Releasing lock... [2025-01-15 10:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:44:31] Production.INFO: 51.75 MB #Memory Used# [2025-01-15 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:45:05 [end_date_ymd] => 2025-01-15 10:45:05 [RateCDR] => 1 ) [2025-01-15 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:45:05' and `end` < '2025-01-15 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:45:24] Production.INFO: count ==3110 [2025-01-15 10:45:26] Production.ERROR: pbx CDR StartTime 2025-01-15 07:45:05 - End Time 2025-01-15 10:45:05 [2025-01-15 10:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253093', 'tblTempUsageDetail_20' ) start [2025-01-15 10:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253093', 'tblTempUsageDetail_20' ) end [2025-01-15 10:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253093', 'tblTempVendorCDR_20' ) start [2025-01-15 10:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253093', 'tblTempVendorCDR_20' ) end [2025-01-15 10:45:26] Production.INFO: ProcessCDR(1,14253093,1,1,2) [2025-01-15 10:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253093', 'tblTempUsageDetail_20' ) start [2025-01-15 10:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253093', 'tblTempUsageDetail_20' ) end [2025-01-15 10:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:45:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:45:31] Production.INFO: ==4684== Releasing lock... [2025-01-15 10:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:45:31] Production.INFO: 51.75 MB #Memory Used# [2025-01-15 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:46:05 [end_date_ymd] => 2025-01-15 10:46:05 [RateCDR] => 1 ) [2025-01-15 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:46:05' and `end` < '2025-01-15 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:46:28] Production.INFO: count ==3134 [2025-01-15 10:46:29] Production.ERROR: pbx CDR StartTime 2025-01-15 07:46:05 - End Time 2025-01-15 10:46:05 [2025-01-15 10:46:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253098', 'tblTempUsageDetail_20' ) start [2025-01-15 10:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253098', 'tblTempUsageDetail_20' ) end [2025-01-15 10:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253098', 'tblTempVendorCDR_20' ) start [2025-01-15 10:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253098', 'tblTempVendorCDR_20' ) end [2025-01-15 10:46:30] Production.INFO: ProcessCDR(1,14253098,1,1,2) [2025-01-15 10:46:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:46:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253098', 'tblTempUsageDetail_20' ) start [2025-01-15 10:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253098', 'tblTempUsageDetail_20' ) end [2025-01-15 10:46:34] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:46:35] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:46:35] Production.INFO: ==4753== Releasing lock... [2025-01-15 10:46:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:46:35] Production.INFO: 51.5 MB #Memory Used# [2025-01-15 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:47:05 [end_date_ymd] => 2025-01-15 10:47:05 [RateCDR] => 1 ) [2025-01-15 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:47:05' and `end` < '2025-01-15 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:47:24] Production.INFO: count ==3149 [2025-01-15 10:47:26] Production.ERROR: pbx CDR StartTime 2025-01-15 07:47:05 - End Time 2025-01-15 10:47:05 [2025-01-15 10:47:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253103', 'tblTempUsageDetail_20' ) start [2025-01-15 10:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253103', 'tblTempUsageDetail_20' ) end [2025-01-15 10:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253103', 'tblTempVendorCDR_20' ) start [2025-01-15 10:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253103', 'tblTempVendorCDR_20' ) end [2025-01-15 10:47:26] Production.INFO: ProcessCDR(1,14253103,1,1,2) [2025-01-15 10:47:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253103', 'tblTempUsageDetail_20' ) start [2025-01-15 10:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253103', 'tblTempUsageDetail_20' ) end [2025-01-15 10:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:47:30] Production.INFO: ==4823== Releasing lock... [2025-01-15 10:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:47:30] Production.INFO: 52 MB #Memory Used# [2025-01-15 10:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:48:04 [end_date_ymd] => 2025-01-15 10:48:04 [RateCDR] => 1 ) [2025-01-15 10:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:48:04' and `end` < '2025-01-15 10:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:48:20] Production.INFO: count ==3165 [2025-01-15 10:48:22] Production.ERROR: pbx CDR StartTime 2025-01-15 07:48:04 - End Time 2025-01-15 10:48:04 [2025-01-15 10:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253104', 'tblTempUsageDetail_20' ) start [2025-01-15 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253104', 'tblTempUsageDetail_20' ) end [2025-01-15 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253104', 'tblTempVendorCDR_20' ) start [2025-01-15 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253104', 'tblTempVendorCDR_20' ) end [2025-01-15 10:48:22] Production.INFO: ProcessCDR(1,14253104,1,1,2) [2025-01-15 10:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253104', 'tblTempUsageDetail_20' ) start [2025-01-15 10:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253104', 'tblTempUsageDetail_20' ) end [2025-01-15 10:48:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:48:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:48:27] Production.INFO: ==4895== Releasing lock... [2025-01-15 10:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:48:27] Production.INFO: 51.75 MB #Memory Used# [2025-01-15 10:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:49:04 [end_date_ymd] => 2025-01-15 10:49:04 [RateCDR] => 1 ) [2025-01-15 10:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:49:04' and `end` < '2025-01-15 10:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:49:23] Production.INFO: count ==3170 [2025-01-15 10:49:24] Production.ERROR: pbx CDR StartTime 2025-01-15 07:49:04 - End Time 2025-01-15 10:49:04 [2025-01-15 10:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253113', 'tblTempUsageDetail_20' ) start [2025-01-15 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253113', 'tblTempUsageDetail_20' ) end [2025-01-15 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253113', 'tblTempVendorCDR_20' ) start [2025-01-15 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253113', 'tblTempVendorCDR_20' ) end [2025-01-15 10:49:24] Production.INFO: ProcessCDR(1,14253113,1,1,2) [2025-01-15 10:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253113', 'tblTempUsageDetail_20' ) start [2025-01-15 10:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253113', 'tblTempUsageDetail_20' ) end [2025-01-15 10:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:49:27] Production.INFO: ==4967== Releasing lock... [2025-01-15 10:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:49:27] Production.INFO: 51.75 MB #Memory Used# [2025-01-15 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:50:06 [end_date_ymd] => 2025-01-15 10:50:06 [RateCDR] => 1 ) [2025-01-15 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:50:06' and `end` < '2025-01-15 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:50:23] Production.INFO: count ==3204 [2025-01-15 10:50:24] Production.ERROR: pbx CDR StartTime 2025-01-15 07:50:06 - End Time 2025-01-15 10:50:06 [2025-01-15 10:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253119', 'tblTempUsageDetail_20' ) start [2025-01-15 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253119', 'tblTempUsageDetail_20' ) end [2025-01-15 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253119', 'tblTempVendorCDR_20' ) start [2025-01-15 10:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253119', 'tblTempVendorCDR_20' ) end [2025-01-15 10:50:24] Production.INFO: ProcessCDR(1,14253119,1,1,2) [2025-01-15 10:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253119', 'tblTempUsageDetail_20' ) start [2025-01-15 10:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253119', 'tblTempUsageDetail_20' ) end [2025-01-15 10:50:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:50:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:50:29] Production.INFO: ==5040== Releasing lock... [2025-01-15 10:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:50:29] Production.INFO: 52 MB #Memory Used# [2025-01-15 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:51:05 [end_date_ymd] => 2025-01-15 10:51:05 [RateCDR] => 1 ) [2025-01-15 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:51:05' and `end` < '2025-01-15 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:51:18] Production.INFO: count ==3285 [2025-01-15 10:51:20] Production.ERROR: pbx CDR StartTime 2025-01-15 07:51:05 - End Time 2025-01-15 10:51:05 [2025-01-15 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253124', 'tblTempUsageDetail_20' ) start [2025-01-15 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253124', 'tblTempUsageDetail_20' ) end [2025-01-15 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253124', 'tblTempVendorCDR_20' ) start [2025-01-15 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253124', 'tblTempVendorCDR_20' ) end [2025-01-15 10:51:20] Production.INFO: ProcessCDR(1,14253124,1,1,2) [2025-01-15 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253124', 'tblTempUsageDetail_20' ) start [2025-01-15 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253124', 'tblTempUsageDetail_20' ) end [2025-01-15 10:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:51:24] Production.INFO: ==5114== Releasing lock... [2025-01-15 10:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:51:24] Production.INFO: 52.5 MB #Memory Used# [2025-01-15 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:52:05 [end_date_ymd] => 2025-01-15 10:52:05 [RateCDR] => 1 ) [2025-01-15 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:52:05' and `end` < '2025-01-15 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:52:18] Production.INFO: count ==3319 [2025-01-15 10:52:19] Production.ERROR: pbx CDR StartTime 2025-01-15 07:52:05 - End Time 2025-01-15 10:52:05 [2025-01-15 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253129', 'tblTempUsageDetail_20' ) start [2025-01-15 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253129', 'tblTempUsageDetail_20' ) end [2025-01-15 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253129', 'tblTempVendorCDR_20' ) start [2025-01-15 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253129', 'tblTempVendorCDR_20' ) end [2025-01-15 10:52:19] Production.INFO: ProcessCDR(1,14253129,1,1,2) [2025-01-15 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253129', 'tblTempUsageDetail_20' ) start [2025-01-15 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253129', 'tblTempUsageDetail_20' ) end [2025-01-15 10:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:52:24] Production.INFO: ==5189== Releasing lock... [2025-01-15 10:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:52:24] Production.INFO: 52.75 MB #Memory Used# [2025-01-15 10:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:53:04 [end_date_ymd] => 2025-01-15 10:53:04 [RateCDR] => 1 ) [2025-01-15 10:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:53:04' and `end` < '2025-01-15 10:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:53:19] Production.INFO: count ==3344 [2025-01-15 10:53:21] Production.ERROR: pbx CDR StartTime 2025-01-15 07:53:04 - End Time 2025-01-15 10:53:04 [2025-01-15 10:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253134', 'tblTempUsageDetail_20' ) start [2025-01-15 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253134', 'tblTempUsageDetail_20' ) end [2025-01-15 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253134', 'tblTempVendorCDR_20' ) start [2025-01-15 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253134', 'tblTempVendorCDR_20' ) end [2025-01-15 10:53:21] Production.INFO: ProcessCDR(1,14253134,1,1,2) [2025-01-15 10:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253134', 'tblTempUsageDetail_20' ) start [2025-01-15 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253134', 'tblTempUsageDetail_20' ) end [2025-01-15 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:53:25] Production.INFO: ==5262== Releasing lock... [2025-01-15 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:53:25] Production.INFO: 53 MB #Memory Used# [2025-01-15 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:54:05 [end_date_ymd] => 2025-01-15 10:54:05 [RateCDR] => 1 ) [2025-01-15 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:54:05' and `end` < '2025-01-15 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:54:18] Production.INFO: count ==3353 [2025-01-15 10:54:19] Production.ERROR: pbx CDR StartTime 2025-01-15 07:54:05 - End Time 2025-01-15 10:54:05 [2025-01-15 10:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253139', 'tblTempUsageDetail_20' ) start [2025-01-15 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253139', 'tblTempUsageDetail_20' ) end [2025-01-15 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253139', 'tblTempVendorCDR_20' ) start [2025-01-15 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253139', 'tblTempVendorCDR_20' ) end [2025-01-15 10:54:19] Production.INFO: ProcessCDR(1,14253139,1,1,2) [2025-01-15 10:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253139', 'tblTempUsageDetail_20' ) start [2025-01-15 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253139', 'tblTempUsageDetail_20' ) end [2025-01-15 10:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:54:24] Production.INFO: ==5372== Releasing lock... [2025-01-15 10:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:54:24] Production.INFO: 53.25 MB #Memory Used# [2025-01-15 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:55:05 [end_date_ymd] => 2025-01-15 10:55:05 [RateCDR] => 1 ) [2025-01-15 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:55:05' and `end` < '2025-01-15 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:55:20] Production.INFO: count ==3360 [2025-01-15 10:55:21] Production.ERROR: pbx CDR StartTime 2025-01-15 07:55:05 - End Time 2025-01-15 10:55:05 [2025-01-15 10:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253144', 'tblTempUsageDetail_20' ) start [2025-01-15 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253144', 'tblTempUsageDetail_20' ) end [2025-01-15 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253144', 'tblTempVendorCDR_20' ) start [2025-01-15 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253144', 'tblTempVendorCDR_20' ) end [2025-01-15 10:55:21] Production.INFO: ProcessCDR(1,14253144,1,1,2) [2025-01-15 10:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253144', 'tblTempUsageDetail_20' ) start [2025-01-15 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253144', 'tblTempUsageDetail_20' ) end [2025-01-15 10:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:55:26] Production.INFO: ==5444== Releasing lock... [2025-01-15 10:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:55:26] Production.INFO: 53.5 MB #Memory Used# [2025-01-15 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:56:05 [end_date_ymd] => 2025-01-15 10:56:05 [RateCDR] => 1 ) [2025-01-15 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:56:05' and `end` < '2025-01-15 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:56:24] Production.INFO: count ==3373 [2025-01-15 10:56:26] Production.ERROR: pbx CDR StartTime 2025-01-15 07:56:05 - End Time 2025-01-15 10:56:05 [2025-01-15 10:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253149', 'tblTempUsageDetail_20' ) start [2025-01-15 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253149', 'tblTempUsageDetail_20' ) end [2025-01-15 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253149', 'tblTempVendorCDR_20' ) start [2025-01-15 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253149', 'tblTempVendorCDR_20' ) end [2025-01-15 10:56:26] Production.INFO: ProcessCDR(1,14253149,1,1,2) [2025-01-15 10:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253149', 'tblTempUsageDetail_20' ) start [2025-01-15 10:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253149', 'tblTempUsageDetail_20' ) end [2025-01-15 10:56:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:56:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:56:30] Production.INFO: ==5515== Releasing lock... [2025-01-15 10:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:56:30] Production.INFO: 53.25 MB #Memory Used# [2025-01-15 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:57:05 [end_date_ymd] => 2025-01-15 10:57:05 [RateCDR] => 1 ) [2025-01-15 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:57:05' and `end` < '2025-01-15 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:57:24] Production.INFO: count ==3372 [2025-01-15 10:57:25] Production.ERROR: pbx CDR StartTime 2025-01-15 07:57:05 - End Time 2025-01-15 10:57:05 [2025-01-15 10:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253154', 'tblTempUsageDetail_20' ) start [2025-01-15 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253154', 'tblTempUsageDetail_20' ) end [2025-01-15 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253154', 'tblTempVendorCDR_20' ) start [2025-01-15 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253154', 'tblTempVendorCDR_20' ) end [2025-01-15 10:57:25] Production.INFO: ProcessCDR(1,14253154,1,1,2) [2025-01-15 10:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253154', 'tblTempUsageDetail_20' ) start [2025-01-15 10:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253154', 'tblTempUsageDetail_20' ) end [2025-01-15 10:57:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:57:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:57:30] Production.INFO: ==5590== Releasing lock... [2025-01-15 10:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:57:30] Production.INFO: 53.5 MB #Memory Used# [2025-01-15 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:58:05 [end_date_ymd] => 2025-01-15 10:58:05 [RateCDR] => 1 ) [2025-01-15 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:58:05' and `end` < '2025-01-15 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:58:20] Production.INFO: count ==3388 [2025-01-15 10:58:21] Production.ERROR: pbx CDR StartTime 2025-01-15 07:58:05 - End Time 2025-01-15 10:58:05 [2025-01-15 10:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253159', 'tblTempUsageDetail_20' ) start [2025-01-15 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253159', 'tblTempUsageDetail_20' ) end [2025-01-15 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253159', 'tblTempVendorCDR_20' ) start [2025-01-15 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253159', 'tblTempVendorCDR_20' ) end [2025-01-15 10:58:21] Production.INFO: ProcessCDR(1,14253159,1,1,2) [2025-01-15 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253159', 'tblTempUsageDetail_20' ) start [2025-01-15 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253159', 'tblTempUsageDetail_20' ) end [2025-01-15 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:58:26] Production.INFO: ==5663== Releasing lock... [2025-01-15 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:58:26] Production.INFO: 53.75 MB #Memory Used# [2025-01-15 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 07:59:05 [end_date_ymd] => 2025-01-15 10:59:05 [RateCDR] => 1 ) [2025-01-15 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 07:59:05' and `end` < '2025-01-15 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 10:59:25] Production.INFO: count ==3403 [2025-01-15 10:59:26] Production.ERROR: pbx CDR StartTime 2025-01-15 07:59:05 - End Time 2025-01-15 10:59:05 [2025-01-15 10:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 10:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253164', 'tblTempUsageDetail_20' ) start [2025-01-15 10:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253164', 'tblTempUsageDetail_20' ) end [2025-01-15 10:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253164', 'tblTempVendorCDR_20' ) start [2025-01-15 10:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253164', 'tblTempVendorCDR_20' ) end [2025-01-15 10:59:26] Production.INFO: ProcessCDR(1,14253164,1,1,2) [2025-01-15 10:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 10:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 10:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253164', 'tblTempUsageDetail_20' ) start [2025-01-15 10:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253164', 'tblTempUsageDetail_20' ) end [2025-01-15 10:59:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 10:59:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 10:59:31] Production.INFO: ==5734== Releasing lock... [2025-01-15 10:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 10:59:31] Production.INFO: 53.5 MB #Memory Used# [2025-01-15 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:00:05 [end_date_ymd] => 2025-01-15 11:00:05 [RateCDR] => 1 ) [2025-01-15 11:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:00:05' and `end` < '2025-01-15 11:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:00:20] Production.INFO: count ==3409 [2025-01-15 11:00:21] Production.ERROR: pbx CDR StartTime 2025-01-15 08:00:05 - End Time 2025-01-15 11:00:05 [2025-01-15 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253170', 'tblTempUsageDetail_20' ) start [2025-01-15 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253170', 'tblTempUsageDetail_20' ) end [2025-01-15 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253170', 'tblTempVendorCDR_20' ) start [2025-01-15 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253170', 'tblTempVendorCDR_20' ) end [2025-01-15 11:00:21] Production.INFO: ProcessCDR(1,14253170,1,1,2) [2025-01-15 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253170', 'tblTempUsageDetail_20' ) start [2025-01-15 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253170', 'tblTempUsageDetail_20' ) end [2025-01-15 11:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:00:26] Production.INFO: ==5806== Releasing lock... [2025-01-15 11:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:00:26] Production.INFO: 54 MB #Memory Used# [2025-01-15 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:01:05 [end_date_ymd] => 2025-01-15 11:01:05 [RateCDR] => 1 ) [2025-01-15 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:01:05' and `end` < '2025-01-15 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:01:18] Production.INFO: count ==3499 [2025-01-15 11:01:19] Production.ERROR: pbx CDR StartTime 2025-01-15 08:01:05 - End Time 2025-01-15 11:01:05 [2025-01-15 11:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253175', 'tblTempUsageDetail_20' ) start [2025-01-15 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253175', 'tblTempUsageDetail_20' ) end [2025-01-15 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253175', 'tblTempVendorCDR_20' ) start [2025-01-15 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253175', 'tblTempVendorCDR_20' ) end [2025-01-15 11:01:20] Production.INFO: ProcessCDR(1,14253175,1,1,2) [2025-01-15 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253175', 'tblTempUsageDetail_20' ) start [2025-01-15 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253175', 'tblTempUsageDetail_20' ) end [2025-01-15 11:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:01:24] Production.INFO: ==5896== Releasing lock... [2025-01-15 11:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:01:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-15 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:02:05 [end_date_ymd] => 2025-01-15 11:02:05 [RateCDR] => 1 ) [2025-01-15 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:02:05' and `end` < '2025-01-15 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:02:27] Production.INFO: count ==3526 [2025-01-15 11:02:28] Production.ERROR: pbx CDR StartTime 2025-01-15 08:02:05 - End Time 2025-01-15 11:02:05 [2025-01-15 11:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253180', 'tblTempUsageDetail_20' ) start [2025-01-15 11:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253180', 'tblTempUsageDetail_20' ) end [2025-01-15 11:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253180', 'tblTempVendorCDR_20' ) start [2025-01-15 11:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253180', 'tblTempVendorCDR_20' ) end [2025-01-15 11:02:28] Production.INFO: ProcessCDR(1,14253180,1,1,2) [2025-01-15 11:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253180', 'tblTempUsageDetail_20' ) start [2025-01-15 11:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253180', 'tblTempUsageDetail_20' ) end [2025-01-15 11:02:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:02:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:02:33] Production.INFO: ==6048== Releasing lock... [2025-01-15 11:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:02:33] Production.INFO: 54.25 MB #Memory Used# [2025-01-15 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:03:05 [end_date_ymd] => 2025-01-15 11:03:05 [RateCDR] => 1 ) [2025-01-15 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:03:05' and `end` < '2025-01-15 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:03:23] Production.INFO: count ==3549 [2025-01-15 11:03:24] Production.ERROR: pbx CDR StartTime 2025-01-15 08:03:05 - End Time 2025-01-15 11:03:05 [2025-01-15 11:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253185', 'tblTempUsageDetail_20' ) start [2025-01-15 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253185', 'tblTempUsageDetail_20' ) end [2025-01-15 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253185', 'tblTempVendorCDR_20' ) start [2025-01-15 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253185', 'tblTempVendorCDR_20' ) end [2025-01-15 11:03:25] Production.INFO: ProcessCDR(1,14253185,1,1,2) [2025-01-15 11:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253185', 'tblTempUsageDetail_20' ) start [2025-01-15 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253185', 'tblTempUsageDetail_20' ) end [2025-01-15 11:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:03:30] Production.INFO: ==6122== Releasing lock... [2025-01-15 11:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:03:30] Production.INFO: 55 MB #Memory Used# [2025-01-15 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:04:05 [end_date_ymd] => 2025-01-15 11:04:05 [RateCDR] => 1 ) [2025-01-15 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:04:05' and `end` < '2025-01-15 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:04:21] Production.INFO: count ==3544 [2025-01-15 11:04:23] Production.ERROR: pbx CDR StartTime 2025-01-15 08:04:05 - End Time 2025-01-15 11:04:05 [2025-01-15 11:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253190', 'tblTempUsageDetail_20' ) start [2025-01-15 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253190', 'tblTempUsageDetail_20' ) end [2025-01-15 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253190', 'tblTempVendorCDR_20' ) start [2025-01-15 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253190', 'tblTempVendorCDR_20' ) end [2025-01-15 11:04:23] Production.INFO: ProcessCDR(1,14253190,1,1,2) [2025-01-15 11:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253190', 'tblTempUsageDetail_20' ) start [2025-01-15 11:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253190', 'tblTempUsageDetail_20' ) end [2025-01-15 11:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:04:28] Production.INFO: ==6198== Releasing lock... [2025-01-15 11:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:04:28] Production.INFO: 54.75 MB #Memory Used# [2025-01-15 11:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:05:04 [end_date_ymd] => 2025-01-15 11:05:04 [RateCDR] => 1 ) [2025-01-15 11:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:05:04' and `end` < '2025-01-15 11:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:05:22] Production.INFO: count ==3525 [2025-01-15 11:05:23] Production.ERROR: pbx CDR StartTime 2025-01-15 08:05:04 - End Time 2025-01-15 11:05:04 [2025-01-15 11:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253195', 'tblTempUsageDetail_20' ) start [2025-01-15 11:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253195', 'tblTempUsageDetail_20' ) end [2025-01-15 11:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253195', 'tblTempVendorCDR_20' ) start [2025-01-15 11:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253195', 'tblTempVendorCDR_20' ) end [2025-01-15 11:05:23] Production.INFO: ProcessCDR(1,14253195,1,1,2) [2025-01-15 11:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253195', 'tblTempUsageDetail_20' ) start [2025-01-15 11:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253195', 'tblTempUsageDetail_20' ) end [2025-01-15 11:05:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:05:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:05:28] Production.INFO: ==6349== Releasing lock... [2025-01-15 11:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:05:28] Production.INFO: 55 MB #Memory Used# [2025-01-15 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:06:05 [end_date_ymd] => 2025-01-15 11:06:05 [RateCDR] => 1 ) [2025-01-15 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:06:05' and `end` < '2025-01-15 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:06:22] Production.INFO: count ==3534 [2025-01-15 11:06:23] Production.ERROR: pbx CDR StartTime 2025-01-15 08:06:05 - End Time 2025-01-15 11:06:05 [2025-01-15 11:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253200', 'tblTempUsageDetail_20' ) start [2025-01-15 11:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253200', 'tblTempUsageDetail_20' ) end [2025-01-15 11:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253200', 'tblTempVendorCDR_20' ) start [2025-01-15 11:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253200', 'tblTempVendorCDR_20' ) end [2025-01-15 11:06:23] Production.INFO: ProcessCDR(1,14253200,1,1,2) [2025-01-15 11:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253200', 'tblTempUsageDetail_20' ) start [2025-01-15 11:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253200', 'tblTempUsageDetail_20' ) end [2025-01-15 11:06:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:06:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:06:28] Production.INFO: ==6428== Releasing lock... [2025-01-15 11:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:06:28] Production.INFO: 54.25 MB #Memory Used# [2025-01-15 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:07:05 [end_date_ymd] => 2025-01-15 11:07:05 [RateCDR] => 1 ) [2025-01-15 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:07:05' and `end` < '2025-01-15 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:07:18] Production.INFO: count ==3546 [2025-01-15 11:07:20] Production.ERROR: pbx CDR StartTime 2025-01-15 08:07:05 - End Time 2025-01-15 11:07:05 [2025-01-15 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253205', 'tblTempUsageDetail_20' ) start [2025-01-15 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253205', 'tblTempUsageDetail_20' ) end [2025-01-15 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253205', 'tblTempVendorCDR_20' ) start [2025-01-15 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253205', 'tblTempVendorCDR_20' ) end [2025-01-15 11:07:20] Production.INFO: ProcessCDR(1,14253205,1,1,2) [2025-01-15 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253205', 'tblTempUsageDetail_20' ) start [2025-01-15 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253205', 'tblTempUsageDetail_20' ) end [2025-01-15 11:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:07:24] Production.INFO: ==6503== Releasing lock... [2025-01-15 11:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:07:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-15 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:08:05 [end_date_ymd] => 2025-01-15 11:08:05 [RateCDR] => 1 ) [2025-01-15 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:08:05' and `end` < '2025-01-15 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:08:25] Production.INFO: count ==3545 [2025-01-15 11:08:26] Production.ERROR: pbx CDR StartTime 2025-01-15 08:08:05 - End Time 2025-01-15 11:08:05 [2025-01-15 11:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253210', 'tblTempUsageDetail_20' ) start [2025-01-15 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253210', 'tblTempUsageDetail_20' ) end [2025-01-15 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253210', 'tblTempVendorCDR_20' ) start [2025-01-15 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253210', 'tblTempVendorCDR_20' ) end [2025-01-15 11:08:26] Production.INFO: ProcessCDR(1,14253210,1,1,2) [2025-01-15 11:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253210', 'tblTempUsageDetail_20' ) start [2025-01-15 11:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253210', 'tblTempUsageDetail_20' ) end [2025-01-15 11:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:08:31] Production.INFO: ==6616== Releasing lock... [2025-01-15 11:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:08:31] Production.INFO: 55 MB #Memory Used# [2025-01-15 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:09:05 [end_date_ymd] => 2025-01-15 11:09:05 [RateCDR] => 1 ) [2025-01-15 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:09:05' and `end` < '2025-01-15 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:09:22] Production.INFO: count ==3554 [2025-01-15 11:09:24] Production.ERROR: pbx CDR StartTime 2025-01-15 08:09:05 - End Time 2025-01-15 11:09:05 [2025-01-15 11:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253215', 'tblTempUsageDetail_20' ) start [2025-01-15 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253215', 'tblTempUsageDetail_20' ) end [2025-01-15 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253215', 'tblTempVendorCDR_20' ) start [2025-01-15 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253215', 'tblTempVendorCDR_20' ) end [2025-01-15 11:09:24] Production.INFO: ProcessCDR(1,14253215,1,1,2) [2025-01-15 11:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253215', 'tblTempUsageDetail_20' ) start [2025-01-15 11:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253215', 'tblTempUsageDetail_20' ) end [2025-01-15 11:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:09:29] Production.INFO: ==6772== Releasing lock... [2025-01-15 11:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:09:29] Production.INFO: 55 MB #Memory Used# [2025-01-15 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:10:05 [end_date_ymd] => 2025-01-15 11:10:05 [RateCDR] => 1 ) [2025-01-15 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:10:05' and `end` < '2025-01-15 11:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:10:26] Production.INFO: count ==3551 [2025-01-15 11:10:28] Production.ERROR: pbx CDR StartTime 2025-01-15 08:10:05 - End Time 2025-01-15 11:10:05 [2025-01-15 11:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253221', 'tblTempUsageDetail_20' ) start [2025-01-15 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253221', 'tblTempUsageDetail_20' ) end [2025-01-15 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253221', 'tblTempVendorCDR_20' ) start [2025-01-15 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253221', 'tblTempVendorCDR_20' ) end [2025-01-15 11:10:28] Production.INFO: ProcessCDR(1,14253221,1,1,2) [2025-01-15 11:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253221', 'tblTempUsageDetail_20' ) start [2025-01-15 11:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253221', 'tblTempUsageDetail_20' ) end [2025-01-15 11:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:10:33] Production.INFO: ==6846== Releasing lock... [2025-01-15 11:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:10:33] Production.INFO: 55.5 MB #Memory Used# [2025-01-15 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:11:05 [end_date_ymd] => 2025-01-15 11:11:05 [RateCDR] => 1 ) [2025-01-15 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:11:05' and `end` < '2025-01-15 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:11:35] Production.INFO: count ==3650 [2025-01-15 11:11:37] Production.ERROR: pbx CDR StartTime 2025-01-15 08:11:05 - End Time 2025-01-15 11:11:05 [2025-01-15 11:11:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253226', 'tblTempUsageDetail_20' ) start [2025-01-15 11:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253226', 'tblTempUsageDetail_20' ) end [2025-01-15 11:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253226', 'tblTempVendorCDR_20' ) start [2025-01-15 11:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253226', 'tblTempVendorCDR_20' ) end [2025-01-15 11:11:37] Production.INFO: ProcessCDR(1,14253226,1,1,2) [2025-01-15 11:11:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:11:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:11:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:11:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:11:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253226', 'tblTempUsageDetail_20' ) start [2025-01-15 11:11:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253226', 'tblTempUsageDetail_20' ) end [2025-01-15 11:11:42] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:11:42] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:11:42] Production.INFO: ==6924== Releasing lock... [2025-01-15 11:11:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:11:42] Production.INFO: 55.5 MB #Memory Used# [2025-01-15 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:12:05 [end_date_ymd] => 2025-01-15 11:12:05 [RateCDR] => 1 ) [2025-01-15 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:12:05' and `end` < '2025-01-15 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:12:27] Production.INFO: count ==3658 [2025-01-15 11:12:28] Production.ERROR: pbx CDR StartTime 2025-01-15 08:12:05 - End Time 2025-01-15 11:12:05 [2025-01-15 11:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253231', 'tblTempUsageDetail_20' ) start [2025-01-15 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253231', 'tblTempUsageDetail_20' ) end [2025-01-15 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253231', 'tblTempVendorCDR_20' ) start [2025-01-15 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253231', 'tblTempVendorCDR_20' ) end [2025-01-15 11:12:28] Production.INFO: ProcessCDR(1,14253231,1,1,2) [2025-01-15 11:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253231', 'tblTempUsageDetail_20' ) start [2025-01-15 11:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253231', 'tblTempUsageDetail_20' ) end [2025-01-15 11:12:34] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:12:34] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:12:34] Production.INFO: ==7076== Releasing lock... [2025-01-15 11:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:12:34] Production.INFO: 55.5 MB #Memory Used# [2025-01-15 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:13:05 [end_date_ymd] => 2025-01-15 11:13:05 [RateCDR] => 1 ) [2025-01-15 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:13:05' and `end` < '2025-01-15 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:13:32] Production.INFO: count ==3721 [2025-01-15 11:13:33] Production.ERROR: pbx CDR StartTime 2025-01-15 08:13:05 - End Time 2025-01-15 11:13:05 [2025-01-15 11:13:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253236', 'tblTempUsageDetail_20' ) start [2025-01-15 11:13:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253236', 'tblTempUsageDetail_20' ) end [2025-01-15 11:13:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253236', 'tblTempVendorCDR_20' ) start [2025-01-15 11:13:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253236', 'tblTempVendorCDR_20' ) end [2025-01-15 11:13:34] Production.INFO: ProcessCDR(1,14253236,1,1,2) [2025-01-15 11:13:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:13:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:13:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:13:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:13:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253236', 'tblTempUsageDetail_20' ) start [2025-01-15 11:13:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253236', 'tblTempUsageDetail_20' ) end [2025-01-15 11:13:39] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:13:39] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:13:39] Production.INFO: ==7150== Releasing lock... [2025-01-15 11:13:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:13:39] Production.INFO: 56.5 MB #Memory Used# [2025-01-15 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:14:05 [end_date_ymd] => 2025-01-15 11:14:05 [RateCDR] => 1 ) [2025-01-15 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:14:05' and `end` < '2025-01-15 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:14:26] Production.INFO: count ==3762 [2025-01-15 11:14:28] Production.ERROR: pbx CDR StartTime 2025-01-15 08:14:05 - End Time 2025-01-15 11:14:05 [2025-01-15 11:14:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253241', 'tblTempUsageDetail_20' ) start [2025-01-15 11:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253241', 'tblTempUsageDetail_20' ) end [2025-01-15 11:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253241', 'tblTempVendorCDR_20' ) start [2025-01-15 11:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253241', 'tblTempVendorCDR_20' ) end [2025-01-15 11:14:28] Production.INFO: ProcessCDR(1,14253241,1,1,2) [2025-01-15 11:14:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:14:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:14:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:14:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253241', 'tblTempUsageDetail_20' ) start [2025-01-15 11:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253241', 'tblTempUsageDetail_20' ) end [2025-01-15 11:14:34] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:14:34] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:14:34] Production.INFO: ==7226== Releasing lock... [2025-01-15 11:14:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:14:34] Production.INFO: 56 MB #Memory Used# [2025-01-15 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:15:05 [end_date_ymd] => 2025-01-15 11:15:05 [RateCDR] => 1 ) [2025-01-15 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:15:05' and `end` < '2025-01-15 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:15:24] Production.INFO: count ==3778 [2025-01-15 11:15:25] Production.ERROR: pbx CDR StartTime 2025-01-15 08:15:05 - End Time 2025-01-15 11:15:05 [2025-01-15 11:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253246', 'tblTempUsageDetail_20' ) start [2025-01-15 11:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253246', 'tblTempUsageDetail_20' ) end [2025-01-15 11:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253246', 'tblTempVendorCDR_20' ) start [2025-01-15 11:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253246', 'tblTempVendorCDR_20' ) end [2025-01-15 11:15:26] Production.INFO: ProcessCDR(1,14253246,1,1,2) [2025-01-15 11:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253246', 'tblTempUsageDetail_20' ) start [2025-01-15 11:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253246', 'tblTempUsageDetail_20' ) end [2025-01-15 11:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:15:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:15:31] Production.INFO: ==7378== Releasing lock... [2025-01-15 11:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:15:31] Production.INFO: 57 MB #Memory Used# [2025-01-15 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:16:05 [end_date_ymd] => 2025-01-15 11:16:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 08:16:05' and `end` < '2025-01-15 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-01-15 11:16:21] Production.INFO: count ==3789 [2025-01-15 11:16:22] Production.ERROR: pbx CDR StartTime 2025-01-15 08:16:05 - End Time 2025-01-15 11:16:05 [2025-01-15 11:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253251', 'tblTempUsageDetail_20' ) start [2025-01-15 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253251', 'tblTempUsageDetail_20' ) end [2025-01-15 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253251', 'tblTempVendorCDR_20' ) start [2025-01-15 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253251', 'tblTempVendorCDR_20' ) end [2025-01-15 11:16:22] Production.INFO: ProcessCDR(1,14253251,1,1,2) [2025-01-15 11:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253251', 'tblTempUsageDetail_20' ) start [2025-01-15 11:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253251', 'tblTempUsageDetail_20' ) end [2025-01-15 11:16:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:16:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:16:28] Production.INFO: ==7453== Releasing lock... [2025-01-15 11:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:16:28] Production.INFO: 56.25 MB #Memory Used# [2025-01-15 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:17:05 [end_date_ymd] => 2025-01-15 11:17:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 08:17:05' and `end` < '2025-01-15 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-01-15 11:17:19] Production.INFO: count ==3808 [2025-01-15 11:17:21] Production.ERROR: pbx CDR StartTime 2025-01-15 08:17:05 - End Time 2025-01-15 11:17:05 [2025-01-15 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253256', 'tblTempUsageDetail_20' ) start [2025-01-15 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253256', 'tblTempUsageDetail_20' ) end [2025-01-15 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253256', 'tblTempVendorCDR_20' ) start [2025-01-15 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253256', 'tblTempVendorCDR_20' ) end [2025-01-15 11:17:21] Production.INFO: ProcessCDR(1,14253256,1,1,2) [2025-01-15 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253256', 'tblTempUsageDetail_20' ) start [2025-01-15 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253256', 'tblTempUsageDetail_20' ) end [2025-01-15 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:17:26] Production.INFO: ==7524== Releasing lock... [2025-01-15 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:17:26] Production.INFO: 56.5 MB #Memory Used# [2025-01-15 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:18:05 [end_date_ymd] => 2025-01-15 11:18:05 [RateCDR] => 1 ) [2025-01-15 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:18:05' and `end` < '2025-01-15 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:18:24] Production.INFO: count ==3827 [2025-01-15 11:18:25] Production.ERROR: pbx CDR StartTime 2025-01-15 08:18:05 - End Time 2025-01-15 11:18:05 [2025-01-15 11:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253261', 'tblTempUsageDetail_20' ) start [2025-01-15 11:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253261', 'tblTempUsageDetail_20' ) end [2025-01-15 11:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253261', 'tblTempVendorCDR_20' ) start [2025-01-15 11:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253261', 'tblTempVendorCDR_20' ) end [2025-01-15 11:18:26] Production.INFO: ProcessCDR(1,14253261,1,1,2) [2025-01-15 11:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253261', 'tblTempUsageDetail_20' ) start [2025-01-15 11:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253261', 'tblTempUsageDetail_20' ) end [2025-01-15 11:18:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:18:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:18:31] Production.INFO: ==7599== Releasing lock... [2025-01-15 11:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:18:31] Production.INFO: 56.75 MB #Memory Used# [2025-01-15 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:19:06 [end_date_ymd] => 2025-01-15 11:19:06 [RateCDR] => 1 ) [2025-01-15 11:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:19:06' and `end` < '2025-01-15 11:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:19:21] Production.INFO: count ==3859 [2025-01-15 11:19:22] Production.ERROR: pbx CDR StartTime 2025-01-15 08:19:06 - End Time 2025-01-15 11:19:06 [2025-01-15 11:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253266', 'tblTempUsageDetail_20' ) start [2025-01-15 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253266', 'tblTempUsageDetail_20' ) end [2025-01-15 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253266', 'tblTempVendorCDR_20' ) start [2025-01-15 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253266', 'tblTempVendorCDR_20' ) end [2025-01-15 11:19:22] Production.INFO: ProcessCDR(1,14253266,1,1,2) [2025-01-15 11:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253266', 'tblTempUsageDetail_20' ) start [2025-01-15 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253266', 'tblTempUsageDetail_20' ) end [2025-01-15 11:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:19:26] Production.INFO: ==7679== Releasing lock... [2025-01-15 11:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:19:26] Production.INFO: 56.75 MB #Memory Used# [2025-01-15 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:20:06 [end_date_ymd] => 2025-01-15 11:20:06 [RateCDR] => 1 ) [2025-01-15 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:20:06' and `end` < '2025-01-15 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:20:30] Production.INFO: count ==3866 [2025-01-15 11:20:32] Production.ERROR: pbx CDR StartTime 2025-01-15 08:20:06 - End Time 2025-01-15 11:20:06 [2025-01-15 11:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253272', 'tblTempUsageDetail_20' ) start [2025-01-15 11:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253272', 'tblTempUsageDetail_20' ) end [2025-01-15 11:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253272', 'tblTempVendorCDR_20' ) start [2025-01-15 11:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253272', 'tblTempVendorCDR_20' ) end [2025-01-15 11:20:32] Production.INFO: ProcessCDR(1,14253272,1,1,2) [2025-01-15 11:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:20:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:20:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:20:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253272', 'tblTempUsageDetail_20' ) start [2025-01-15 11:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253272', 'tblTempUsageDetail_20' ) end [2025-01-15 11:20:37] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:20:37] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:20:37] Production.INFO: ==7757== Releasing lock... [2025-01-15 11:20:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:20:37] Production.INFO: 56.75 MB #Memory Used# [2025-01-15 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:21:05 [end_date_ymd] => 2025-01-15 11:21:05 [RateCDR] => 1 ) [2025-01-15 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:21:05' and `end` < '2025-01-15 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:21:19] Production.INFO: count ==3937 [2025-01-15 11:21:20] Production.ERROR: pbx CDR StartTime 2025-01-15 08:21:05 - End Time 2025-01-15 11:21:05 [2025-01-15 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253277', 'tblTempUsageDetail_20' ) start [2025-01-15 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253277', 'tblTempUsageDetail_20' ) end [2025-01-15 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253277', 'tblTempVendorCDR_20' ) start [2025-01-15 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253277', 'tblTempVendorCDR_20' ) end [2025-01-15 11:21:20] Production.INFO: ProcessCDR(1,14253277,1,1,2) [2025-01-15 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253277', 'tblTempUsageDetail_20' ) start [2025-01-15 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253277', 'tblTempUsageDetail_20' ) end [2025-01-15 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:21:26] Production.INFO: ==7836== Releasing lock... [2025-01-15 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:21:26] Production.INFO: 57.5 MB #Memory Used# [2025-01-15 11:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:22:04 [end_date_ymd] => 2025-01-15 11:22:04 [RateCDR] => 1 ) [2025-01-15 11:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:22:04' and `end` < '2025-01-15 11:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:22:22] Production.INFO: count ==3951 [2025-01-15 11:22:24] Production.ERROR: pbx CDR StartTime 2025-01-15 08:22:04 - End Time 2025-01-15 11:22:04 [2025-01-15 11:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253282', 'tblTempUsageDetail_20' ) start [2025-01-15 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253282', 'tblTempUsageDetail_20' ) end [2025-01-15 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253282', 'tblTempVendorCDR_20' ) start [2025-01-15 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253282', 'tblTempVendorCDR_20' ) end [2025-01-15 11:22:24] Production.INFO: ProcessCDR(1,14253282,1,1,2) [2025-01-15 11:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253282', 'tblTempUsageDetail_20' ) start [2025-01-15 11:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253282', 'tblTempUsageDetail_20' ) end [2025-01-15 11:22:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:22:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:22:30] Production.INFO: ==7908== Releasing lock... [2025-01-15 11:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:22:30] Production.INFO: 57.5 MB #Memory Used# [2025-01-15 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:23:06 [end_date_ymd] => 2025-01-15 11:23:06 [RateCDR] => 1 ) [2025-01-15 11:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:23:06' and `end` < '2025-01-15 11:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:23:25] Production.INFO: count ==3969 [2025-01-15 11:23:27] Production.ERROR: pbx CDR StartTime 2025-01-15 08:23:06 - End Time 2025-01-15 11:23:06 [2025-01-15 11:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253287', 'tblTempUsageDetail_20' ) start [2025-01-15 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253287', 'tblTempUsageDetail_20' ) end [2025-01-15 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253287', 'tblTempVendorCDR_20' ) start [2025-01-15 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253287', 'tblTempVendorCDR_20' ) end [2025-01-15 11:23:27] Production.INFO: ProcessCDR(1,14253287,1,1,2) [2025-01-15 11:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253287', 'tblTempUsageDetail_20' ) start [2025-01-15 11:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253287', 'tblTempUsageDetail_20' ) end [2025-01-15 11:23:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:23:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:23:32] Production.INFO: ==7983== Releasing lock... [2025-01-15 11:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:23:32] Production.INFO: 57.75 MB #Memory Used# [2025-01-15 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:24:05 [end_date_ymd] => 2025-01-15 11:24:05 [RateCDR] => 1 ) [2025-01-15 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:24:05' and `end` < '2025-01-15 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:24:20] Production.INFO: count ==3962 [2025-01-15 11:24:22] Production.ERROR: pbx CDR StartTime 2025-01-15 08:24:05 - End Time 2025-01-15 11:24:05 [2025-01-15 11:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253292', 'tblTempUsageDetail_20' ) start [2025-01-15 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253292', 'tblTempUsageDetail_20' ) end [2025-01-15 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253292', 'tblTempVendorCDR_20' ) start [2025-01-15 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253292', 'tblTempVendorCDR_20' ) end [2025-01-15 11:24:22] Production.INFO: ProcessCDR(1,14253292,1,1,2) [2025-01-15 11:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253292', 'tblTempUsageDetail_20' ) start [2025-01-15 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253292', 'tblTempUsageDetail_20' ) end [2025-01-15 11:24:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:24:27] Production.INFO: ==8055== Releasing lock... [2025-01-15 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:24:27] Production.INFO: 57.5 MB #Memory Used# [2025-01-15 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:25:05 [end_date_ymd] => 2025-01-15 11:25:05 [RateCDR] => 1 ) [2025-01-15 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:25:05' and `end` < '2025-01-15 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:25:25] Production.INFO: count ==3994 [2025-01-15 11:25:27] Production.ERROR: pbx CDR StartTime 2025-01-15 08:25:05 - End Time 2025-01-15 11:25:05 [2025-01-15 11:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253297', 'tblTempUsageDetail_20' ) start [2025-01-15 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253297', 'tblTempUsageDetail_20' ) end [2025-01-15 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253297', 'tblTempVendorCDR_20' ) start [2025-01-15 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253297', 'tblTempVendorCDR_20' ) end [2025-01-15 11:25:27] Production.INFO: ProcessCDR(1,14253297,1,1,2) [2025-01-15 11:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253297', 'tblTempUsageDetail_20' ) start [2025-01-15 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253297', 'tblTempUsageDetail_20' ) end [2025-01-15 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:25:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:25:32] Production.INFO: ==8167== Releasing lock... [2025-01-15 11:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:25:32] Production.INFO: 58 MB #Memory Used# [2025-01-15 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:26:05 [end_date_ymd] => 2025-01-15 11:26:05 [RateCDR] => 1 ) [2025-01-15 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:26:05' and `end` < '2025-01-15 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:26:27] Production.INFO: count ==3995 [2025-01-15 11:26:29] Production.ERROR: pbx CDR StartTime 2025-01-15 08:26:05 - End Time 2025-01-15 11:26:05 [2025-01-15 11:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253302', 'tblTempUsageDetail_20' ) start [2025-01-15 11:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253302', 'tblTempUsageDetail_20' ) end [2025-01-15 11:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253302', 'tblTempVendorCDR_20' ) start [2025-01-15 11:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253302', 'tblTempVendorCDR_20' ) end [2025-01-15 11:26:29] Production.INFO: ProcessCDR(1,14253302,1,1,2) [2025-01-15 11:26:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:26:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:26:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253302', 'tblTempUsageDetail_20' ) start [2025-01-15 11:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253302', 'tblTempUsageDetail_20' ) end [2025-01-15 11:26:34] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:26:34] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:26:34] Production.INFO: ==8239== Releasing lock... [2025-01-15 11:26:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:26:34] Production.INFO: 58 MB #Memory Used# [2025-01-15 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:27:05 [end_date_ymd] => 2025-01-15 11:27:05 [RateCDR] => 1 ) [2025-01-15 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:27:05' and `end` < '2025-01-15 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:27:26] Production.INFO: count ==4010 [2025-01-15 11:27:28] Production.ERROR: pbx CDR StartTime 2025-01-15 08:27:05 - End Time 2025-01-15 11:27:05 [2025-01-15 11:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253307', 'tblTempUsageDetail_20' ) start [2025-01-15 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253307', 'tblTempUsageDetail_20' ) end [2025-01-15 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253307', 'tblTempVendorCDR_20' ) start [2025-01-15 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253307', 'tblTempVendorCDR_20' ) end [2025-01-15 11:27:28] Production.INFO: ProcessCDR(1,14253307,1,1,2) [2025-01-15 11:27:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:27:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253307', 'tblTempUsageDetail_20' ) start [2025-01-15 11:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253307', 'tblTempUsageDetail_20' ) end [2025-01-15 11:27:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:27:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:27:33] Production.INFO: ==8311== Releasing lock... [2025-01-15 11:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:27:33] Production.INFO: 58 MB #Memory Used# [2025-01-15 11:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:28:04 [end_date_ymd] => 2025-01-15 11:28:04 [RateCDR] => 1 ) [2025-01-15 11:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:28:04' and `end` < '2025-01-15 11:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:28:22] Production.INFO: count ==4005 [2025-01-15 11:28:24] Production.ERROR: pbx CDR StartTime 2025-01-15 08:28:04 - End Time 2025-01-15 11:28:04 [2025-01-15 11:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253312', 'tblTempUsageDetail_20' ) start [2025-01-15 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253312', 'tblTempUsageDetail_20' ) end [2025-01-15 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253312', 'tblTempVendorCDR_20' ) start [2025-01-15 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253312', 'tblTempVendorCDR_20' ) end [2025-01-15 11:28:24] Production.INFO: ProcessCDR(1,14253312,1,1,2) [2025-01-15 11:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253312', 'tblTempUsageDetail_20' ) start [2025-01-15 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253312', 'tblTempUsageDetail_20' ) end [2025-01-15 11:28:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:28:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:28:27] Production.INFO: ==8382== Releasing lock... [2025-01-15 11:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:28:27] Production.INFO: 58 MB #Memory Used# [2025-01-15 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:29:05 [end_date_ymd] => 2025-01-15 11:29:05 [RateCDR] => 1 ) [2025-01-15 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:29:05' and `end` < '2025-01-15 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:29:19] Production.INFO: count ==3991 [2025-01-15 11:29:20] Production.ERROR: pbx CDR StartTime 2025-01-15 08:29:05 - End Time 2025-01-15 11:29:05 [2025-01-15 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253317', 'tblTempUsageDetail_20' ) start [2025-01-15 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253317', 'tblTempUsageDetail_20' ) end [2025-01-15 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253317', 'tblTempVendorCDR_20' ) start [2025-01-15 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253317', 'tblTempVendorCDR_20' ) end [2025-01-15 11:29:20] Production.INFO: ProcessCDR(1,14253317,1,1,2) [2025-01-15 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253317', 'tblTempUsageDetail_20' ) start [2025-01-15 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253317', 'tblTempUsageDetail_20' ) end [2025-01-15 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:29:25] Production.INFO: ==8459== Releasing lock... [2025-01-15 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:29:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-15 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:30:06 [end_date_ymd] => 2025-01-15 11:30:06 [RateCDR] => 1 ) [2025-01-15 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:30:06' and `end` < '2025-01-15 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:30:29] Production.INFO: count ==3992 [2025-01-15 11:30:31] Production.ERROR: pbx CDR StartTime 2025-01-15 08:30:06 - End Time 2025-01-15 11:30:06 [2025-01-15 11:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253323', 'tblTempUsageDetail_20' ) start [2025-01-15 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253323', 'tblTempUsageDetail_20' ) end [2025-01-15 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253323', 'tblTempVendorCDR_20' ) start [2025-01-15 11:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253323', 'tblTempVendorCDR_20' ) end [2025-01-15 11:30:31] Production.INFO: ProcessCDR(1,14253323,1,1,2) [2025-01-15 11:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253323', 'tblTempUsageDetail_20' ) start [2025-01-15 11:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253323', 'tblTempUsageDetail_20' ) end [2025-01-15 11:30:36] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:30:36] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:30:36] Production.INFO: ==8535== Releasing lock... [2025-01-15 11:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:30:36] Production.INFO: 57.75 MB #Memory Used# [2025-01-15 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:31:05 [end_date_ymd] => 2025-01-15 11:31:05 [RateCDR] => 1 ) [2025-01-15 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:31:05' and `end` < '2025-01-15 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:31:24] Production.INFO: count ==4102 [2025-01-15 11:31:26] Production.ERROR: pbx CDR StartTime 2025-01-15 08:31:05 - End Time 2025-01-15 11:31:05 [2025-01-15 11:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253328', 'tblTempUsageDetail_20' ) start [2025-01-15 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253328', 'tblTempUsageDetail_20' ) end [2025-01-15 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253328', 'tblTempVendorCDR_20' ) start [2025-01-15 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253328', 'tblTempVendorCDR_20' ) end [2025-01-15 11:31:26] Production.INFO: ProcessCDR(1,14253328,1,1,2) [2025-01-15 11:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253328', 'tblTempUsageDetail_20' ) start [2025-01-15 11:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253328', 'tblTempUsageDetail_20' ) end [2025-01-15 11:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:31:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:31:32] Production.INFO: ==8610== Releasing lock... [2025-01-15 11:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:31:32] Production.INFO: 58.75 MB #Memory Used# [2025-01-15 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:32:06 [end_date_ymd] => 2025-01-15 11:32:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 08:32:06' and `end` < '2025-01-15 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-01-15 11:32:24] Production.INFO: count ==4111 [2025-01-15 11:32:26] Production.ERROR: pbx CDR StartTime 2025-01-15 08:32:06 - End Time 2025-01-15 11:32:06 [2025-01-15 11:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253333', 'tblTempUsageDetail_20' ) start [2025-01-15 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253333', 'tblTempUsageDetail_20' ) end [2025-01-15 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253333', 'tblTempVendorCDR_20' ) start [2025-01-15 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253333', 'tblTempVendorCDR_20' ) end [2025-01-15 11:32:26] Production.INFO: ProcessCDR(1,14253333,1,1,2) [2025-01-15 11:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253333', 'tblTempUsageDetail_20' ) start [2025-01-15 11:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253333', 'tblTempUsageDetail_20' ) end [2025-01-15 11:32:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:32:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:32:31] Production.INFO: ==8691== Releasing lock... [2025-01-15 11:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:32:31] Production.INFO: 58.75 MB #Memory Used# [2025-01-15 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:33:05 [end_date_ymd] => 2025-01-15 11:33:05 [RateCDR] => 1 ) [2025-01-15 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:33:05' and `end` < '2025-01-15 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:33:19] Production.INFO: count ==4134 [2025-01-15 11:33:21] Production.ERROR: pbx CDR StartTime 2025-01-15 08:33:05 - End Time 2025-01-15 11:33:05 [2025-01-15 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253338', 'tblTempUsageDetail_20' ) start [2025-01-15 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253338', 'tblTempUsageDetail_20' ) end [2025-01-15 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253338', 'tblTempVendorCDR_20' ) start [2025-01-15 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253338', 'tblTempVendorCDR_20' ) end [2025-01-15 11:33:21] Production.INFO: ProcessCDR(1,14253338,1,1,2) [2025-01-15 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253338', 'tblTempUsageDetail_20' ) start [2025-01-15 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253338', 'tblTempUsageDetail_20' ) end [2025-01-15 11:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:33:26] Production.INFO: ==8773== Releasing lock... [2025-01-15 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:33:26] Production.INFO: 59 MB #Memory Used# [2025-01-15 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:34:05 [end_date_ymd] => 2025-01-15 11:34:05 [RateCDR] => 1 ) [2025-01-15 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:34:05' and `end` < '2025-01-15 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:34:30] Production.INFO: count ==4161 [2025-01-15 11:34:32] Production.ERROR: pbx CDR StartTime 2025-01-15 08:34:05 - End Time 2025-01-15 11:34:05 [2025-01-15 11:34:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253343', 'tblTempUsageDetail_20' ) start [2025-01-15 11:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253343', 'tblTempUsageDetail_20' ) end [2025-01-15 11:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253343', 'tblTempVendorCDR_20' ) start [2025-01-15 11:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253343', 'tblTempVendorCDR_20' ) end [2025-01-15 11:34:32] Production.INFO: ProcessCDR(1,14253343,1,1,2) [2025-01-15 11:34:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:34:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:34:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:34:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:34:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253343', 'tblTempUsageDetail_20' ) start [2025-01-15 11:34:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253343', 'tblTempUsageDetail_20' ) end [2025-01-15 11:34:37] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:34:37] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:34:37] Production.INFO: ==8845== Releasing lock... [2025-01-15 11:34:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:34:37] Production.INFO: 59 MB #Memory Used# [2025-01-15 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:35:04 [end_date_ymd] => 2025-01-15 11:35:04 [RateCDR] => 1 ) [2025-01-15 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:35:04' and `end` < '2025-01-15 11:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:35:26] Production.INFO: count ==4194 [2025-01-15 11:35:28] Production.ERROR: pbx CDR StartTime 2025-01-15 08:35:04 - End Time 2025-01-15 11:35:04 [2025-01-15 11:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253348', 'tblTempUsageDetail_20' ) start [2025-01-15 11:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253348', 'tblTempUsageDetail_20' ) end [2025-01-15 11:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253348', 'tblTempVendorCDR_20' ) start [2025-01-15 11:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253348', 'tblTempVendorCDR_20' ) end [2025-01-15 11:35:28] Production.INFO: ProcessCDR(1,14253348,1,1,2) [2025-01-15 11:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253348', 'tblTempUsageDetail_20' ) start [2025-01-15 11:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253348', 'tblTempUsageDetail_20' ) end [2025-01-15 11:35:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:35:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:35:33] Production.INFO: ==8923== Releasing lock... [2025-01-15 11:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:35:33] Production.INFO: 59.25 MB #Memory Used# [2025-01-15 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:36:05 [end_date_ymd] => 2025-01-15 11:36:05 [RateCDR] => 1 ) [2025-01-15 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:36:05' and `end` < '2025-01-15 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:36:20] Production.INFO: count ==4227 [2025-01-15 11:36:21] Production.ERROR: pbx CDR StartTime 2025-01-15 08:36:05 - End Time 2025-01-15 11:36:05 [2025-01-15 11:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253353', 'tblTempUsageDetail_20' ) start [2025-01-15 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253353', 'tblTempUsageDetail_20' ) end [2025-01-15 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253353', 'tblTempVendorCDR_20' ) start [2025-01-15 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253353', 'tblTempVendorCDR_20' ) end [2025-01-15 11:36:22] Production.INFO: ProcessCDR(1,14253353,1,1,2) [2025-01-15 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253353', 'tblTempUsageDetail_20' ) start [2025-01-15 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253353', 'tblTempUsageDetail_20' ) end [2025-01-15 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:36:26] Production.INFO: ==8997== Releasing lock... [2025-01-15 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:36:26] Production.INFO: 59.5 MB #Memory Used# [2025-01-15 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:37:05 [end_date_ymd] => 2025-01-15 11:37:05 [RateCDR] => 1 ) [2025-01-15 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:37:05' and `end` < '2025-01-15 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:37:18] Production.INFO: count ==4232 [2025-01-15 11:37:19] Production.ERROR: pbx CDR StartTime 2025-01-15 08:37:05 - End Time 2025-01-15 11:37:05 [2025-01-15 11:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253358', 'tblTempUsageDetail_20' ) start [2025-01-15 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253358', 'tblTempUsageDetail_20' ) end [2025-01-15 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253358', 'tblTempVendorCDR_20' ) start [2025-01-15 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253358', 'tblTempVendorCDR_20' ) end [2025-01-15 11:37:19] Production.INFO: ProcessCDR(1,14253358,1,1,2) [2025-01-15 11:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253358', 'tblTempUsageDetail_20' ) start [2025-01-15 11:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253358', 'tblTempUsageDetail_20' ) end [2025-01-15 11:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:37:24] Production.INFO: ==9081== Releasing lock... [2025-01-15 11:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:37:24] Production.INFO: 59.75 MB #Memory Used# [2025-01-15 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:38:05 [end_date_ymd] => 2025-01-15 11:38:05 [RateCDR] => 1 ) [2025-01-15 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:38:05' and `end` < '2025-01-15 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:38:22] Production.INFO: count ==4239 [2025-01-15 11:38:24] Production.ERROR: pbx CDR StartTime 2025-01-15 08:38:05 - End Time 2025-01-15 11:38:05 [2025-01-15 11:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253363', 'tblTempUsageDetail_20' ) start [2025-01-15 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253363', 'tblTempUsageDetail_20' ) end [2025-01-15 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253363', 'tblTempVendorCDR_20' ) start [2025-01-15 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253363', 'tblTempVendorCDR_20' ) end [2025-01-15 11:38:24] Production.INFO: ProcessCDR(1,14253363,1,1,2) [2025-01-15 11:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253363', 'tblTempUsageDetail_20' ) start [2025-01-15 11:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253363', 'tblTempUsageDetail_20' ) end [2025-01-15 11:38:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:38:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:38:29] Production.INFO: ==9160== Releasing lock... [2025-01-15 11:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:38:29] Production.INFO: 59.75 MB #Memory Used# [2025-01-15 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:39:05 [end_date_ymd] => 2025-01-15 11:39:05 [RateCDR] => 1 ) [2025-01-15 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:39:05' and `end` < '2025-01-15 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:39:20] Production.INFO: count ==4241 [2025-01-15 11:39:22] Production.ERROR: pbx CDR StartTime 2025-01-15 08:39:05 - End Time 2025-01-15 11:39:05 [2025-01-15 11:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253368', 'tblTempUsageDetail_20' ) start [2025-01-15 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253368', 'tblTempUsageDetail_20' ) end [2025-01-15 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253368', 'tblTempVendorCDR_20' ) start [2025-01-15 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253368', 'tblTempVendorCDR_20' ) end [2025-01-15 11:39:22] Production.INFO: ProcessCDR(1,14253368,1,1,2) [2025-01-15 11:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253368', 'tblTempUsageDetail_20' ) start [2025-01-15 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253368', 'tblTempUsageDetail_20' ) end [2025-01-15 11:39:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:39:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:39:27] Production.INFO: ==9236== Releasing lock... [2025-01-15 11:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:39:27] Production.INFO: 59.75 MB #Memory Used# [2025-01-15 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:40:06 [end_date_ymd] => 2025-01-15 11:40:06 [RateCDR] => 1 ) [2025-01-15 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:40:06' and `end` < '2025-01-15 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:40:20] Production.INFO: count ==4244 [2025-01-15 11:40:23] Production.ERROR: pbx CDR StartTime 2025-01-15 08:40:06 - End Time 2025-01-15 11:40:06 [2025-01-15 11:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253374', 'tblTempUsageDetail_20' ) start [2025-01-15 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253374', 'tblTempUsageDetail_20' ) end [2025-01-15 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253374', 'tblTempVendorCDR_20' ) start [2025-01-15 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253374', 'tblTempVendorCDR_20' ) end [2025-01-15 11:40:23] Production.INFO: ProcessCDR(1,14253374,1,1,2) [2025-01-15 11:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253374', 'tblTempUsageDetail_20' ) start [2025-01-15 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253374', 'tblTempUsageDetail_20' ) end [2025-01-15 11:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:40:28] Production.INFO: ==9313== Releasing lock... [2025-01-15 11:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:40:28] Production.INFO: 59.75 MB #Memory Used# [2025-01-15 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:41:05 [end_date_ymd] => 2025-01-15 11:41:05 [RateCDR] => 1 ) [2025-01-15 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:41:05' and `end` < '2025-01-15 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:41:23] Production.INFO: count ==4329 [2025-01-15 11:41:25] Production.ERROR: pbx CDR StartTime 2025-01-15 08:41:05 - End Time 2025-01-15 11:41:05 [2025-01-15 11:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253379', 'tblTempUsageDetail_20' ) start [2025-01-15 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253379', 'tblTempUsageDetail_20' ) end [2025-01-15 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253379', 'tblTempVendorCDR_20' ) start [2025-01-15 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253379', 'tblTempVendorCDR_20' ) end [2025-01-15 11:41:25] Production.INFO: ProcessCDR(1,14253379,1,1,2) [2025-01-15 11:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253379', 'tblTempUsageDetail_20' ) start [2025-01-15 11:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253379', 'tblTempUsageDetail_20' ) end [2025-01-15 11:41:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:41:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:41:30] Production.INFO: ==9432== Releasing lock... [2025-01-15 11:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:41:30] Production.INFO: 60.25 MB #Memory Used# [2025-01-15 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:42:05 [end_date_ymd] => 2025-01-15 11:42:05 [RateCDR] => 1 ) [2025-01-15 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:42:05' and `end` < '2025-01-15 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:42:19] Production.INFO: count ==4334 [2025-01-15 11:42:21] Production.ERROR: pbx CDR StartTime 2025-01-15 08:42:05 - End Time 2025-01-15 11:42:05 [2025-01-15 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253384', 'tblTempUsageDetail_20' ) start [2025-01-15 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253384', 'tblTempUsageDetail_20' ) end [2025-01-15 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253384', 'tblTempVendorCDR_20' ) start [2025-01-15 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253384', 'tblTempVendorCDR_20' ) end [2025-01-15 11:42:21] Production.INFO: ProcessCDR(1,14253384,1,1,2) [2025-01-15 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253384', 'tblTempUsageDetail_20' ) start [2025-01-15 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253384', 'tblTempUsageDetail_20' ) end [2025-01-15 11:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:42:25] Production.INFO: ==9513== Releasing lock... [2025-01-15 11:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:42:25] Production.INFO: 60.5 MB #Memory Used# [2025-01-15 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:43:06 [end_date_ymd] => 2025-01-15 11:43:06 [RateCDR] => 1 ) [2025-01-15 11:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:43:06' and `end` < '2025-01-15 11:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:43:19] Production.INFO: count ==4334 [2025-01-15 11:43:22] Production.ERROR: pbx CDR StartTime 2025-01-15 08:43:06 - End Time 2025-01-15 11:43:06 [2025-01-15 11:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253389', 'tblTempUsageDetail_20' ) start [2025-01-15 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253389', 'tblTempUsageDetail_20' ) end [2025-01-15 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253389', 'tblTempVendorCDR_20' ) start [2025-01-15 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253389', 'tblTempVendorCDR_20' ) end [2025-01-15 11:43:22] Production.INFO: ProcessCDR(1,14253389,1,1,2) [2025-01-15 11:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253389', 'tblTempUsageDetail_20' ) start [2025-01-15 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253389', 'tblTempUsageDetail_20' ) end [2025-01-15 11:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:43:27] Production.INFO: ==9588== Releasing lock... [2025-01-15 11:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:43:27] Production.INFO: 60.5 MB #Memory Used# [2025-01-15 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:44:05 [end_date_ymd] => 2025-01-15 11:44:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 08:44:05' and `end` < '2025-01-15 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-01-15 11:44:20] Production.INFO: count ==4366 [2025-01-15 11:44:21] Production.ERROR: pbx CDR StartTime 2025-01-15 08:44:05 - End Time 2025-01-15 11:44:05 [2025-01-15 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253394', 'tblTempUsageDetail_20' ) start [2025-01-15 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253394', 'tblTempUsageDetail_20' ) end [2025-01-15 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253394', 'tblTempVendorCDR_20' ) start [2025-01-15 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253394', 'tblTempVendorCDR_20' ) end [2025-01-15 11:44:21] Production.INFO: ProcessCDR(1,14253394,1,1,2) [2025-01-15 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253394', 'tblTempUsageDetail_20' ) start [2025-01-15 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253394', 'tblTempUsageDetail_20' ) end [2025-01-15 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:44:26] Production.INFO: ==9659== Releasing lock... [2025-01-15 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:44:26] Production.INFO: 60.75 MB #Memory Used# [2025-01-15 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:45:05 [end_date_ymd] => 2025-01-15 11:45:05 [RateCDR] => 1 ) [2025-01-15 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:45:05' and `end` < '2025-01-15 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:45:30] Production.INFO: count ==4385 [2025-01-15 11:45:32] Production.ERROR: pbx CDR StartTime 2025-01-15 08:45:05 - End Time 2025-01-15 11:45:05 [2025-01-15 11:45:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253399', 'tblTempUsageDetail_20' ) start [2025-01-15 11:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253399', 'tblTempUsageDetail_20' ) end [2025-01-15 11:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253399', 'tblTempVendorCDR_20' ) start [2025-01-15 11:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253399', 'tblTempVendorCDR_20' ) end [2025-01-15 11:45:32] Production.INFO: ProcessCDR(1,14253399,1,1,2) [2025-01-15 11:45:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:45:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:45:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:45:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253399', 'tblTempUsageDetail_20' ) start [2025-01-15 11:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253399', 'tblTempUsageDetail_20' ) end [2025-01-15 11:45:37] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:45:37] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:45:37] Production.INFO: ==9736== Releasing lock... [2025-01-15 11:45:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:45:37] Production.INFO: 61 MB #Memory Used# [2025-01-15 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:46:05 [end_date_ymd] => 2025-01-15 11:46:05 [RateCDR] => 1 ) [2025-01-15 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:46:05' and `end` < '2025-01-15 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:46:26] Production.INFO: count ==4400 [2025-01-15 11:46:28] Production.ERROR: pbx CDR StartTime 2025-01-15 08:46:05 - End Time 2025-01-15 11:46:05 [2025-01-15 11:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253404', 'tblTempUsageDetail_20' ) start [2025-01-15 11:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253404', 'tblTempUsageDetail_20' ) end [2025-01-15 11:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253404', 'tblTempVendorCDR_20' ) start [2025-01-15 11:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253404', 'tblTempVendorCDR_20' ) end [2025-01-15 11:46:28] Production.INFO: ProcessCDR(1,14253404,1,1,2) [2025-01-15 11:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:46:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:46:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:46:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253404', 'tblTempUsageDetail_20' ) start [2025-01-15 11:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253404', 'tblTempUsageDetail_20' ) end [2025-01-15 11:46:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:46:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:46:33] Production.INFO: ==9816== Releasing lock... [2025-01-15 11:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:46:33] Production.INFO: 61 MB #Memory Used# [2025-01-15 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:47:05 [end_date_ymd] => 2025-01-15 11:47:05 [RateCDR] => 1 ) [2025-01-15 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:47:05' and `end` < '2025-01-15 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:47:22] Production.INFO: count ==4427 [2025-01-15 11:47:24] Production.ERROR: pbx CDR StartTime 2025-01-15 08:47:05 - End Time 2025-01-15 11:47:05 [2025-01-15 11:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253409', 'tblTempUsageDetail_20' ) start [2025-01-15 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253409', 'tblTempUsageDetail_20' ) end [2025-01-15 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253409', 'tblTempVendorCDR_20' ) start [2025-01-15 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253409', 'tblTempVendorCDR_20' ) end [2025-01-15 11:47:24] Production.INFO: ProcessCDR(1,14253409,1,1,2) [2025-01-15 11:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253409', 'tblTempUsageDetail_20' ) start [2025-01-15 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253409', 'tblTempUsageDetail_20' ) end [2025-01-15 11:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:47:29] Production.INFO: ==9897== Releasing lock... [2025-01-15 11:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:47:29] Production.INFO: 61 MB #Memory Used# [2025-01-15 11:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:48:04 [end_date_ymd] => 2025-01-15 11:48:04 [RateCDR] => 1 ) [2025-01-15 11:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:48:04' and `end` < '2025-01-15 11:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:48:23] Production.INFO: count ==4435 [2025-01-15 11:48:25] Production.ERROR: pbx CDR StartTime 2025-01-15 08:48:04 - End Time 2025-01-15 11:48:04 [2025-01-15 11:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253414', 'tblTempUsageDetail_20' ) start [2025-01-15 11:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253414', 'tblTempUsageDetail_20' ) end [2025-01-15 11:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253414', 'tblTempVendorCDR_20' ) start [2025-01-15 11:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253414', 'tblTempVendorCDR_20' ) end [2025-01-15 11:48:25] Production.INFO: ProcessCDR(1,14253414,1,1,2) [2025-01-15 11:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253414', 'tblTempUsageDetail_20' ) start [2025-01-15 11:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253414', 'tblTempUsageDetail_20' ) end [2025-01-15 11:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:48:30] Production.INFO: ==9971== Releasing lock... [2025-01-15 11:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:48:30] Production.INFO: 61.25 MB #Memory Used# [2025-01-15 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:49:05 [end_date_ymd] => 2025-01-15 11:49:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 08:49:05' and `end` < '2025-01-15 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-01-15 11:49:24] Production.INFO: count ==4449 [2025-01-15 11:49:26] Production.ERROR: pbx CDR StartTime 2025-01-15 08:49:05 - End Time 2025-01-15 11:49:05 [2025-01-15 11:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253419', 'tblTempUsageDetail_20' ) start [2025-01-15 11:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253419', 'tblTempUsageDetail_20' ) end [2025-01-15 11:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253419', 'tblTempVendorCDR_20' ) start [2025-01-15 11:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253419', 'tblTempVendorCDR_20' ) end [2025-01-15 11:49:26] Production.INFO: ProcessCDR(1,14253419,1,1,2) [2025-01-15 11:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253419', 'tblTempUsageDetail_20' ) start [2025-01-15 11:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253419', 'tblTempUsageDetail_20' ) end [2025-01-15 11:49:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:49:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:49:31] Production.INFO: ==10049== Releasing lock... [2025-01-15 11:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:49:31] Production.INFO: 61.25 MB #Memory Used# [2025-01-15 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:50:06 [end_date_ymd] => 2025-01-15 11:50:06 [RateCDR] => 1 ) [2025-01-15 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:50:06' and `end` < '2025-01-15 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:50:25] Production.INFO: count ==4491 [2025-01-15 11:50:27] Production.ERROR: pbx CDR StartTime 2025-01-15 08:50:06 - End Time 2025-01-15 11:50:06 [2025-01-15 11:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253425', 'tblTempUsageDetail_20' ) start [2025-01-15 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253425', 'tblTempUsageDetail_20' ) end [2025-01-15 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253425', 'tblTempVendorCDR_20' ) start [2025-01-15 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253425', 'tblTempVendorCDR_20' ) end [2025-01-15 11:50:27] Production.INFO: ProcessCDR(1,14253425,1,1,2) [2025-01-15 11:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253425', 'tblTempUsageDetail_20' ) start [2025-01-15 11:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253425', 'tblTempUsageDetail_20' ) end [2025-01-15 11:50:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:50:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:50:32] Production.INFO: ==10134== Releasing lock... [2025-01-15 11:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:50:32] Production.INFO: 61.5 MB #Memory Used# [2025-01-15 11:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:51:04 [end_date_ymd] => 2025-01-15 11:51:04 [RateCDR] => 1 ) [2025-01-15 11:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:51:04' and `end` < '2025-01-15 11:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:51:18] Production.INFO: count ==4606 [2025-01-15 11:51:20] Production.ERROR: pbx CDR StartTime 2025-01-15 08:51:04 - End Time 2025-01-15 11:51:04 [2025-01-15 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253430', 'tblTempUsageDetail_20' ) start [2025-01-15 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253430', 'tblTempUsageDetail_20' ) end [2025-01-15 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253430', 'tblTempVendorCDR_20' ) start [2025-01-15 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253430', 'tblTempVendorCDR_20' ) end [2025-01-15 11:51:20] Production.INFO: ProcessCDR(1,14253430,1,1,2) [2025-01-15 11:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253430', 'tblTempUsageDetail_20' ) start [2025-01-15 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253430', 'tblTempUsageDetail_20' ) end [2025-01-15 11:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:51:25] Production.INFO: ==10221== Releasing lock... [2025-01-15 11:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:51:25] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:52:05 [end_date_ymd] => 2025-01-15 11:52:05 [RateCDR] => 1 ) [2025-01-15 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:52:05' and `end` < '2025-01-15 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:52:29] Production.INFO: count ==4611 [2025-01-15 11:52:31] Production.ERROR: pbx CDR StartTime 2025-01-15 08:52:05 - End Time 2025-01-15 11:52:05 [2025-01-15 11:52:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253435', 'tblTempUsageDetail_20' ) start [2025-01-15 11:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253435', 'tblTempUsageDetail_20' ) end [2025-01-15 11:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253435', 'tblTempVendorCDR_20' ) start [2025-01-15 11:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253435', 'tblTempVendorCDR_20' ) end [2025-01-15 11:52:31] Production.INFO: ProcessCDR(1,14253435,1,1,2) [2025-01-15 11:52:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:52:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:52:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:52:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253435', 'tblTempUsageDetail_20' ) start [2025-01-15 11:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253435', 'tblTempUsageDetail_20' ) end [2025-01-15 11:52:36] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:52:36] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:52:36] Production.INFO: ==10303== Releasing lock... [2025-01-15 11:52:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:52:36] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:53:05 [end_date_ymd] => 2025-01-15 11:53:05 [RateCDR] => 1 ) [2025-01-15 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:53:05' and `end` < '2025-01-15 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:53:26] Production.INFO: count ==4616 [2025-01-15 11:53:27] Production.ERROR: pbx CDR StartTime 2025-01-15 08:53:05 - End Time 2025-01-15 11:53:05 [2025-01-15 11:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253440', 'tblTempUsageDetail_20' ) start [2025-01-15 11:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253440', 'tblTempUsageDetail_20' ) end [2025-01-15 11:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253440', 'tblTempVendorCDR_20' ) start [2025-01-15 11:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253440', 'tblTempVendorCDR_20' ) end [2025-01-15 11:53:28] Production.INFO: ProcessCDR(1,14253440,1,1,2) [2025-01-15 11:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253440', 'tblTempUsageDetail_20' ) start [2025-01-15 11:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253440', 'tblTempUsageDetail_20' ) end [2025-01-15 11:53:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:53:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:53:32] Production.INFO: ==10382== Releasing lock... [2025-01-15 11:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:53:32] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:54:05 [end_date_ymd] => 2025-01-15 11:54:05 [RateCDR] => 1 ) [2025-01-15 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:54:05' and `end` < '2025-01-15 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:54:33] Production.INFO: count ==4630 [2025-01-15 11:54:35] Production.ERROR: pbx CDR StartTime 2025-01-15 08:54:05 - End Time 2025-01-15 11:54:05 [2025-01-15 11:54:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:54:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253445', 'tblTempUsageDetail_20' ) start [2025-01-15 11:54:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253445', 'tblTempUsageDetail_20' ) end [2025-01-15 11:54:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253445', 'tblTempVendorCDR_20' ) start [2025-01-15 11:54:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253445', 'tblTempVendorCDR_20' ) end [2025-01-15 11:54:35] Production.INFO: ProcessCDR(1,14253445,1,1,2) [2025-01-15 11:54:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:54:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:54:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:54:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:54:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253445', 'tblTempUsageDetail_20' ) start [2025-01-15 11:54:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253445', 'tblTempUsageDetail_20' ) end [2025-01-15 11:54:40] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:54:40] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:54:40] Production.INFO: ==10464== Releasing lock... [2025-01-15 11:54:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:54:40] Production.INFO: 62.75 MB #Memory Used# [2025-01-15 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:55:05 [end_date_ymd] => 2025-01-15 11:55:05 [RateCDR] => 1 ) [2025-01-15 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:55:05' and `end` < '2025-01-15 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:55:33] Production.INFO: count ==4651 [2025-01-15 11:55:35] Production.ERROR: pbx CDR StartTime 2025-01-15 08:55:05 - End Time 2025-01-15 11:55:05 [2025-01-15 11:55:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253450', 'tblTempUsageDetail_20' ) start [2025-01-15 11:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253450', 'tblTempUsageDetail_20' ) end [2025-01-15 11:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253450', 'tblTempVendorCDR_20' ) start [2025-01-15 11:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253450', 'tblTempVendorCDR_20' ) end [2025-01-15 11:55:35] Production.INFO: ProcessCDR(1,14253450,1,1,2) [2025-01-15 11:55:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:55:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:55:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:55:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:55:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253450', 'tblTempUsageDetail_20' ) start [2025-01-15 11:55:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253450', 'tblTempUsageDetail_20' ) end [2025-01-15 11:55:41] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:55:41] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:55:41] Production.INFO: ==10542== Releasing lock... [2025-01-15 11:55:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:55:41] Production.INFO: 62.75 MB #Memory Used# [2025-01-15 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:56:05 [end_date_ymd] => 2025-01-15 11:56:05 [RateCDR] => 1 ) [2025-01-15 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:56:05' and `end` < '2025-01-15 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:56:32] Production.INFO: count ==4671 [2025-01-15 11:56:34] Production.ERROR: pbx CDR StartTime 2025-01-15 08:56:05 - End Time 2025-01-15 11:56:05 [2025-01-15 11:56:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253455', 'tblTempUsageDetail_20' ) start [2025-01-15 11:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253455', 'tblTempUsageDetail_20' ) end [2025-01-15 11:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253455', 'tblTempVendorCDR_20' ) start [2025-01-15 11:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253455', 'tblTempVendorCDR_20' ) end [2025-01-15 11:56:34] Production.INFO: ProcessCDR(1,14253455,1,1,2) [2025-01-15 11:56:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:56:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:56:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:56:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:56:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253455', 'tblTempUsageDetail_20' ) start [2025-01-15 11:56:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253455', 'tblTempUsageDetail_20' ) end [2025-01-15 11:56:39] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:56:39] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:56:39] Production.INFO: ==10663== Releasing lock... [2025-01-15 11:56:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:56:39] Production.INFO: 63 MB #Memory Used# [2025-01-15 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:57:05 [end_date_ymd] => 2025-01-15 11:57:05 [RateCDR] => 1 ) [2025-01-15 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:57:05' and `end` < '2025-01-15 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:57:26] Production.INFO: count ==4692 [2025-01-15 11:57:28] Production.ERROR: pbx CDR StartTime 2025-01-15 08:57:05 - End Time 2025-01-15 11:57:05 [2025-01-15 11:57:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253460', 'tblTempUsageDetail_20' ) start [2025-01-15 11:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253460', 'tblTempUsageDetail_20' ) end [2025-01-15 11:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253460', 'tblTempVendorCDR_20' ) start [2025-01-15 11:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253460', 'tblTempVendorCDR_20' ) end [2025-01-15 11:57:28] Production.INFO: ProcessCDR(1,14253460,1,1,2) [2025-01-15 11:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:57:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:57:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:57:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253460', 'tblTempUsageDetail_20' ) start [2025-01-15 11:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253460', 'tblTempUsageDetail_20' ) end [2025-01-15 11:57:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:57:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:57:33] Production.INFO: ==10742== Releasing lock... [2025-01-15 11:57:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:57:33] Production.INFO: 63 MB #Memory Used# [2025-01-15 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:58:05 [end_date_ymd] => 2025-01-15 11:58:05 [RateCDR] => 1 ) [2025-01-15 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:58:05' and `end` < '2025-01-15 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:58:23] Production.INFO: count ==4709 [2025-01-15 11:58:25] Production.ERROR: pbx CDR StartTime 2025-01-15 08:58:05 - End Time 2025-01-15 11:58:05 [2025-01-15 11:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253465', 'tblTempUsageDetail_20' ) start [2025-01-15 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253465', 'tblTempUsageDetail_20' ) end [2025-01-15 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253465', 'tblTempVendorCDR_20' ) start [2025-01-15 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253465', 'tblTempVendorCDR_20' ) end [2025-01-15 11:58:25] Production.INFO: ProcessCDR(1,14253465,1,1,2) [2025-01-15 11:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253465', 'tblTempUsageDetail_20' ) start [2025-01-15 11:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253465', 'tblTempUsageDetail_20' ) end [2025-01-15 11:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:58:30] Production.INFO: ==10826== Releasing lock... [2025-01-15 11:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:58:30] Production.INFO: 63.25 MB #Memory Used# [2025-01-15 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 08:59:05 [end_date_ymd] => 2025-01-15 11:59:05 [RateCDR] => 1 ) [2025-01-15 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 08:59:05' and `end` < '2025-01-15 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 11:59:21] Production.INFO: count ==4720 [2025-01-15 11:59:23] Production.ERROR: pbx CDR StartTime 2025-01-15 08:59:05 - End Time 2025-01-15 11:59:05 [2025-01-15 11:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253470', 'tblTempUsageDetail_20' ) start [2025-01-15 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253470', 'tblTempUsageDetail_20' ) end [2025-01-15 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253470', 'tblTempVendorCDR_20' ) start [2025-01-15 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253470', 'tblTempVendorCDR_20' ) end [2025-01-15 11:59:23] Production.INFO: ProcessCDR(1,14253470,1,1,2) [2025-01-15 11:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 11:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 11:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253470', 'tblTempUsageDetail_20' ) start [2025-01-15 11:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253470', 'tblTempUsageDetail_20' ) end [2025-01-15 11:59:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 11:59:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 11:59:28] Production.INFO: ==10908== Releasing lock... [2025-01-15 11:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 11:59:28] Production.INFO: 63.25 MB #Memory Used# [2025-01-15 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:00:05 [end_date_ymd] => 2025-01-15 12:00:05 [RateCDR] => 1 ) [2025-01-15 12:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:00:05' and `end` < '2025-01-15 12:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:00:31] Production.INFO: count ==4738 [2025-01-15 12:00:33] Production.ERROR: pbx CDR StartTime 2025-01-15 09:00:05 - End Time 2025-01-15 12:00:05 [2025-01-15 12:00:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253475', 'tblTempUsageDetail_20' ) start [2025-01-15 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253475', 'tblTempUsageDetail_20' ) end [2025-01-15 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253475', 'tblTempVendorCDR_20' ) start [2025-01-15 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253475', 'tblTempVendorCDR_20' ) end [2025-01-15 12:00:33] Production.INFO: ProcessCDR(1,14253475,1,1,2) [2025-01-15 12:00:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:00:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:00:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:00:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253475', 'tblTempUsageDetail_20' ) start [2025-01-15 12:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253475', 'tblTempUsageDetail_20' ) end [2025-01-15 12:00:38] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:00:38] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:00:38] Production.INFO: ==11000== Releasing lock... [2025-01-15 12:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:00:38] Production.INFO: 63.5 MB #Memory Used# [2025-01-15 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:01:05 [end_date_ymd] => 2025-01-15 12:01:05 [RateCDR] => 1 ) [2025-01-15 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:01:05' and `end` < '2025-01-15 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:01:24] Production.INFO: count ==4785 [2025-01-15 12:01:26] Production.ERROR: pbx CDR StartTime 2025-01-15 09:01:05 - End Time 2025-01-15 12:01:05 [2025-01-15 12:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253481', 'tblTempUsageDetail_20' ) start [2025-01-15 12:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253481', 'tblTempUsageDetail_20' ) end [2025-01-15 12:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253481', 'tblTempVendorCDR_20' ) start [2025-01-15 12:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253481', 'tblTempVendorCDR_20' ) end [2025-01-15 12:01:26] Production.INFO: ProcessCDR(1,14253481,1,1,2) [2025-01-15 12:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253481', 'tblTempUsageDetail_20' ) start [2025-01-15 12:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253481', 'tblTempUsageDetail_20' ) end [2025-01-15 12:01:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:01:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:01:31] Production.INFO: ==11095== Releasing lock... [2025-01-15 12:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:01:31] Production.INFO: 63.75 MB #Memory Used# [2025-01-15 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:02:05 [end_date_ymd] => 2025-01-15 12:02:05 [RateCDR] => 1 ) [2025-01-15 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:02:05' and `end` < '2025-01-15 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:02:26] Production.INFO: count ==4817 [2025-01-15 12:02:28] Production.ERROR: pbx CDR StartTime 2025-01-15 09:02:05 - End Time 2025-01-15 12:02:05 [2025-01-15 12:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253486', 'tblTempUsageDetail_20' ) start [2025-01-15 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253486', 'tblTempUsageDetail_20' ) end [2025-01-15 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253486', 'tblTempVendorCDR_20' ) start [2025-01-15 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253486', 'tblTempVendorCDR_20' ) end [2025-01-15 12:02:28] Production.INFO: ProcessCDR(1,14253486,1,1,2) [2025-01-15 12:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253486', 'tblTempUsageDetail_20' ) start [2025-01-15 12:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253486', 'tblTempUsageDetail_20' ) end [2025-01-15 12:02:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:02:34] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:02:34] Production.INFO: ==11174== Releasing lock... [2025-01-15 12:02:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:02:34] Production.INFO: 64 MB #Memory Used# [2025-01-15 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:03:05 [end_date_ymd] => 2025-01-15 12:03:05 [RateCDR] => 1 ) [2025-01-15 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:03:05' and `end` < '2025-01-15 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:03:22] Production.INFO: count ==4816 [2025-01-15 12:03:24] Production.ERROR: pbx CDR StartTime 2025-01-15 09:03:05 - End Time 2025-01-15 12:03:05 [2025-01-15 12:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253491', 'tblTempUsageDetail_20' ) start [2025-01-15 12:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253491', 'tblTempUsageDetail_20' ) end [2025-01-15 12:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253491', 'tblTempVendorCDR_20' ) start [2025-01-15 12:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253491', 'tblTempVendorCDR_20' ) end [2025-01-15 12:03:24] Production.INFO: ProcessCDR(1,14253491,1,1,2) [2025-01-15 12:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253491', 'tblTempUsageDetail_20' ) start [2025-01-15 12:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253491', 'tblTempUsageDetail_20' ) end [2025-01-15 12:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:03:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:03:29] Production.INFO: ==11257== Releasing lock... [2025-01-15 12:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:03:29] Production.INFO: 64 MB #Memory Used# [2025-01-15 12:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:04:04 [end_date_ymd] => 2025-01-15 12:04:04 [RateCDR] => 1 ) [2025-01-15 12:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:04:04' and `end` < '2025-01-15 12:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:04:32] Production.INFO: count ==4824 [2025-01-15 12:04:34] Production.ERROR: pbx CDR StartTime 2025-01-15 09:04:04 - End Time 2025-01-15 12:04:04 [2025-01-15 12:04:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253496', 'tblTempUsageDetail_20' ) start [2025-01-15 12:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253496', 'tblTempUsageDetail_20' ) end [2025-01-15 12:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253496', 'tblTempVendorCDR_20' ) start [2025-01-15 12:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253496', 'tblTempVendorCDR_20' ) end [2025-01-15 12:04:34] Production.INFO: ProcessCDR(1,14253496,1,1,2) [2025-01-15 12:04:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:04:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:04:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:04:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253496', 'tblTempUsageDetail_20' ) start [2025-01-15 12:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253496', 'tblTempUsageDetail_20' ) end [2025-01-15 12:04:39] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:04:39] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:04:39] Production.INFO: ==11342== Releasing lock... [2025-01-15 12:04:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:04:39] Production.INFO: 64 MB #Memory Used# [2025-01-15 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:05:05 [end_date_ymd] => 2025-01-15 12:05:05 [RateCDR] => 1 ) [2025-01-15 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:05:05' and `end` < '2025-01-15 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-01-15 12:05:32] Production.INFO: count ==4828 [2025-01-15 12:05:34] Production.ERROR: pbx CDR StartTime 2025-01-15 09:05:05 - End Time 2025-01-15 12:05:05 [2025-01-15 12:05:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253500', 'tblTempUsageDetail_20' ) start [2025-01-15 12:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253500', 'tblTempUsageDetail_20' ) end [2025-01-15 12:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253500', 'tblTempVendorCDR_20' ) start [2025-01-15 12:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253500', 'tblTempVendorCDR_20' ) end [2025-01-15 12:05:35] Production.INFO: ProcessCDR(1,14253500,1,1,2) [2025-01-15 12:05:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:05:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:05:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:05:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:05:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253500', 'tblTempUsageDetail_20' ) start [2025-01-15 12:05:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253500', 'tblTempUsageDetail_20' ) end [2025-01-15 12:05:40] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:05:40] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:05:40] Production.INFO: ==11422== Releasing lock... [2025-01-15 12:05:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:05:40] Production.INFO: 64 MB #Memory Used# [2025-01-15 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:06:05 [end_date_ymd] => 2025-01-15 12:06:05 [RateCDR] => 1 ) [2025-01-15 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:06:05' and `end` < '2025-01-15 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:06:22] Production.INFO: count ==4848 [2025-01-15 12:06:24] Production.ERROR: pbx CDR StartTime 2025-01-15 09:06:05 - End Time 2025-01-15 12:06:05 [2025-01-15 12:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253506', 'tblTempUsageDetail_20' ) start [2025-01-15 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253506', 'tblTempUsageDetail_20' ) end [2025-01-15 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253506', 'tblTempVendorCDR_20' ) start [2025-01-15 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253506', 'tblTempVendorCDR_20' ) end [2025-01-15 12:06:24] Production.INFO: ProcessCDR(1,14253506,1,1,2) [2025-01-15 12:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253506', 'tblTempUsageDetail_20' ) start [2025-01-15 12:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253506', 'tblTempUsageDetail_20' ) end [2025-01-15 12:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:06:30] Production.INFO: ==11508== Releasing lock... [2025-01-15 12:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:06:30] Production.INFO: 64.25 MB #Memory Used# [2025-01-15 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:07:05 [end_date_ymd] => 2025-01-15 12:07:05 [RateCDR] => 1 ) [2025-01-15 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:07:05' and `end` < '2025-01-15 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:07:22] Production.INFO: count ==4854 [2025-01-15 12:07:24] Production.ERROR: pbx CDR StartTime 2025-01-15 09:07:05 - End Time 2025-01-15 12:07:05 [2025-01-15 12:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253511', 'tblTempUsageDetail_20' ) start [2025-01-15 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253511', 'tblTempUsageDetail_20' ) end [2025-01-15 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253511', 'tblTempVendorCDR_20' ) start [2025-01-15 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253511', 'tblTempVendorCDR_20' ) end [2025-01-15 12:07:24] Production.INFO: ProcessCDR(1,14253511,1,1,2) [2025-01-15 12:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253511', 'tblTempUsageDetail_20' ) start [2025-01-15 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253511', 'tblTempUsageDetail_20' ) end [2025-01-15 12:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:07:29] Production.INFO: ==11580== Releasing lock... [2025-01-15 12:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:07:29] Production.INFO: 64.25 MB #Memory Used# [2025-01-15 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:08:05 [end_date_ymd] => 2025-01-15 12:08:05 [RateCDR] => 1 ) [2025-01-15 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:08:05' and `end` < '2025-01-15 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:08:24] Production.INFO: count ==4840 [2025-01-15 12:08:26] Production.ERROR: pbx CDR StartTime 2025-01-15 09:08:05 - End Time 2025-01-15 12:08:05 [2025-01-15 12:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253516', 'tblTempUsageDetail_20' ) start [2025-01-15 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253516', 'tblTempUsageDetail_20' ) end [2025-01-15 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253516', 'tblTempVendorCDR_20' ) start [2025-01-15 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253516', 'tblTempVendorCDR_20' ) end [2025-01-15 12:08:26] Production.INFO: ProcessCDR(1,14253516,1,1,2) [2025-01-15 12:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253516', 'tblTempUsageDetail_20' ) start [2025-01-15 12:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253516', 'tblTempUsageDetail_20' ) end [2025-01-15 12:08:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:08:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:08:32] Production.INFO: ==11657== Releasing lock... [2025-01-15 12:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:08:32] Production.INFO: 64.25 MB #Memory Used# [2025-01-15 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:09:05 [end_date_ymd] => 2025-01-15 12:09:05 [RateCDR] => 1 ) [2025-01-15 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:09:05' and `end` < '2025-01-15 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:09:27] Production.INFO: count ==4823 [2025-01-15 12:09:28] Production.ERROR: pbx CDR StartTime 2025-01-15 09:09:05 - End Time 2025-01-15 12:09:05 [2025-01-15 12:09:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253521', 'tblTempUsageDetail_20' ) start [2025-01-15 12:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253521', 'tblTempUsageDetail_20' ) end [2025-01-15 12:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253521', 'tblTempVendorCDR_20' ) start [2025-01-15 12:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253521', 'tblTempVendorCDR_20' ) end [2025-01-15 12:09:29] Production.INFO: ProcessCDR(1,14253521,1,1,2) [2025-01-15 12:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:09:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:09:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:09:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253521', 'tblTempUsageDetail_20' ) start [2025-01-15 12:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253521', 'tblTempUsageDetail_20' ) end [2025-01-15 12:09:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:09:34] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:09:34] Production.INFO: ==11739== Releasing lock... [2025-01-15 12:09:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:09:34] Production.INFO: 64 MB #Memory Used# [2025-01-15 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:10:05 [end_date_ymd] => 2025-01-15 12:10:05 [RateCDR] => 1 ) [2025-01-15 12:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:10:05' and `end` < '2025-01-15 12:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:10:24] Production.INFO: count ==4824 [2025-01-15 12:10:26] Production.ERROR: pbx CDR StartTime 2025-01-15 09:10:05 - End Time 2025-01-15 12:10:05 [2025-01-15 12:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253526', 'tblTempUsageDetail_20' ) start [2025-01-15 12:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253526', 'tblTempUsageDetail_20' ) end [2025-01-15 12:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253526', 'tblTempVendorCDR_20' ) start [2025-01-15 12:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253526', 'tblTempVendorCDR_20' ) end [2025-01-15 12:10:27] Production.INFO: ProcessCDR(1,14253526,1,1,2) [2025-01-15 12:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253526', 'tblTempUsageDetail_20' ) start [2025-01-15 12:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253526', 'tblTempUsageDetail_20' ) end [2025-01-15 12:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:10:31] Production.INFO: ==11814== Releasing lock... [2025-01-15 12:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:10:31] Production.INFO: 64 MB #Memory Used# [2025-01-15 12:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:11:04 [end_date_ymd] => 2025-01-15 12:11:04 [RateCDR] => 1 ) [2025-01-15 12:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:11:04' and `end` < '2025-01-15 12:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:11:19] Production.INFO: count ==4869 [2025-01-15 12:11:21] Production.ERROR: pbx CDR StartTime 2025-01-15 09:11:04 - End Time 2025-01-15 12:11:04 [2025-01-15 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253532', 'tblTempUsageDetail_20' ) start [2025-01-15 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253532', 'tblTempUsageDetail_20' ) end [2025-01-15 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253532', 'tblTempVendorCDR_20' ) start [2025-01-15 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253532', 'tblTempVendorCDR_20' ) end [2025-01-15 12:11:21] Production.INFO: ProcessCDR(1,14253532,1,1,2) [2025-01-15 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253532', 'tblTempUsageDetail_20' ) start [2025-01-15 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253532', 'tblTempUsageDetail_20' ) end [2025-01-15 12:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:11:24] Production.INFO: ==11888== Releasing lock... [2025-01-15 12:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:11:24] Production.INFO: 64.5 MB #Memory Used# [2025-01-15 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:12:05 [end_date_ymd] => 2025-01-15 12:12:05 [RateCDR] => 1 ) [2025-01-15 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:12:05' and `end` < '2025-01-15 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:12:19] Production.INFO: count ==4896 [2025-01-15 12:12:21] Production.ERROR: pbx CDR StartTime 2025-01-15 09:12:05 - End Time 2025-01-15 12:12:05 [2025-01-15 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253537', 'tblTempUsageDetail_20' ) start [2025-01-15 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253537', 'tblTempUsageDetail_20' ) end [2025-01-15 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253537', 'tblTempVendorCDR_20' ) start [2025-01-15 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253537', 'tblTempVendorCDR_20' ) end [2025-01-15 12:12:21] Production.INFO: ProcessCDR(1,14253537,1,1,2) [2025-01-15 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253537', 'tblTempUsageDetail_20' ) start [2025-01-15 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253537', 'tblTempUsageDetail_20' ) end [2025-01-15 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:12:26] Production.INFO: ==11998== Releasing lock... [2025-01-15 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:12:26] Production.INFO: 64.75 MB #Memory Used# [2025-01-15 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:13:05 [end_date_ymd] => 2025-01-15 12:13:05 [RateCDR] => 1 ) [2025-01-15 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:13:05' and `end` < '2025-01-15 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:13:22] Production.INFO: count ==4898 [2025-01-15 12:13:24] Production.ERROR: pbx CDR StartTime 2025-01-15 09:13:05 - End Time 2025-01-15 12:13:05 [2025-01-15 12:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253542', 'tblTempUsageDetail_20' ) start [2025-01-15 12:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253542', 'tblTempUsageDetail_20' ) end [2025-01-15 12:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253542', 'tblTempVendorCDR_20' ) start [2025-01-15 12:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253542', 'tblTempVendorCDR_20' ) end [2025-01-15 12:13:24] Production.INFO: ProcessCDR(1,14253542,1,1,2) [2025-01-15 12:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253542', 'tblTempUsageDetail_20' ) start [2025-01-15 12:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253542', 'tblTempUsageDetail_20' ) end [2025-01-15 12:13:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:13:30] Production.INFO: ==12070== Releasing lock... [2025-01-15 12:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:13:30] Production.INFO: 64.75 MB #Memory Used# [2025-01-15 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:14:05 [end_date_ymd] => 2025-01-15 12:14:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 09:14:05' and `end` < '2025-01-15 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-01-15 12:14:31] Production.INFO: count ==4925 [2025-01-15 12:14:34] Production.ERROR: pbx CDR StartTime 2025-01-15 09:14:05 - End Time 2025-01-15 12:14:05 [2025-01-15 12:14:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253547', 'tblTempUsageDetail_20' ) start [2025-01-15 12:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253547', 'tblTempUsageDetail_20' ) end [2025-01-15 12:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253547', 'tblTempVendorCDR_20' ) start [2025-01-15 12:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253547', 'tblTempVendorCDR_20' ) end [2025-01-15 12:14:34] Production.INFO: ProcessCDR(1,14253547,1,1,2) [2025-01-15 12:14:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:14:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:14:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:14:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:14:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253547', 'tblTempUsageDetail_20' ) start [2025-01-15 12:14:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253547', 'tblTempUsageDetail_20' ) end [2025-01-15 12:14:39] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:14:39] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:14:39] Production.INFO: ==12148== Releasing lock... [2025-01-15 12:14:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:14:39] Production.INFO: 64.75 MB #Memory Used# [2025-01-15 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:15:05 [end_date_ymd] => 2025-01-15 12:15:05 [RateCDR] => 1 ) [2025-01-15 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:15:05' and `end` < '2025-01-15 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:15:26] Production.INFO: count ==4943 [2025-01-15 12:15:29] Production.ERROR: pbx CDR StartTime 2025-01-15 09:15:05 - End Time 2025-01-15 12:15:05 [2025-01-15 12:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253552', 'tblTempUsageDetail_20' ) start [2025-01-15 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253552', 'tblTempUsageDetail_20' ) end [2025-01-15 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253552', 'tblTempVendorCDR_20' ) start [2025-01-15 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253552', 'tblTempVendorCDR_20' ) end [2025-01-15 12:15:29] Production.INFO: ProcessCDR(1,14253552,1,1,2) [2025-01-15 12:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253552', 'tblTempUsageDetail_20' ) start [2025-01-15 12:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253552', 'tblTempUsageDetail_20' ) end [2025-01-15 12:15:35] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:15:35] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:15:35] Production.INFO: ==12222== Releasing lock... [2025-01-15 12:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:15:35] Production.INFO: 65 MB #Memory Used# [2025-01-15 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:16:05 [end_date_ymd] => 2025-01-15 12:16:05 [RateCDR] => 1 ) [2025-01-15 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:16:05' and `end` < '2025-01-15 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:16:22] Production.INFO: count ==4949 [2025-01-15 12:16:24] Production.ERROR: pbx CDR StartTime 2025-01-15 09:16:05 - End Time 2025-01-15 12:16:05 [2025-01-15 12:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253557', 'tblTempUsageDetail_20' ) start [2025-01-15 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253557', 'tblTempUsageDetail_20' ) end [2025-01-15 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253557', 'tblTempVendorCDR_20' ) start [2025-01-15 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253557', 'tblTempVendorCDR_20' ) end [2025-01-15 12:16:24] Production.INFO: ProcessCDR(1,14253557,1,1,2) [2025-01-15 12:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253557', 'tblTempUsageDetail_20' ) start [2025-01-15 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253557', 'tblTempUsageDetail_20' ) end [2025-01-15 12:16:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:16:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:16:28] Production.INFO: ==12292== Releasing lock... [2025-01-15 12:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:16:28] Production.INFO: 65 MB #Memory Used# [2025-01-15 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:17:05 [end_date_ymd] => 2025-01-15 12:17:05 [RateCDR] => 1 ) [2025-01-15 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:17:05' and `end` < '2025-01-15 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:17:22] Production.INFO: count ==4955 [2025-01-15 12:17:24] Production.ERROR: pbx CDR StartTime 2025-01-15 09:17:05 - End Time 2025-01-15 12:17:05 [2025-01-15 12:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253562', 'tblTempUsageDetail_20' ) start [2025-01-15 12:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253562', 'tblTempUsageDetail_20' ) end [2025-01-15 12:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253562', 'tblTempVendorCDR_20' ) start [2025-01-15 12:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253562', 'tblTempVendorCDR_20' ) end [2025-01-15 12:17:24] Production.INFO: ProcessCDR(1,14253562,1,1,2) [2025-01-15 12:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253562', 'tblTempUsageDetail_20' ) start [2025-01-15 12:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253562', 'tblTempUsageDetail_20' ) end [2025-01-15 12:17:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:17:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:17:29] Production.INFO: ==12365== Releasing lock... [2025-01-15 12:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:17:29] Production.INFO: 65 MB #Memory Used# [2025-01-15 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:18:05 [end_date_ymd] => 2025-01-15 12:18:05 [RateCDR] => 1 ) [2025-01-15 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:18:05' and `end` < '2025-01-15 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:18:24] Production.INFO: count ==4962 [2025-01-15 12:18:26] Production.ERROR: pbx CDR StartTime 2025-01-15 09:18:05 - End Time 2025-01-15 12:18:05 [2025-01-15 12:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253567', 'tblTempUsageDetail_20' ) start [2025-01-15 12:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253567', 'tblTempUsageDetail_20' ) end [2025-01-15 12:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253567', 'tblTempVendorCDR_20' ) start [2025-01-15 12:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253567', 'tblTempVendorCDR_20' ) end [2025-01-15 12:18:26] Production.INFO: ProcessCDR(1,14253567,1,1,2) [2025-01-15 12:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253567', 'tblTempUsageDetail_20' ) start [2025-01-15 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253567', 'tblTempUsageDetail_20' ) end [2025-01-15 12:18:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:18:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:18:30] Production.INFO: ==12446== Releasing lock... [2025-01-15 12:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:18:30] Production.INFO: 65.5 MB #Memory Used# [2025-01-15 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:19:05 [end_date_ymd] => 2025-01-15 12:19:05 [RateCDR] => 1 ) [2025-01-15 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:19:05' and `end` < '2025-01-15 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:19:25] Production.INFO: count ==4983 [2025-01-15 12:19:27] Production.ERROR: pbx CDR StartTime 2025-01-15 09:19:05 - End Time 2025-01-15 12:19:05 [2025-01-15 12:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253572', 'tblTempUsageDetail_20' ) start [2025-01-15 12:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253572', 'tblTempUsageDetail_20' ) end [2025-01-15 12:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253572', 'tblTempVendorCDR_20' ) start [2025-01-15 12:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253572', 'tblTempVendorCDR_20' ) end [2025-01-15 12:19:27] Production.INFO: ProcessCDR(1,14253572,1,1,2) [2025-01-15 12:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:19:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:19:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253572', 'tblTempUsageDetail_20' ) start [2025-01-15 12:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253572', 'tblTempUsageDetail_20' ) end [2025-01-15 12:19:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:19:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:19:32] Production.INFO: ==12517== Releasing lock... [2025-01-15 12:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:19:32] Production.INFO: 65.25 MB #Memory Used# [2025-01-15 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:20:06 [end_date_ymd] => 2025-01-15 12:20:06 [RateCDR] => 1 ) [2025-01-15 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:20:06' and `end` < '2025-01-15 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:20:30] Production.INFO: count ==4988 [2025-01-15 12:20:32] Production.ERROR: pbx CDR StartTime 2025-01-15 09:20:06 - End Time 2025-01-15 12:20:06 [2025-01-15 12:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253577', 'tblTempUsageDetail_20' ) start [2025-01-15 12:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253577', 'tblTempUsageDetail_20' ) end [2025-01-15 12:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253577', 'tblTempVendorCDR_20' ) start [2025-01-15 12:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253577', 'tblTempVendorCDR_20' ) end [2025-01-15 12:20:32] Production.INFO: ProcessCDR(1,14253577,1,1,2) [2025-01-15 12:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:20:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:20:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:20:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253577', 'tblTempUsageDetail_20' ) start [2025-01-15 12:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253577', 'tblTempUsageDetail_20' ) end [2025-01-15 12:20:37] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:20:37] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:20:37] Production.INFO: ==12592== Releasing lock... [2025-01-15 12:20:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:20:37] Production.INFO: 65.25 MB #Memory Used# [2025-01-15 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:21:05 [end_date_ymd] => 2025-01-15 12:21:05 [RateCDR] => 1 ) [2025-01-15 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:21:05' and `end` < '2025-01-15 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:21:27] Production.INFO: count ==5049 [2025-01-15 12:21:29] Production.ERROR: pbx CDR StartTime 2025-01-15 09:21:05 - End Time 2025-01-15 12:21:05 [2025-01-15 12:21:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253583', 'tblTempUsageDetail_20' ) start [2025-01-15 12:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253583', 'tblTempUsageDetail_20' ) end [2025-01-15 12:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253583', 'tblTempVendorCDR_20' ) start [2025-01-15 12:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253583', 'tblTempVendorCDR_20' ) end [2025-01-15 12:21:29] Production.INFO: ProcessCDR(1,14253583,1,1,2) [2025-01-15 12:21:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:21:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:21:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:21:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253583', 'tblTempUsageDetail_20' ) start [2025-01-15 12:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253583', 'tblTempUsageDetail_20' ) end [2025-01-15 12:21:34] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:21:34] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:21:34] Production.INFO: ==12665== Releasing lock... [2025-01-15 12:21:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:21:34] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:22:05 [end_date_ymd] => 2025-01-15 12:22:05 [RateCDR] => 1 ) [2025-01-15 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:22:05' and `end` < '2025-01-15 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:22:22] Production.INFO: count ==5058 [2025-01-15 12:22:25] Production.ERROR: pbx CDR StartTime 2025-01-15 09:22:05 - End Time 2025-01-15 12:22:05 [2025-01-15 12:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253588', 'tblTempUsageDetail_20' ) start [2025-01-15 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253588', 'tblTempUsageDetail_20' ) end [2025-01-15 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253588', 'tblTempVendorCDR_20' ) start [2025-01-15 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253588', 'tblTempVendorCDR_20' ) end [2025-01-15 12:22:25] Production.INFO: ProcessCDR(1,14253588,1,1,2) [2025-01-15 12:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253588', 'tblTempUsageDetail_20' ) start [2025-01-15 12:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253588', 'tblTempUsageDetail_20' ) end [2025-01-15 12:22:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:22:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:22:30] Production.INFO: ==12733== Releasing lock... [2025-01-15 12:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:22:30] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:23:05 [end_date_ymd] => 2025-01-15 12:23:05 [RateCDR] => 1 ) [2025-01-15 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:23:05' and `end` < '2025-01-15 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:23:22] Production.INFO: count ==5063 [2025-01-15 12:23:24] Production.ERROR: pbx CDR StartTime 2025-01-15 09:23:05 - End Time 2025-01-15 12:23:05 [2025-01-15 12:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253593', 'tblTempUsageDetail_20' ) start [2025-01-15 12:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253593', 'tblTempUsageDetail_20' ) end [2025-01-15 12:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253593', 'tblTempVendorCDR_20' ) start [2025-01-15 12:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253593', 'tblTempVendorCDR_20' ) end [2025-01-15 12:23:24] Production.INFO: ProcessCDR(1,14253593,1,1,2) [2025-01-15 12:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253593', 'tblTempUsageDetail_20' ) start [2025-01-15 12:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253593', 'tblTempUsageDetail_20' ) end [2025-01-15 12:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:23:29] Production.INFO: ==12807== Releasing lock... [2025-01-15 12:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:23:29] Production.INFO: 66 MB #Memory Used# [2025-01-15 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:24:05 [end_date_ymd] => 2025-01-15 12:24:05 [RateCDR] => 1 ) [2025-01-15 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:24:05' and `end` < '2025-01-15 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:24:18] Production.INFO: count ==5046 [2025-01-15 12:24:20] Production.ERROR: pbx CDR StartTime 2025-01-15 09:24:05 - End Time 2025-01-15 12:24:05 [2025-01-15 12:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253598', 'tblTempUsageDetail_20' ) start [2025-01-15 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253598', 'tblTempUsageDetail_20' ) end [2025-01-15 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253598', 'tblTempVendorCDR_20' ) start [2025-01-15 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253598', 'tblTempVendorCDR_20' ) end [2025-01-15 12:24:20] Production.INFO: ProcessCDR(1,14253598,1,1,2) [2025-01-15 12:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253598', 'tblTempUsageDetail_20' ) start [2025-01-15 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253598', 'tblTempUsageDetail_20' ) end [2025-01-15 12:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:24:25] Production.INFO: ==12878== Releasing lock... [2025-01-15 12:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:24:25] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:25:05 [end_date_ymd] => 2025-01-15 12:25:05 [RateCDR] => 1 ) [2025-01-15 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:25:05' and `end` < '2025-01-15 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:25:22] Production.INFO: count ==5038 [2025-01-15 12:25:24] Production.ERROR: pbx CDR StartTime 2025-01-15 09:25:05 - End Time 2025-01-15 12:25:05 [2025-01-15 12:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253603', 'tblTempUsageDetail_20' ) start [2025-01-15 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253603', 'tblTempUsageDetail_20' ) end [2025-01-15 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253603', 'tblTempVendorCDR_20' ) start [2025-01-15 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253603', 'tblTempVendorCDR_20' ) end [2025-01-15 12:25:24] Production.INFO: ProcessCDR(1,14253603,1,1,2) [2025-01-15 12:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253603', 'tblTempUsageDetail_20' ) start [2025-01-15 12:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253603', 'tblTempUsageDetail_20' ) end [2025-01-15 12:25:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:25:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:25:29] Production.INFO: ==12949== Releasing lock... [2025-01-15 12:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:25:29] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:26:06 [end_date_ymd] => 2025-01-15 12:26:06 [RateCDR] => 1 ) [2025-01-15 12:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:26:06' and `end` < '2025-01-15 12:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:26:22] Production.INFO: count ==5057 [2025-01-15 12:26:24] Production.ERROR: pbx CDR StartTime 2025-01-15 09:26:06 - End Time 2025-01-15 12:26:06 [2025-01-15 12:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253608', 'tblTempUsageDetail_20' ) start [2025-01-15 12:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253608', 'tblTempUsageDetail_20' ) end [2025-01-15 12:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253608', 'tblTempVendorCDR_20' ) start [2025-01-15 12:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253608', 'tblTempVendorCDR_20' ) end [2025-01-15 12:26:24] Production.INFO: ProcessCDR(1,14253608,1,1,2) [2025-01-15 12:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253608', 'tblTempUsageDetail_20' ) start [2025-01-15 12:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253608', 'tblTempUsageDetail_20' ) end [2025-01-15 12:26:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:26:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:26:29] Production.INFO: ==13020== Releasing lock... [2025-01-15 12:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:26:29] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:27:05 [end_date_ymd] => 2025-01-15 12:27:05 [RateCDR] => 1 ) [2025-01-15 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:27:05' and `end` < '2025-01-15 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:27:18] Production.INFO: count ==5045 [2025-01-15 12:27:20] Production.ERROR: pbx CDR StartTime 2025-01-15 09:27:05 - End Time 2025-01-15 12:27:05 [2025-01-15 12:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253613', 'tblTempUsageDetail_20' ) start [2025-01-15 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253613', 'tblTempUsageDetail_20' ) end [2025-01-15 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253613', 'tblTempVendorCDR_20' ) start [2025-01-15 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253613', 'tblTempVendorCDR_20' ) end [2025-01-15 12:27:20] Production.INFO: ProcessCDR(1,14253613,1,1,2) [2025-01-15 12:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253613', 'tblTempUsageDetail_20' ) start [2025-01-15 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253613', 'tblTempUsageDetail_20' ) end [2025-01-15 12:27:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:27:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:27:25] Production.INFO: ==13131== Releasing lock... [2025-01-15 12:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:27:25] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:28:05 [end_date_ymd] => 2025-01-15 12:28:05 [RateCDR] => 1 ) [2025-01-15 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:28:05' and `end` < '2025-01-15 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:28:20] Production.INFO: count ==5034 [2025-01-15 12:28:22] Production.ERROR: pbx CDR StartTime 2025-01-15 09:28:05 - End Time 2025-01-15 12:28:05 [2025-01-15 12:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253618', 'tblTempUsageDetail_20' ) start [2025-01-15 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253618', 'tblTempUsageDetail_20' ) end [2025-01-15 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253618', 'tblTempVendorCDR_20' ) start [2025-01-15 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253618', 'tblTempVendorCDR_20' ) end [2025-01-15 12:28:22] Production.INFO: ProcessCDR(1,14253618,1,1,2) [2025-01-15 12:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253618', 'tblTempUsageDetail_20' ) start [2025-01-15 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253618', 'tblTempUsageDetail_20' ) end [2025-01-15 12:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:28:25] Production.INFO: ==13205== Releasing lock... [2025-01-15 12:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:28:25] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:29:05 [end_date_ymd] => 2025-01-15 12:29:05 [RateCDR] => 1 ) [2025-01-15 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:29:05' and `end` < '2025-01-15 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:29:20] Production.INFO: count ==5019 [2025-01-15 12:29:22] Production.ERROR: pbx CDR StartTime 2025-01-15 09:29:05 - End Time 2025-01-15 12:29:05 [2025-01-15 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253623', 'tblTempUsageDetail_20' ) start [2025-01-15 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253623', 'tblTempUsageDetail_20' ) end [2025-01-15 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253623', 'tblTempVendorCDR_20' ) start [2025-01-15 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253623', 'tblTempVendorCDR_20' ) end [2025-01-15 12:29:23] Production.INFO: ProcessCDR(1,14253623,1,1,2) [2025-01-15 12:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253623', 'tblTempUsageDetail_20' ) start [2025-01-15 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253623', 'tblTempUsageDetail_20' ) end [2025-01-15 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:29:27] Production.INFO: ==13275== Releasing lock... [2025-01-15 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:29:27] Production.INFO: 65.5 MB #Memory Used# [2025-01-15 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:30:06 [end_date_ymd] => 2025-01-15 12:30:06 [RateCDR] => 1 ) [2025-01-15 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:30:06' and `end` < '2025-01-15 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:30:29] Production.INFO: count ==5008 [2025-01-15 12:30:31] Production.ERROR: pbx CDR StartTime 2025-01-15 09:30:06 - End Time 2025-01-15 12:30:06 [2025-01-15 12:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253629', 'tblTempUsageDetail_20' ) start [2025-01-15 12:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253629', 'tblTempUsageDetail_20' ) end [2025-01-15 12:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253629', 'tblTempVendorCDR_20' ) start [2025-01-15 12:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253629', 'tblTempVendorCDR_20' ) end [2025-01-15 12:30:31] Production.INFO: ProcessCDR(1,14253629,1,1,2) [2025-01-15 12:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:30:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:30:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253629', 'tblTempUsageDetail_20' ) start [2025-01-15 12:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253629', 'tblTempUsageDetail_20' ) end [2025-01-15 12:30:36] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:30:36] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:30:36] Production.INFO: ==13353== Releasing lock... [2025-01-15 12:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:30:36] Production.INFO: 65.5 MB #Memory Used# [2025-01-15 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:31:05 [end_date_ymd] => 2025-01-15 12:31:05 [RateCDR] => 1 ) [2025-01-15 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:31:05' and `end` < '2025-01-15 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:31:21] Production.INFO: count ==5012 [2025-01-15 12:31:23] Production.ERROR: pbx CDR StartTime 2025-01-15 09:31:05 - End Time 2025-01-15 12:31:05 [2025-01-15 12:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253634', 'tblTempUsageDetail_20' ) start [2025-01-15 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253634', 'tblTempUsageDetail_20' ) end [2025-01-15 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253634', 'tblTempVendorCDR_20' ) start [2025-01-15 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253634', 'tblTempVendorCDR_20' ) end [2025-01-15 12:31:23] Production.INFO: ProcessCDR(1,14253634,1,1,2) [2025-01-15 12:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253634', 'tblTempUsageDetail_20' ) start [2025-01-15 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253634', 'tblTempUsageDetail_20' ) end [2025-01-15 12:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:31:28] Production.INFO: ==13426== Releasing lock... [2025-01-15 12:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:31:28] Production.INFO: 65.5 MB #Memory Used# [2025-01-15 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:32:05 [end_date_ymd] => 2025-01-15 12:32:05 [RateCDR] => 1 ) [2025-01-15 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:32:05' and `end` < '2025-01-15 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:32:21] Production.INFO: count ==5031 [2025-01-15 12:32:23] Production.ERROR: pbx CDR StartTime 2025-01-15 09:32:05 - End Time 2025-01-15 12:32:05 [2025-01-15 12:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253638', 'tblTempUsageDetail_20' ) start [2025-01-15 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253638', 'tblTempUsageDetail_20' ) end [2025-01-15 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253638', 'tblTempVendorCDR_20' ) start [2025-01-15 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253638', 'tblTempVendorCDR_20' ) end [2025-01-15 12:32:23] Production.INFO: ProcessCDR(1,14253638,1,1,2) [2025-01-15 12:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253638', 'tblTempUsageDetail_20' ) start [2025-01-15 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253638', 'tblTempUsageDetail_20' ) end [2025-01-15 12:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:32:28] Production.INFO: ==13497== Releasing lock... [2025-01-15 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:32:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:33:05 [end_date_ymd] => 2025-01-15 12:33:05 [RateCDR] => 1 ) [2025-01-15 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:33:05' and `end` < '2025-01-15 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:33:23] Production.INFO: count ==5041 [2025-01-15 12:33:25] Production.ERROR: pbx CDR StartTime 2025-01-15 09:33:05 - End Time 2025-01-15 12:33:05 [2025-01-15 12:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253644', 'tblTempUsageDetail_20' ) start [2025-01-15 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253644', 'tblTempUsageDetail_20' ) end [2025-01-15 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253644', 'tblTempVendorCDR_20' ) start [2025-01-15 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253644', 'tblTempVendorCDR_20' ) end [2025-01-15 12:33:25] Production.INFO: ProcessCDR(1,14253644,1,1,2) [2025-01-15 12:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253644', 'tblTempUsageDetail_20' ) start [2025-01-15 12:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253644', 'tblTempUsageDetail_20' ) end [2025-01-15 12:33:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:33:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:33:30] Production.INFO: ==13567== Releasing lock... [2025-01-15 12:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:33:30] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:34:05 [end_date_ymd] => 2025-01-15 12:34:05 [RateCDR] => 1 ) [2025-01-15 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:34:05' and `end` < '2025-01-15 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:34:19] Production.INFO: count ==5048 [2025-01-15 12:34:21] Production.ERROR: pbx CDR StartTime 2025-01-15 09:34:05 - End Time 2025-01-15 12:34:05 [2025-01-15 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253649', 'tblTempUsageDetail_20' ) start [2025-01-15 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253649', 'tblTempUsageDetail_20' ) end [2025-01-15 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253649', 'tblTempVendorCDR_20' ) start [2025-01-15 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253649', 'tblTempVendorCDR_20' ) end [2025-01-15 12:34:21] Production.INFO: ProcessCDR(1,14253649,1,1,2) [2025-01-15 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253649', 'tblTempUsageDetail_20' ) start [2025-01-15 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253649', 'tblTempUsageDetail_20' ) end [2025-01-15 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:34:26] Production.INFO: ==13637== Releasing lock... [2025-01-15 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:34:26] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 12:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:35:04 [end_date_ymd] => 2025-01-15 12:35:04 [RateCDR] => 1 ) [2025-01-15 12:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:35:04' and `end` < '2025-01-15 12:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:35:22] Production.INFO: count ==5043 [2025-01-15 12:35:24] Production.ERROR: pbx CDR StartTime 2025-01-15 09:35:04 - End Time 2025-01-15 12:35:04 [2025-01-15 12:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253654', 'tblTempUsageDetail_20' ) start [2025-01-15 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253654', 'tblTempUsageDetail_20' ) end [2025-01-15 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253654', 'tblTempVendorCDR_20' ) start [2025-01-15 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253654', 'tblTempVendorCDR_20' ) end [2025-01-15 12:35:24] Production.INFO: ProcessCDR(1,14253654,1,1,2) [2025-01-15 12:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253654', 'tblTempUsageDetail_20' ) start [2025-01-15 12:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253654', 'tblTempUsageDetail_20' ) end [2025-01-15 12:35:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:35:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:35:29] Production.INFO: ==13708== Releasing lock... [2025-01-15 12:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:35:29] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 12:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:36:04 [end_date_ymd] => 2025-01-15 12:36:04 [RateCDR] => 1 ) [2025-01-15 12:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:36:04' and `end` < '2025-01-15 12:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:36:19] Production.INFO: count ==5063 [2025-01-15 12:36:21] Production.ERROR: pbx CDR StartTime 2025-01-15 09:36:04 - End Time 2025-01-15 12:36:04 [2025-01-15 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253659', 'tblTempUsageDetail_20' ) start [2025-01-15 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253659', 'tblTempUsageDetail_20' ) end [2025-01-15 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253659', 'tblTempVendorCDR_20' ) start [2025-01-15 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253659', 'tblTempVendorCDR_20' ) end [2025-01-15 12:36:21] Production.INFO: ProcessCDR(1,14253659,1,1,2) [2025-01-15 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253659', 'tblTempUsageDetail_20' ) start [2025-01-15 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253659', 'tblTempUsageDetail_20' ) end [2025-01-15 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:36:26] Production.INFO: ==13780== Releasing lock... [2025-01-15 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:36:26] Production.INFO: 66 MB #Memory Used# [2025-01-15 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:37:05 [end_date_ymd] => 2025-01-15 12:37:05 [RateCDR] => 1 ) [2025-01-15 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:37:05' and `end` < '2025-01-15 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:37:22] Production.INFO: count ==5060 [2025-01-15 12:37:24] Production.ERROR: pbx CDR StartTime 2025-01-15 09:37:05 - End Time 2025-01-15 12:37:05 [2025-01-15 12:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253664', 'tblTempUsageDetail_20' ) start [2025-01-15 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253664', 'tblTempUsageDetail_20' ) end [2025-01-15 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253664', 'tblTempVendorCDR_20' ) start [2025-01-15 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253664', 'tblTempVendorCDR_20' ) end [2025-01-15 12:37:24] Production.INFO: ProcessCDR(1,14253664,1,1,2) [2025-01-15 12:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253664', 'tblTempUsageDetail_20' ) start [2025-01-15 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253664', 'tblTempUsageDetail_20' ) end [2025-01-15 12:37:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:37:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:37:29] Production.INFO: ==13851== Releasing lock... [2025-01-15 12:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:37:29] Production.INFO: 66 MB #Memory Used# [2025-01-15 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:38:05 [end_date_ymd] => 2025-01-15 12:38:05 [RateCDR] => 1 ) [2025-01-15 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:38:05' and `end` < '2025-01-15 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:38:20] Production.INFO: count ==5076 [2025-01-15 12:38:22] Production.ERROR: pbx CDR StartTime 2025-01-15 09:38:05 - End Time 2025-01-15 12:38:05 [2025-01-15 12:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253669', 'tblTempUsageDetail_20' ) start [2025-01-15 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253669', 'tblTempUsageDetail_20' ) end [2025-01-15 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253669', 'tblTempVendorCDR_20' ) start [2025-01-15 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253669', 'tblTempVendorCDR_20' ) end [2025-01-15 12:38:23] Production.INFO: ProcessCDR(1,14253669,1,1,2) [2025-01-15 12:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253669', 'tblTempUsageDetail_20' ) start [2025-01-15 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253669', 'tblTempUsageDetail_20' ) end [2025-01-15 12:38:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:38:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:38:28] Production.INFO: ==13922== Releasing lock... [2025-01-15 12:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:38:28] Production.INFO: 66 MB #Memory Used# [2025-01-15 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:39:05 [end_date_ymd] => 2025-01-15 12:39:05 [RateCDR] => 1 ) [2025-01-15 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:39:05' and `end` < '2025-01-15 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:39:26] Production.INFO: count ==5076 [2025-01-15 12:39:28] Production.ERROR: pbx CDR StartTime 2025-01-15 09:39:05 - End Time 2025-01-15 12:39:05 [2025-01-15 12:39:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253674', 'tblTempUsageDetail_20' ) start [2025-01-15 12:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253674', 'tblTempUsageDetail_20' ) end [2025-01-15 12:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253674', 'tblTempVendorCDR_20' ) start [2025-01-15 12:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253674', 'tblTempVendorCDR_20' ) end [2025-01-15 12:39:28] Production.INFO: ProcessCDR(1,14253674,1,1,2) [2025-01-15 12:39:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:39:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:39:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:39:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253674', 'tblTempUsageDetail_20' ) start [2025-01-15 12:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253674', 'tblTempUsageDetail_20' ) end [2025-01-15 12:39:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:39:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:39:33] Production.INFO: ==13993== Releasing lock... [2025-01-15 12:39:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:39:33] Production.INFO: 66 MB #Memory Used# [2025-01-15 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:40:05 [end_date_ymd] => 2025-01-15 12:40:05 [RateCDR] => 1 ) [2025-01-15 12:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:40:05' and `end` < '2025-01-15 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:40:28] Production.INFO: count ==5084 [2025-01-15 12:40:30] Production.ERROR: pbx CDR StartTime 2025-01-15 09:40:05 - End Time 2025-01-15 12:40:05 [2025-01-15 12:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253680', 'tblTempUsageDetail_20' ) start [2025-01-15 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253680', 'tblTempUsageDetail_20' ) end [2025-01-15 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253680', 'tblTempVendorCDR_20' ) start [2025-01-15 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253680', 'tblTempVendorCDR_20' ) end [2025-01-15 12:40:30] Production.INFO: ProcessCDR(1,14253680,1,1,2) [2025-01-15 12:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:40:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253680', 'tblTempUsageDetail_20' ) start [2025-01-15 12:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253680', 'tblTempUsageDetail_20' ) end [2025-01-15 12:40:35] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:40:35] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:40:35] Production.INFO: ==14066== Releasing lock... [2025-01-15 12:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:40:35] Production.INFO: 66 MB #Memory Used# [2025-01-15 12:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:41:04 [end_date_ymd] => 2025-01-15 12:41:04 [RateCDR] => 1 ) [2025-01-15 12:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:41:04' and `end` < '2025-01-15 12:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:41:23] Production.INFO: count ==5064 [2025-01-15 12:41:25] Production.ERROR: pbx CDR StartTime 2025-01-15 09:41:04 - End Time 2025-01-15 12:41:04 [2025-01-15 12:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253685', 'tblTempUsageDetail_20' ) start [2025-01-15 12:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253685', 'tblTempUsageDetail_20' ) end [2025-01-15 12:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253685', 'tblTempVendorCDR_20' ) start [2025-01-15 12:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253685', 'tblTempVendorCDR_20' ) end [2025-01-15 12:41:25] Production.INFO: ProcessCDR(1,14253685,1,1,2) [2025-01-15 12:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253685', 'tblTempUsageDetail_20' ) start [2025-01-15 12:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253685', 'tblTempUsageDetail_20' ) end [2025-01-15 12:41:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:41:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:41:30] Production.INFO: ==14139== Releasing lock... [2025-01-15 12:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:41:30] Production.INFO: 66 MB #Memory Used# [2025-01-15 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:42:05 [end_date_ymd] => 2025-01-15 12:42:05 [RateCDR] => 1 ) [2025-01-15 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:42:05' and `end` < '2025-01-15 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:42:26] Production.INFO: count ==5069 [2025-01-15 12:42:29] Production.ERROR: pbx CDR StartTime 2025-01-15 09:42:05 - End Time 2025-01-15 12:42:05 [2025-01-15 12:42:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253690', 'tblTempUsageDetail_20' ) start [2025-01-15 12:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253690', 'tblTempUsageDetail_20' ) end [2025-01-15 12:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253690', 'tblTempVendorCDR_20' ) start [2025-01-15 12:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253690', 'tblTempVendorCDR_20' ) end [2025-01-15 12:42:29] Production.INFO: ProcessCDR(1,14253690,1,1,2) [2025-01-15 12:42:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:42:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:42:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:42:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253690', 'tblTempUsageDetail_20' ) start [2025-01-15 12:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253690', 'tblTempUsageDetail_20' ) end [2025-01-15 12:42:34] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:42:34] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:42:34] Production.INFO: ==14211== Releasing lock... [2025-01-15 12:42:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:42:34] Production.INFO: 66 MB #Memory Used# [2025-01-15 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:43:05 [end_date_ymd] => 2025-01-15 12:43:05 [RateCDR] => 1 ) [2025-01-15 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:43:05' and `end` < '2025-01-15 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:43:21] Production.INFO: count ==5046 [2025-01-15 12:43:23] Production.ERROR: pbx CDR StartTime 2025-01-15 09:43:05 - End Time 2025-01-15 12:43:05 [2025-01-15 12:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253695', 'tblTempUsageDetail_20' ) start [2025-01-15 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253695', 'tblTempUsageDetail_20' ) end [2025-01-15 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253695', 'tblTempVendorCDR_20' ) start [2025-01-15 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253695', 'tblTempVendorCDR_20' ) end [2025-01-15 12:43:23] Production.INFO: ProcessCDR(1,14253695,1,1,2) [2025-01-15 12:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253695', 'tblTempUsageDetail_20' ) start [2025-01-15 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253695', 'tblTempUsageDetail_20' ) end [2025-01-15 12:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:43:28] Production.INFO: ==14320== Releasing lock... [2025-01-15 12:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:43:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:44:05 [end_date_ymd] => 2025-01-15 12:44:05 [RateCDR] => 1 ) [2025-01-15 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:44:05' and `end` < '2025-01-15 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:44:24] Production.INFO: count ==5069 [2025-01-15 12:44:26] Production.ERROR: pbx CDR StartTime 2025-01-15 09:44:05 - End Time 2025-01-15 12:44:05 [2025-01-15 12:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253700', 'tblTempUsageDetail_20' ) start [2025-01-15 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253700', 'tblTempUsageDetail_20' ) end [2025-01-15 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253700', 'tblTempVendorCDR_20' ) start [2025-01-15 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253700', 'tblTempVendorCDR_20' ) end [2025-01-15 12:44:26] Production.INFO: ProcessCDR(1,14253700,1,1,2) [2025-01-15 12:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253700', 'tblTempUsageDetail_20' ) start [2025-01-15 12:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253700', 'tblTempUsageDetail_20' ) end [2025-01-15 12:44:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:44:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:44:31] Production.INFO: ==14390== Releasing lock... [2025-01-15 12:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:44:31] Production.INFO: 66 MB #Memory Used# [2025-01-15 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:45:05 [end_date_ymd] => 2025-01-15 12:45:05 [RateCDR] => 1 ) [2025-01-15 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:45:05' and `end` < '2025-01-15 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:45:18] Production.INFO: count ==5063 [2025-01-15 12:45:20] Production.ERROR: pbx CDR StartTime 2025-01-15 09:45:05 - End Time 2025-01-15 12:45:05 [2025-01-15 12:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253705', 'tblTempUsageDetail_20' ) start [2025-01-15 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253705', 'tblTempUsageDetail_20' ) end [2025-01-15 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253705', 'tblTempVendorCDR_20' ) start [2025-01-15 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253705', 'tblTempVendorCDR_20' ) end [2025-01-15 12:45:20] Production.INFO: ProcessCDR(1,14253705,1,1,2) [2025-01-15 12:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253705', 'tblTempUsageDetail_20' ) start [2025-01-15 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253705', 'tblTempUsageDetail_20' ) end [2025-01-15 12:45:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:45:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:45:25] Production.INFO: ==14461== Releasing lock... [2025-01-15 12:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:45:25] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:46:05 [end_date_ymd] => 2025-01-15 12:46:05 [RateCDR] => 1 ) [2025-01-15 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:46:05' and `end` < '2025-01-15 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:46:23] Production.INFO: count ==5062 [2025-01-15 12:46:25] Production.ERROR: pbx CDR StartTime 2025-01-15 09:46:05 - End Time 2025-01-15 12:46:05 [2025-01-15 12:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253706', 'tblTempUsageDetail_20' ) start [2025-01-15 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253706', 'tblTempUsageDetail_20' ) end [2025-01-15 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253706', 'tblTempVendorCDR_20' ) start [2025-01-15 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253706', 'tblTempVendorCDR_20' ) end [2025-01-15 12:46:26] Production.INFO: ProcessCDR(1,14253706,1,1,2) [2025-01-15 12:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253706', 'tblTempUsageDetail_20' ) start [2025-01-15 12:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253706', 'tblTempUsageDetail_20' ) end [2025-01-15 12:46:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:46:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:46:30] Production.INFO: ==14531== Releasing lock... [2025-01-15 12:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:46:30] Production.INFO: 66 MB #Memory Used# [2025-01-15 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:47:05 [end_date_ymd] => 2025-01-15 12:47:05 [RateCDR] => 1 ) [2025-01-15 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:47:05' and `end` < '2025-01-15 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:47:21] Production.INFO: count ==5043 [2025-01-15 12:47:23] Production.ERROR: pbx CDR StartTime 2025-01-15 09:47:05 - End Time 2025-01-15 12:47:05 [2025-01-15 12:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253715', 'tblTempUsageDetail_20' ) start [2025-01-15 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253715', 'tblTempUsageDetail_20' ) end [2025-01-15 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253715', 'tblTempVendorCDR_20' ) start [2025-01-15 12:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253715', 'tblTempVendorCDR_20' ) end [2025-01-15 12:47:24] Production.INFO: ProcessCDR(1,14253715,1,1,2) [2025-01-15 12:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253715', 'tblTempUsageDetail_20' ) start [2025-01-15 12:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253715', 'tblTempUsageDetail_20' ) end [2025-01-15 12:47:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:47:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:47:28] Production.INFO: ==14602== Releasing lock... [2025-01-15 12:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:47:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:48:05 [end_date_ymd] => 2025-01-15 12:48:05 [RateCDR] => 1 ) [2025-01-15 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:48:05' and `end` < '2025-01-15 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:48:21] Production.INFO: count ==5063 [2025-01-15 12:48:23] Production.ERROR: pbx CDR StartTime 2025-01-15 09:48:05 - End Time 2025-01-15 12:48:05 [2025-01-15 12:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253720', 'tblTempUsageDetail_20' ) start [2025-01-15 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253720', 'tblTempUsageDetail_20' ) end [2025-01-15 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253720', 'tblTempVendorCDR_20' ) start [2025-01-15 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253720', 'tblTempVendorCDR_20' ) end [2025-01-15 12:48:24] Production.INFO: ProcessCDR(1,14253720,1,1,2) [2025-01-15 12:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253720', 'tblTempUsageDetail_20' ) start [2025-01-15 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253720', 'tblTempUsageDetail_20' ) end [2025-01-15 12:48:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:48:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:48:29] Production.INFO: ==14673== Releasing lock... [2025-01-15 12:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:48:29] Production.INFO: 66 MB #Memory Used# [2025-01-15 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:49:05 [end_date_ymd] => 2025-01-15 12:49:05 [RateCDR] => 1 ) [2025-01-15 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:49:05' and `end` < '2025-01-15 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:49:21] Production.INFO: count ==5050 [2025-01-15 12:49:23] Production.ERROR: pbx CDR StartTime 2025-01-15 09:49:05 - End Time 2025-01-15 12:49:05 [2025-01-15 12:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253725', 'tblTempUsageDetail_20' ) start [2025-01-15 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253725', 'tblTempUsageDetail_20' ) end [2025-01-15 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253725', 'tblTempVendorCDR_20' ) start [2025-01-15 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253725', 'tblTempVendorCDR_20' ) end [2025-01-15 12:49:23] Production.INFO: ProcessCDR(1,14253725,1,1,2) [2025-01-15 12:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253725', 'tblTempUsageDetail_20' ) start [2025-01-15 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253725', 'tblTempUsageDetail_20' ) end [2025-01-15 12:49:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:49:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:49:28] Production.INFO: ==14746== Releasing lock... [2025-01-15 12:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:49:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:50:06 [end_date_ymd] => 2025-01-15 12:50:06 [RateCDR] => 1 ) [2025-01-15 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:50:06' and `end` < '2025-01-15 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:50:21] Production.INFO: count ==5066 [2025-01-15 12:50:23] Production.ERROR: pbx CDR StartTime 2025-01-15 09:50:06 - End Time 2025-01-15 12:50:06 [2025-01-15 12:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253731', 'tblTempUsageDetail_20' ) start [2025-01-15 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253731', 'tblTempUsageDetail_20' ) end [2025-01-15 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253731', 'tblTempVendorCDR_20' ) start [2025-01-15 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253731', 'tblTempVendorCDR_20' ) end [2025-01-15 12:50:23] Production.INFO: ProcessCDR(1,14253731,1,1,2) [2025-01-15 12:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253731', 'tblTempUsageDetail_20' ) start [2025-01-15 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253731', 'tblTempUsageDetail_20' ) end [2025-01-15 12:50:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:50:28] Production.INFO: ==14820== Releasing lock... [2025-01-15 12:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:50:28] Production.INFO: 66 MB #Memory Used# [2025-01-15 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:51:04 [end_date_ymd] => 2025-01-15 12:51:04 [RateCDR] => 1 ) [2025-01-15 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:51:04' and `end` < '2025-01-15 12:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:51:23] Production.INFO: count ==5118 [2025-01-15 12:51:25] Production.ERROR: pbx CDR StartTime 2025-01-15 09:51:04 - End Time 2025-01-15 12:51:04 [2025-01-15 12:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253736', 'tblTempUsageDetail_20' ) start [2025-01-15 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253736', 'tblTempUsageDetail_20' ) end [2025-01-15 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253736', 'tblTempVendorCDR_20' ) start [2025-01-15 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253736', 'tblTempVendorCDR_20' ) end [2025-01-15 12:51:25] Production.INFO: ProcessCDR(1,14253736,1,1,2) [2025-01-15 12:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253736', 'tblTempUsageDetail_20' ) start [2025-01-15 12:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253736', 'tblTempUsageDetail_20' ) end [2025-01-15 12:51:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:51:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:51:29] Production.INFO: ==14894== Releasing lock... [2025-01-15 12:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:51:29] Production.INFO: 66.25 MB #Memory Used# [2025-01-15 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:52:05 [end_date_ymd] => 2025-01-15 12:52:05 [RateCDR] => 1 ) [2025-01-15 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:52:05' and `end` < '2025-01-15 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:52:24] Production.INFO: count ==5125 [2025-01-15 12:52:26] Production.ERROR: pbx CDR StartTime 2025-01-15 09:52:05 - End Time 2025-01-15 12:52:05 [2025-01-15 12:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253741', 'tblTempUsageDetail_20' ) start [2025-01-15 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253741', 'tblTempUsageDetail_20' ) end [2025-01-15 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253741', 'tblTempVendorCDR_20' ) start [2025-01-15 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253741', 'tblTempVendorCDR_20' ) end [2025-01-15 12:52:26] Production.INFO: ProcessCDR(1,14253741,1,1,2) [2025-01-15 12:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253741', 'tblTempUsageDetail_20' ) start [2025-01-15 12:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253741', 'tblTempUsageDetail_20' ) end [2025-01-15 12:52:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:52:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:52:32] Production.INFO: ==14964== Releasing lock... [2025-01-15 12:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:52:32] Production.INFO: 66.25 MB #Memory Used# [2025-01-15 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:53:05 [end_date_ymd] => 2025-01-15 12:53:05 [RateCDR] => 1 ) [2025-01-15 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:53:05' and `end` < '2025-01-15 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:53:23] Production.INFO: count ==5133 [2025-01-15 12:53:25] Production.ERROR: pbx CDR StartTime 2025-01-15 09:53:05 - End Time 2025-01-15 12:53:05 [2025-01-15 12:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253746', 'tblTempUsageDetail_20' ) start [2025-01-15 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253746', 'tblTempUsageDetail_20' ) end [2025-01-15 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253746', 'tblTempVendorCDR_20' ) start [2025-01-15 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253746', 'tblTempVendorCDR_20' ) end [2025-01-15 12:53:25] Production.INFO: ProcessCDR(1,14253746,1,1,2) [2025-01-15 12:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253746', 'tblTempUsageDetail_20' ) start [2025-01-15 12:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253746', 'tblTempUsageDetail_20' ) end [2025-01-15 12:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:53:30] Production.INFO: ==15035== Releasing lock... [2025-01-15 12:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:53:30] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 12:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:54:04 [end_date_ymd] => 2025-01-15 12:54:04 [RateCDR] => 1 ) [2025-01-15 12:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:54:04' and `end` < '2025-01-15 12:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:54:26] Production.INFO: count ==5156 [2025-01-15 12:54:28] Production.ERROR: pbx CDR StartTime 2025-01-15 09:54:04 - End Time 2025-01-15 12:54:04 [2025-01-15 12:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253751', 'tblTempUsageDetail_20' ) start [2025-01-15 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253751', 'tblTempUsageDetail_20' ) end [2025-01-15 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253751', 'tblTempVendorCDR_20' ) start [2025-01-15 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253751', 'tblTempVendorCDR_20' ) end [2025-01-15 12:54:28] Production.INFO: ProcessCDR(1,14253751,1,1,2) [2025-01-15 12:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253751', 'tblTempUsageDetail_20' ) start [2025-01-15 12:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253751', 'tblTempUsageDetail_20' ) end [2025-01-15 12:54:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:54:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:54:33] Production.INFO: ==15120== Releasing lock... [2025-01-15 12:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:54:33] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:55:05 [end_date_ymd] => 2025-01-15 12:55:05 [RateCDR] => 1 ) [2025-01-15 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:55:05' and `end` < '2025-01-15 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:55:31] Production.INFO: count ==5154 [2025-01-15 12:55:33] Production.ERROR: pbx CDR StartTime 2025-01-15 09:55:05 - End Time 2025-01-15 12:55:05 [2025-01-15 12:55:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253756', 'tblTempUsageDetail_20' ) start [2025-01-15 12:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253756', 'tblTempUsageDetail_20' ) end [2025-01-15 12:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253756', 'tblTempVendorCDR_20' ) start [2025-01-15 12:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253756', 'tblTempVendorCDR_20' ) end [2025-01-15 12:55:33] Production.INFO: ProcessCDR(1,14253756,1,1,2) [2025-01-15 12:55:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:55:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:55:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:55:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253756', 'tblTempUsageDetail_20' ) start [2025-01-15 12:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253756', 'tblTempUsageDetail_20' ) end [2025-01-15 12:55:38] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:55:38] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:55:38] Production.INFO: ==15194== Releasing lock... [2025-01-15 12:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:55:38] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 12:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:56:04 [end_date_ymd] => 2025-01-15 12:56:04 [RateCDR] => 1 ) [2025-01-15 12:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:56:04' and `end` < '2025-01-15 12:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:56:27] Production.INFO: count ==5157 [2025-01-15 12:56:29] Production.ERROR: pbx CDR StartTime 2025-01-15 09:56:04 - End Time 2025-01-15 12:56:04 [2025-01-15 12:56:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253761', 'tblTempUsageDetail_20' ) start [2025-01-15 12:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253761', 'tblTempUsageDetail_20' ) end [2025-01-15 12:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253761', 'tblTempVendorCDR_20' ) start [2025-01-15 12:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253761', 'tblTempVendorCDR_20' ) end [2025-01-15 12:56:29] Production.INFO: ProcessCDR(1,14253761,1,1,2) [2025-01-15 12:56:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:56:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:56:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:56:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253761', 'tblTempUsageDetail_20' ) start [2025-01-15 12:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253761', 'tblTempUsageDetail_20' ) end [2025-01-15 12:56:34] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:56:34] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:56:34] Production.INFO: ==15266== Releasing lock... [2025-01-15 12:56:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:56:34] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:57:05 [end_date_ymd] => 2025-01-15 12:57:05 [RateCDR] => 1 ) [2025-01-15 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:57:05' and `end` < '2025-01-15 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:57:26] Production.INFO: count ==5156 [2025-01-15 12:57:28] Production.ERROR: pbx CDR StartTime 2025-01-15 09:57:05 - End Time 2025-01-15 12:57:05 [2025-01-15 12:57:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253766', 'tblTempUsageDetail_20' ) start [2025-01-15 12:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253766', 'tblTempUsageDetail_20' ) end [2025-01-15 12:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253766', 'tblTempVendorCDR_20' ) start [2025-01-15 12:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253766', 'tblTempVendorCDR_20' ) end [2025-01-15 12:57:28] Production.INFO: ProcessCDR(1,14253766,1,1,2) [2025-01-15 12:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:57:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:57:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:57:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253766', 'tblTempUsageDetail_20' ) start [2025-01-15 12:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253766', 'tblTempUsageDetail_20' ) end [2025-01-15 12:57:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:57:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:57:33] Production.INFO: ==15337== Releasing lock... [2025-01-15 12:57:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:57:33] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 12:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:58:04 [end_date_ymd] => 2025-01-15 12:58:04 [RateCDR] => 1 ) [2025-01-15 12:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:58:04' and `end` < '2025-01-15 12:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:58:17] Production.INFO: count ==5155 [2025-01-15 12:58:19] Production.ERROR: pbx CDR StartTime 2025-01-15 09:58:04 - End Time 2025-01-15 12:58:04 [2025-01-15 12:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253771', 'tblTempUsageDetail_20' ) start [2025-01-15 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253771', 'tblTempUsageDetail_20' ) end [2025-01-15 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253771', 'tblTempVendorCDR_20' ) start [2025-01-15 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253771', 'tblTempVendorCDR_20' ) end [2025-01-15 12:58:20] Production.INFO: ProcessCDR(1,14253771,1,1,2) [2025-01-15 12:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253771', 'tblTempUsageDetail_20' ) start [2025-01-15 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253771', 'tblTempUsageDetail_20' ) end [2025-01-15 12:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:58:25] Production.INFO: ==15408== Releasing lock... [2025-01-15 12:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:58:25] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 09:59:05 [end_date_ymd] => 2025-01-15 12:59:05 [RateCDR] => 1 ) [2025-01-15 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 09:59:05' and `end` < '2025-01-15 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 12:59:18] Production.INFO: count ==5125 [2025-01-15 12:59:20] Production.ERROR: pbx CDR StartTime 2025-01-15 09:59:05 - End Time 2025-01-15 12:59:05 [2025-01-15 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253776', 'tblTempUsageDetail_20' ) start [2025-01-15 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253776', 'tblTempUsageDetail_20' ) end [2025-01-15 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253776', 'tblTempVendorCDR_20' ) start [2025-01-15 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253776', 'tblTempVendorCDR_20' ) end [2025-01-15 12:59:20] Production.INFO: ProcessCDR(1,14253776,1,1,2) [2025-01-15 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253776', 'tblTempUsageDetail_20' ) start [2025-01-15 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253776', 'tblTempUsageDetail_20' ) end [2025-01-15 12:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 12:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 12:59:25] Production.INFO: ==15517== Releasing lock... [2025-01-15 12:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 12:59:25] Production.INFO: 66.25 MB #Memory Used# [2025-01-15 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:00:06 [end_date_ymd] => 2025-01-15 13:00:06 [RateCDR] => 1 ) [2025-01-15 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:00:06' and `end` < '2025-01-15 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:00:24] Production.INFO: count ==5111 [2025-01-15 13:00:26] Production.ERROR: pbx CDR StartTime 2025-01-15 10:00:06 - End Time 2025-01-15 13:00:06 [2025-01-15 13:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253781', 'tblTempUsageDetail_20' ) start [2025-01-15 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253781', 'tblTempUsageDetail_20' ) end [2025-01-15 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253781', 'tblTempVendorCDR_20' ) start [2025-01-15 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253781', 'tblTempVendorCDR_20' ) end [2025-01-15 13:00:27] Production.INFO: ProcessCDR(1,14253781,1,1,2) [2025-01-15 13:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253781', 'tblTempUsageDetail_20' ) start [2025-01-15 13:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253781', 'tblTempUsageDetail_20' ) end [2025-01-15 13:00:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:00:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:00:32] Production.INFO: ==15589== Releasing lock... [2025-01-15 13:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:00:32] Production.INFO: 66.25 MB #Memory Used# [2025-01-15 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:01:05 [end_date_ymd] => 2025-01-15 13:01:05 [RateCDR] => 1 ) [2025-01-15 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:01:05' and `end` < '2025-01-15 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:01:29] Production.INFO: count ==5141 [2025-01-15 13:01:31] Production.ERROR: pbx CDR StartTime 2025-01-15 10:01:05 - End Time 2025-01-15 13:01:05 [2025-01-15 13:01:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253787', 'tblTempUsageDetail_20' ) start [2025-01-15 13:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253787', 'tblTempUsageDetail_20' ) end [2025-01-15 13:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253787', 'tblTempVendorCDR_20' ) start [2025-01-15 13:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253787', 'tblTempVendorCDR_20' ) end [2025-01-15 13:01:32] Production.INFO: ProcessCDR(1,14253787,1,1,2) [2025-01-15 13:01:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:01:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:01:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:01:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253787', 'tblTempUsageDetail_20' ) start [2025-01-15 13:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253787', 'tblTempUsageDetail_20' ) end [2025-01-15 13:01:36] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:01:36] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:01:36] Production.INFO: ==15678== Releasing lock... [2025-01-15 13:01:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:01:36] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:02:05 [end_date_ymd] => 2025-01-15 13:02:05 [RateCDR] => 1 ) [2025-01-15 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:02:05' and `end` < '2025-01-15 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:02:34] Production.INFO: count ==5140 [2025-01-15 13:02:36] Production.ERROR: pbx CDR StartTime 2025-01-15 10:02:05 - End Time 2025-01-15 13:02:05 [2025-01-15 13:02:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253792', 'tblTempUsageDetail_20' ) start [2025-01-15 13:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253792', 'tblTempUsageDetail_20' ) end [2025-01-15 13:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253792', 'tblTempVendorCDR_20' ) start [2025-01-15 13:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253792', 'tblTempVendorCDR_20' ) end [2025-01-15 13:02:36] Production.INFO: ProcessCDR(1,14253792,1,1,2) [2025-01-15 13:02:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:02:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:02:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:02:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253792', 'tblTempUsageDetail_20' ) start [2025-01-15 13:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253792', 'tblTempUsageDetail_20' ) end [2025-01-15 13:02:41] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:02:41] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:02:41] Production.INFO: ==15748== Releasing lock... [2025-01-15 13:02:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:02:41] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 13:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:03:04 [end_date_ymd] => 2025-01-15 13:03:04 [RateCDR] => 1 ) [2025-01-15 13:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:03:04' and `end` < '2025-01-15 13:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:03:25] Production.INFO: count ==5136 [2025-01-15 13:03:27] Production.ERROR: pbx CDR StartTime 2025-01-15 10:03:04 - End Time 2025-01-15 13:03:04 [2025-01-15 13:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253797', 'tblTempUsageDetail_20' ) start [2025-01-15 13:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253797', 'tblTempUsageDetail_20' ) end [2025-01-15 13:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253797', 'tblTempVendorCDR_20' ) start [2025-01-15 13:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253797', 'tblTempVendorCDR_20' ) end [2025-01-15 13:03:28] Production.INFO: ProcessCDR(1,14253797,1,1,2) [2025-01-15 13:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253797', 'tblTempUsageDetail_20' ) start [2025-01-15 13:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253797', 'tblTempUsageDetail_20' ) end [2025-01-15 13:03:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:03:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:03:32] Production.INFO: ==15819== Releasing lock... [2025-01-15 13:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:03:32] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:04:05 [end_date_ymd] => 2025-01-15 13:04:05 [RateCDR] => 1 ) [2025-01-15 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:04:05' and `end` < '2025-01-15 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:04:23] Production.INFO: count ==5152 [2025-01-15 13:04:25] Production.ERROR: pbx CDR StartTime 2025-01-15 10:04:05 - End Time 2025-01-15 13:04:05 [2025-01-15 13:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253802', 'tblTempUsageDetail_20' ) start [2025-01-15 13:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253802', 'tblTempUsageDetail_20' ) end [2025-01-15 13:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253802', 'tblTempVendorCDR_20' ) start [2025-01-15 13:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253802', 'tblTempVendorCDR_20' ) end [2025-01-15 13:04:25] Production.INFO: ProcessCDR(1,14253802,1,1,2) [2025-01-15 13:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253802', 'tblTempUsageDetail_20' ) start [2025-01-15 13:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253802', 'tblTempUsageDetail_20' ) end [2025-01-15 13:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:04:30] Production.INFO: ==15890== Releasing lock... [2025-01-15 13:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:04:30] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:05:05 [end_date_ymd] => 2025-01-15 13:05:05 [RateCDR] => 1 ) [2025-01-15 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:05:05' and `end` < '2025-01-15 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:05:18] Production.INFO: count ==5169 [2025-01-15 13:05:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:05:05 - End Time 2025-01-15 13:05:05 [2025-01-15 13:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253807', 'tblTempUsageDetail_20' ) start [2025-01-15 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253807', 'tblTempUsageDetail_20' ) end [2025-01-15 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253807', 'tblTempVendorCDR_20' ) start [2025-01-15 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253807', 'tblTempVendorCDR_20' ) end [2025-01-15 13:05:20] Production.INFO: ProcessCDR(1,14253807,1,1,2) [2025-01-15 13:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253807', 'tblTempUsageDetail_20' ) start [2025-01-15 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253807', 'tblTempUsageDetail_20' ) end [2025-01-15 13:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:05:24] Production.INFO: ==15962== Releasing lock... [2025-01-15 13:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:05:24] Production.INFO: 66.75 MB #Memory Used# [2025-01-15 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:06:05 [end_date_ymd] => 2025-01-15 13:06:05 [RateCDR] => 1 ) [2025-01-15 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:06:05' and `end` < '2025-01-15 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:06:18] Production.INFO: count ==5175 [2025-01-15 13:06:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:06:05 - End Time 2025-01-15 13:06:05 [2025-01-15 13:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253812', 'tblTempUsageDetail_20' ) start [2025-01-15 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253812', 'tblTempUsageDetail_20' ) end [2025-01-15 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253812', 'tblTempVendorCDR_20' ) start [2025-01-15 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253812', 'tblTempVendorCDR_20' ) end [2025-01-15 13:06:20] Production.INFO: ProcessCDR(1,14253812,1,1,2) [2025-01-15 13:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253812', 'tblTempUsageDetail_20' ) start [2025-01-15 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253812', 'tblTempUsageDetail_20' ) end [2025-01-15 13:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:06:25] Production.INFO: ==16033== Releasing lock... [2025-01-15 13:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:06:25] Production.INFO: 66.75 MB #Memory Used# [2025-01-15 13:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:07:04 [end_date_ymd] => 2025-01-15 13:07:04 [RateCDR] => 1 ) [2025-01-15 13:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:07:04' and `end` < '2025-01-15 13:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:07:18] Production.INFO: count ==5191 [2025-01-15 13:07:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:07:04 - End Time 2025-01-15 13:07:04 [2025-01-15 13:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253817', 'tblTempUsageDetail_20' ) start [2025-01-15 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253817', 'tblTempUsageDetail_20' ) end [2025-01-15 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253817', 'tblTempVendorCDR_20' ) start [2025-01-15 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253817', 'tblTempVendorCDR_20' ) end [2025-01-15 13:07:21] Production.INFO: ProcessCDR(1,14253817,1,1,2) [2025-01-15 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253817', 'tblTempUsageDetail_20' ) start [2025-01-15 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253817', 'tblTempUsageDetail_20' ) end [2025-01-15 13:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:07:25] Production.INFO: ==16105== Releasing lock... [2025-01-15 13:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:07:25] Production.INFO: 66.75 MB #Memory Used# [2025-01-15 13:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:08:04 [end_date_ymd] => 2025-01-15 13:08:04 [RateCDR] => 1 ) [2025-01-15 13:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:08:04' and `end` < '2025-01-15 13:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:08:18] Production.INFO: count ==5180 [2025-01-15 13:08:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:08:04 - End Time 2025-01-15 13:08:04 [2025-01-15 13:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253820', 'tblTempUsageDetail_20' ) start [2025-01-15 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253820', 'tblTempUsageDetail_20' ) end [2025-01-15 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253820', 'tblTempVendorCDR_20' ) start [2025-01-15 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253820', 'tblTempVendorCDR_20' ) end [2025-01-15 13:08:20] Production.INFO: ProcessCDR(1,14253820,1,1,2) [2025-01-15 13:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253820', 'tblTempUsageDetail_20' ) start [2025-01-15 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253820', 'tblTempUsageDetail_20' ) end [2025-01-15 13:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:08:25] Production.INFO: ==16179== Releasing lock... [2025-01-15 13:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:08:25] Production.INFO: 66.75 MB #Memory Used# [2025-01-15 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:09:05 [end_date_ymd] => 2025-01-15 13:09:05 [RateCDR] => 1 ) [2025-01-15 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:09:05' and `end` < '2025-01-15 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:09:18] Production.INFO: count ==5168 [2025-01-15 13:09:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:09:05 - End Time 2025-01-15 13:09:05 [2025-01-15 13:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253827', 'tblTempUsageDetail_20' ) start [2025-01-15 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253827', 'tblTempUsageDetail_20' ) end [2025-01-15 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253827', 'tblTempVendorCDR_20' ) start [2025-01-15 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253827', 'tblTempVendorCDR_20' ) end [2025-01-15 13:09:20] Production.INFO: ProcessCDR(1,14253827,1,1,2) [2025-01-15 13:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253827', 'tblTempUsageDetail_20' ) start [2025-01-15 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253827', 'tblTempUsageDetail_20' ) end [2025-01-15 13:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:09:25] Production.INFO: ==16249== Releasing lock... [2025-01-15 13:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:09:25] Production.INFO: 66.75 MB #Memory Used# [2025-01-15 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:10:05 [end_date_ymd] => 2025-01-15 13:10:05 [RateCDR] => 1 ) [2025-01-15 13:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:10:05' and `end` < '2025-01-15 13:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:10:18] Production.INFO: count ==5159 [2025-01-15 13:10:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:10:05 - End Time 2025-01-15 13:10:05 [2025-01-15 13:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253833', 'tblTempUsageDetail_20' ) start [2025-01-15 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253833', 'tblTempUsageDetail_20' ) end [2025-01-15 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253833', 'tblTempVendorCDR_20' ) start [2025-01-15 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253833', 'tblTempVendorCDR_20' ) end [2025-01-15 13:10:20] Production.INFO: ProcessCDR(1,14253833,1,1,2) [2025-01-15 13:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253833', 'tblTempUsageDetail_20' ) start [2025-01-15 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253833', 'tblTempUsageDetail_20' ) end [2025-01-15 13:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:10:25] Production.INFO: ==16322== Releasing lock... [2025-01-15 13:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:10:25] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:11:05 [end_date_ymd] => 2025-01-15 13:11:05 [RateCDR] => 1 ) [2025-01-15 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:11:05' and `end` < '2025-01-15 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:11:19] Production.INFO: count ==5141 [2025-01-15 13:11:21] Production.ERROR: pbx CDR StartTime 2025-01-15 10:11:05 - End Time 2025-01-15 13:11:05 [2025-01-15 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253838', 'tblTempUsageDetail_20' ) start [2025-01-15 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253838', 'tblTempUsageDetail_20' ) end [2025-01-15 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253838', 'tblTempVendorCDR_20' ) start [2025-01-15 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253838', 'tblTempVendorCDR_20' ) end [2025-01-15 13:11:21] Production.INFO: ProcessCDR(1,14253838,1,1,2) [2025-01-15 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253838', 'tblTempUsageDetail_20' ) start [2025-01-15 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253838', 'tblTempUsageDetail_20' ) end [2025-01-15 13:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:11:24] Production.INFO: ==16395== Releasing lock... [2025-01-15 13:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:11:24] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:12:05 [end_date_ymd] => 2025-01-15 13:12:05 [RateCDR] => 1 ) [2025-01-15 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:12:05' and `end` < '2025-01-15 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:12:22] Production.INFO: count ==5135 [2025-01-15 13:12:24] Production.ERROR: pbx CDR StartTime 2025-01-15 10:12:05 - End Time 2025-01-15 13:12:05 [2025-01-15 13:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253843', 'tblTempUsageDetail_20' ) start [2025-01-15 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253843', 'tblTempUsageDetail_20' ) end [2025-01-15 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253843', 'tblTempVendorCDR_20' ) start [2025-01-15 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253843', 'tblTempVendorCDR_20' ) end [2025-01-15 13:12:24] Production.INFO: ProcessCDR(1,14253843,1,1,2) [2025-01-15 13:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253843', 'tblTempUsageDetail_20' ) start [2025-01-15 13:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253843', 'tblTempUsageDetail_20' ) end [2025-01-15 13:12:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:12:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:12:29] Production.INFO: ==16469== Releasing lock... [2025-01-15 13:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:12:29] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:13:05 [end_date_ymd] => 2025-01-15 13:13:05 [RateCDR] => 1 ) [2025-01-15 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:13:05' and `end` < '2025-01-15 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:13:21] Production.INFO: count ==5135 [2025-01-15 13:13:23] Production.ERROR: pbx CDR StartTime 2025-01-15 10:13:05 - End Time 2025-01-15 13:13:05 [2025-01-15 13:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253848', 'tblTempUsageDetail_20' ) start [2025-01-15 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253848', 'tblTempUsageDetail_20' ) end [2025-01-15 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253848', 'tblTempVendorCDR_20' ) start [2025-01-15 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253848', 'tblTempVendorCDR_20' ) end [2025-01-15 13:13:24] Production.INFO: ProcessCDR(1,14253848,1,1,2) [2025-01-15 13:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253848', 'tblTempUsageDetail_20' ) start [2025-01-15 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253848', 'tblTempUsageDetail_20' ) end [2025-01-15 13:13:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:13:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:13:28] Production.INFO: ==16541== Releasing lock... [2025-01-15 13:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:13:28] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:14:05 [end_date_ymd] => 2025-01-15 13:14:05 [RateCDR] => 1 ) [2025-01-15 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:14:05' and `end` < '2025-01-15 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:14:22] Production.INFO: count ==5141 [2025-01-15 13:14:24] Production.ERROR: pbx CDR StartTime 2025-01-15 10:14:05 - End Time 2025-01-15 13:14:05 [2025-01-15 13:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253853', 'tblTempUsageDetail_20' ) start [2025-01-15 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253853', 'tblTempUsageDetail_20' ) end [2025-01-15 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253853', 'tblTempVendorCDR_20' ) start [2025-01-15 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253853', 'tblTempVendorCDR_20' ) end [2025-01-15 13:14:24] Production.INFO: ProcessCDR(1,14253853,1,1,2) [2025-01-15 13:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253853', 'tblTempUsageDetail_20' ) start [2025-01-15 13:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253853', 'tblTempUsageDetail_20' ) end [2025-01-15 13:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:14:30] Production.INFO: ==16658== Releasing lock... [2025-01-15 13:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:14:30] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:15:05 [end_date_ymd] => 2025-01-15 13:15:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 10:15:05' and `end` < '2025-01-15 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-01-15 13:15:26] Production.INFO: count ==5145 [2025-01-15 13:15:28] Production.ERROR: pbx CDR StartTime 2025-01-15 10:15:05 - End Time 2025-01-15 13:15:05 [2025-01-15 13:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253858', 'tblTempUsageDetail_20' ) start [2025-01-15 13:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253858', 'tblTempUsageDetail_20' ) end [2025-01-15 13:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253858', 'tblTempVendorCDR_20' ) start [2025-01-15 13:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253858', 'tblTempVendorCDR_20' ) end [2025-01-15 13:15:28] Production.INFO: ProcessCDR(1,14253858,1,1,2) [2025-01-15 13:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:15:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:15:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253858', 'tblTempUsageDetail_20' ) start [2025-01-15 13:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253858', 'tblTempUsageDetail_20' ) end [2025-01-15 13:15:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:15:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:15:33] Production.INFO: ==16729== Releasing lock... [2025-01-15 13:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:15:33] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 13:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:16:04 [end_date_ymd] => 2025-01-15 13:16:04 [RateCDR] => 1 ) [2025-01-15 13:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:16:04' and `end` < '2025-01-15 13:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:16:30] Production.INFO: count ==5157 [2025-01-15 13:16:32] Production.ERROR: pbx CDR StartTime 2025-01-15 10:16:04 - End Time 2025-01-15 13:16:04 [2025-01-15 13:16:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253863', 'tblTempUsageDetail_20' ) start [2025-01-15 13:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253863', 'tblTempUsageDetail_20' ) end [2025-01-15 13:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253863', 'tblTempVendorCDR_20' ) start [2025-01-15 13:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253863', 'tblTempVendorCDR_20' ) end [2025-01-15 13:16:32] Production.INFO: ProcessCDR(1,14253863,1,1,2) [2025-01-15 13:16:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:16:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:16:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:16:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253863', 'tblTempUsageDetail_20' ) start [2025-01-15 13:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253863', 'tblTempUsageDetail_20' ) end [2025-01-15 13:16:37] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:16:37] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:16:37] Production.INFO: ==16799== Releasing lock... [2025-01-15 13:16:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:16:37] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:17:05 [end_date_ymd] => 2025-01-15 13:17:05 [RateCDR] => 1 ) [2025-01-15 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:17:05' and `end` < '2025-01-15 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:17:24] Production.INFO: count ==5178 [2025-01-15 13:17:26] Production.ERROR: pbx CDR StartTime 2025-01-15 10:17:05 - End Time 2025-01-15 13:17:05 [2025-01-15 13:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253868', 'tblTempUsageDetail_20' ) start [2025-01-15 13:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253868', 'tblTempUsageDetail_20' ) end [2025-01-15 13:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253868', 'tblTempVendorCDR_20' ) start [2025-01-15 13:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253868', 'tblTempVendorCDR_20' ) end [2025-01-15 13:17:26] Production.INFO: ProcessCDR(1,14253868,1,1,2) [2025-01-15 13:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253868', 'tblTempUsageDetail_20' ) start [2025-01-15 13:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253868', 'tblTempUsageDetail_20' ) end [2025-01-15 13:17:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:17:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:17:31] Production.INFO: ==16870== Releasing lock... [2025-01-15 13:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:17:31] Production.INFO: 66.75 MB #Memory Used# [2025-01-15 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:18:05 [end_date_ymd] => 2025-01-15 13:18:05 [RateCDR] => 1 ) [2025-01-15 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:18:05' and `end` < '2025-01-15 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:18:21] Production.INFO: count ==5140 [2025-01-15 13:18:23] Production.ERROR: pbx CDR StartTime 2025-01-15 10:18:05 - End Time 2025-01-15 13:18:05 [2025-01-15 13:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253873', 'tblTempUsageDetail_20' ) start [2025-01-15 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253873', 'tblTempUsageDetail_20' ) end [2025-01-15 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253873', 'tblTempVendorCDR_20' ) start [2025-01-15 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253873', 'tblTempVendorCDR_20' ) end [2025-01-15 13:18:23] Production.INFO: ProcessCDR(1,14253873,1,1,2) [2025-01-15 13:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253873', 'tblTempUsageDetail_20' ) start [2025-01-15 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253873', 'tblTempUsageDetail_20' ) end [2025-01-15 13:18:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:18:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:18:28] Production.INFO: ==16941== Releasing lock... [2025-01-15 13:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:18:28] Production.INFO: 66.5 MB #Memory Used# [2025-01-15 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:19:05 [end_date_ymd] => 2025-01-15 13:19:05 [RateCDR] => 1 ) [2025-01-15 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:19:05' and `end` < '2025-01-15 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:19:19] Production.INFO: count ==5125 [2025-01-15 13:19:21] Production.ERROR: pbx CDR StartTime 2025-01-15 10:19:05 - End Time 2025-01-15 13:19:05 [2025-01-15 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253878', 'tblTempUsageDetail_20' ) start [2025-01-15 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253878', 'tblTempUsageDetail_20' ) end [2025-01-15 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253878', 'tblTempVendorCDR_20' ) start [2025-01-15 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253878', 'tblTempVendorCDR_20' ) end [2025-01-15 13:19:21] Production.INFO: ProcessCDR(1,14253878,1,1,2) [2025-01-15 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253878', 'tblTempUsageDetail_20' ) start [2025-01-15 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253878', 'tblTempUsageDetail_20' ) end [2025-01-15 13:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:19:26] Production.INFO: ==17014== Releasing lock... [2025-01-15 13:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:19:26] Production.INFO: 66.25 MB #Memory Used# [2025-01-15 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:20:06 [end_date_ymd] => 2025-01-15 13:20:06 [RateCDR] => 1 ) [2025-01-15 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:20:06' and `end` < '2025-01-15 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:20:19] Production.INFO: count ==5115 [2025-01-15 13:20:21] Production.ERROR: pbx CDR StartTime 2025-01-15 10:20:06 - End Time 2025-01-15 13:20:06 [2025-01-15 13:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253884', 'tblTempUsageDetail_20' ) start [2025-01-15 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253884', 'tblTempUsageDetail_20' ) end [2025-01-15 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253884', 'tblTempVendorCDR_20' ) start [2025-01-15 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253884', 'tblTempVendorCDR_20' ) end [2025-01-15 13:20:22] Production.INFO: ProcessCDR(1,14253884,1,1,2) [2025-01-15 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253884', 'tblTempUsageDetail_20' ) start [2025-01-15 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253884', 'tblTempUsageDetail_20' ) end [2025-01-15 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:20:27] Production.INFO: ==17089== Releasing lock... [2025-01-15 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:20:27] Production.INFO: 66.25 MB #Memory Used# [2025-01-15 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:21:05 [end_date_ymd] => 2025-01-15 13:21:05 [RateCDR] => 1 ) [2025-01-15 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:21:05' and `end` < '2025-01-15 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:21:19] Production.INFO: count ==5055 [2025-01-15 13:21:21] Production.ERROR: pbx CDR StartTime 2025-01-15 10:21:05 - End Time 2025-01-15 13:21:05 [2025-01-15 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253889', 'tblTempUsageDetail_20' ) start [2025-01-15 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253889', 'tblTempUsageDetail_20' ) end [2025-01-15 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253889', 'tblTempVendorCDR_20' ) start [2025-01-15 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253889', 'tblTempVendorCDR_20' ) end [2025-01-15 13:21:21] Production.INFO: ProcessCDR(1,14253889,1,1,2) [2025-01-15 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253889', 'tblTempUsageDetail_20' ) start [2025-01-15 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253889', 'tblTempUsageDetail_20' ) end [2025-01-15 13:21:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:21:27] Production.INFO: ==17163== Releasing lock... [2025-01-15 13:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:21:27] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:22:05 [end_date_ymd] => 2025-01-15 13:22:05 [RateCDR] => 1 ) [2025-01-15 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:22:05' and `end` < '2025-01-15 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:22:23] Production.INFO: count ==5039 [2025-01-15 13:22:25] Production.ERROR: pbx CDR StartTime 2025-01-15 10:22:05 - End Time 2025-01-15 13:22:05 [2025-01-15 13:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253894', 'tblTempUsageDetail_20' ) start [2025-01-15 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253894', 'tblTempUsageDetail_20' ) end [2025-01-15 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253894', 'tblTempVendorCDR_20' ) start [2025-01-15 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253894', 'tblTempVendorCDR_20' ) end [2025-01-15 13:22:25] Production.INFO: ProcessCDR(1,14253894,1,1,2) [2025-01-15 13:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253894', 'tblTempUsageDetail_20' ) start [2025-01-15 13:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253894', 'tblTempUsageDetail_20' ) end [2025-01-15 13:22:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:22:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:22:31] Production.INFO: ==17233== Releasing lock... [2025-01-15 13:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:22:31] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:23:05 [end_date_ymd] => 2025-01-15 13:23:05 [RateCDR] => 1 ) [2025-01-15 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:23:05' and `end` < '2025-01-15 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:23:21] Production.INFO: count ==5048 [2025-01-15 13:23:23] Production.ERROR: pbx CDR StartTime 2025-01-15 10:23:05 - End Time 2025-01-15 13:23:05 [2025-01-15 13:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253899', 'tblTempUsageDetail_20' ) start [2025-01-15 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253899', 'tblTempUsageDetail_20' ) end [2025-01-15 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253899', 'tblTempVendorCDR_20' ) start [2025-01-15 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253899', 'tblTempVendorCDR_20' ) end [2025-01-15 13:23:23] Production.INFO: ProcessCDR(1,14253899,1,1,2) [2025-01-15 13:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253899', 'tblTempUsageDetail_20' ) start [2025-01-15 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253899', 'tblTempUsageDetail_20' ) end [2025-01-15 13:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:23:28] Production.INFO: ==17305== Releasing lock... [2025-01-15 13:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:23:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:24:04 [end_date_ymd] => 2025-01-15 13:24:04 [RateCDR] => 1 ) [2025-01-15 13:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:24:04' and `end` < '2025-01-15 13:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:24:18] Production.INFO: count ==5049 [2025-01-15 13:24:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:24:04 - End Time 2025-01-15 13:24:04 [2025-01-15 13:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253903', 'tblTempUsageDetail_20' ) start [2025-01-15 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253903', 'tblTempUsageDetail_20' ) end [2025-01-15 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253903', 'tblTempVendorCDR_20' ) start [2025-01-15 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253903', 'tblTempVendorCDR_20' ) end [2025-01-15 13:24:20] Production.INFO: ProcessCDR(1,14253903,1,1,2) [2025-01-15 13:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253903', 'tblTempUsageDetail_20' ) start [2025-01-15 13:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253903', 'tblTempUsageDetail_20' ) end [2025-01-15 13:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:24:24] Production.INFO: ==17375== Releasing lock... [2025-01-15 13:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:24:24] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:25:05 [end_date_ymd] => 2025-01-15 13:25:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 10:25:05' and `end` < '2025-01-15 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-01-15 13:25:18] Production.INFO: count ==5049 [2025-01-15 13:25:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:25:05 - End Time 2025-01-15 13:25:05 [2025-01-15 13:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253909', 'tblTempUsageDetail_20' ) start [2025-01-15 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253909', 'tblTempUsageDetail_20' ) end [2025-01-15 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253909', 'tblTempVendorCDR_20' ) start [2025-01-15 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253909', 'tblTempVendorCDR_20' ) end [2025-01-15 13:25:20] Production.INFO: ProcessCDR(1,14253909,1,1,2) [2025-01-15 13:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253909', 'tblTempUsageDetail_20' ) start [2025-01-15 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253909', 'tblTempUsageDetail_20' ) end [2025-01-15 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:25:25] Production.INFO: ==17446== Releasing lock... [2025-01-15 13:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:25:25] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:26:05 [end_date_ymd] => 2025-01-15 13:26:05 [RateCDR] => 1 ) [2025-01-15 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:26:05' and `end` < '2025-01-15 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:26:19] Production.INFO: count ==5053 [2025-01-15 13:26:21] Production.ERROR: pbx CDR StartTime 2025-01-15 10:26:05 - End Time 2025-01-15 13:26:05 [2025-01-15 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253914', 'tblTempUsageDetail_20' ) start [2025-01-15 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253914', 'tblTempUsageDetail_20' ) end [2025-01-15 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253914', 'tblTempVendorCDR_20' ) start [2025-01-15 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253914', 'tblTempVendorCDR_20' ) end [2025-01-15 13:26:21] Production.INFO: ProcessCDR(1,14253914,1,1,2) [2025-01-15 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253914', 'tblTempUsageDetail_20' ) start [2025-01-15 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253914', 'tblTempUsageDetail_20' ) end [2025-01-15 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:26:26] Production.INFO: ==17517== Releasing lock... [2025-01-15 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:26:26] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:27:05 [end_date_ymd] => 2025-01-15 13:27:05 [RateCDR] => 1 ) [2025-01-15 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:27:05' and `end` < '2025-01-15 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:27:18] Production.INFO: count ==5044 [2025-01-15 13:27:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:27:05 - End Time 2025-01-15 13:27:05 [2025-01-15 13:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253919', 'tblTempUsageDetail_20' ) start [2025-01-15 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253919', 'tblTempUsageDetail_20' ) end [2025-01-15 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253919', 'tblTempVendorCDR_20' ) start [2025-01-15 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253919', 'tblTempVendorCDR_20' ) end [2025-01-15 13:27:20] Production.INFO: ProcessCDR(1,14253919,1,1,2) [2025-01-15 13:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253919', 'tblTempUsageDetail_20' ) start [2025-01-15 13:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253919', 'tblTempUsageDetail_20' ) end [2025-01-15 13:27:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:27:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:27:25] Production.INFO: ==17592== Releasing lock... [2025-01-15 13:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:27:25] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:28:05 [end_date_ymd] => 2025-01-15 13:28:05 [RateCDR] => 1 ) [2025-01-15 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:28:05' and `end` < '2025-01-15 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:28:24] Production.INFO: count ==5041 [2025-01-15 13:28:26] Production.ERROR: pbx CDR StartTime 2025-01-15 10:28:05 - End Time 2025-01-15 13:28:05 [2025-01-15 13:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253924', 'tblTempUsageDetail_20' ) start [2025-01-15 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253924', 'tblTempUsageDetail_20' ) end [2025-01-15 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253924', 'tblTempVendorCDR_20' ) start [2025-01-15 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253924', 'tblTempVendorCDR_20' ) end [2025-01-15 13:28:26] Production.INFO: ProcessCDR(1,14253924,1,1,2) [2025-01-15 13:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253924', 'tblTempUsageDetail_20' ) start [2025-01-15 13:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253924', 'tblTempUsageDetail_20' ) end [2025-01-15 13:28:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:28:31] Production.INFO: ==17666== Releasing lock... [2025-01-15 13:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:28:31] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:29:05 [end_date_ymd] => 2025-01-15 13:29:05 [RateCDR] => 1 ) [2025-01-15 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:29:05' and `end` < '2025-01-15 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:29:18] Production.INFO: count ==5043 [2025-01-15 13:29:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:29:05 - End Time 2025-01-15 13:29:05 [2025-01-15 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253929', 'tblTempUsageDetail_20' ) start [2025-01-15 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253929', 'tblTempUsageDetail_20' ) end [2025-01-15 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253929', 'tblTempVendorCDR_20' ) start [2025-01-15 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253929', 'tblTempVendorCDR_20' ) end [2025-01-15 13:29:20] Production.INFO: ProcessCDR(1,14253929,1,1,2) [2025-01-15 13:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253929', 'tblTempUsageDetail_20' ) start [2025-01-15 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253929', 'tblTempUsageDetail_20' ) end [2025-01-15 13:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:29:25] Production.INFO: ==17739== Releasing lock... [2025-01-15 13:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:29:25] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:30:05 [end_date_ymd] => 2025-01-15 13:30:05 [RateCDR] => 1 ) [2025-01-15 13:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:30:05' and `end` < '2025-01-15 13:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:30:20] Production.INFO: count ==5047 [2025-01-15 13:30:22] Production.ERROR: pbx CDR StartTime 2025-01-15 10:30:05 - End Time 2025-01-15 13:30:05 [2025-01-15 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253935', 'tblTempUsageDetail_20' ) start [2025-01-15 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253935', 'tblTempUsageDetail_20' ) end [2025-01-15 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253935', 'tblTempVendorCDR_20' ) start [2025-01-15 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253935', 'tblTempVendorCDR_20' ) end [2025-01-15 13:30:22] Production.INFO: ProcessCDR(1,14253935,1,1,2) [2025-01-15 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253935', 'tblTempUsageDetail_20' ) start [2025-01-15 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253935', 'tblTempUsageDetail_20' ) end [2025-01-15 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:30:28] Production.INFO: ==17854== Releasing lock... [2025-01-15 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:30:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:31:05 [end_date_ymd] => 2025-01-15 13:31:05 [RateCDR] => 1 ) [2025-01-15 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:31:05' and `end` < '2025-01-15 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:31:22] Production.INFO: count ==5063 [2025-01-15 13:31:25] Production.ERROR: pbx CDR StartTime 2025-01-15 10:31:05 - End Time 2025-01-15 13:31:05 [2025-01-15 13:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253940', 'tblTempUsageDetail_20' ) start [2025-01-15 13:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253940', 'tblTempUsageDetail_20' ) end [2025-01-15 13:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253940', 'tblTempVendorCDR_20' ) start [2025-01-15 13:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253940', 'tblTempVendorCDR_20' ) end [2025-01-15 13:31:25] Production.INFO: ProcessCDR(1,14253940,1,1,2) [2025-01-15 13:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253940', 'tblTempUsageDetail_20' ) start [2025-01-15 13:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253940', 'tblTempUsageDetail_20' ) end [2025-01-15 13:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:31:30] Production.INFO: ==17926== Releasing lock... [2025-01-15 13:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:31:30] Production.INFO: 66 MB #Memory Used# [2025-01-15 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:32:06 [end_date_ymd] => 2025-01-15 13:32:06 [RateCDR] => 1 ) [2025-01-15 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:32:06' and `end` < '2025-01-15 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:32:20] Production.INFO: count ==5052 [2025-01-15 13:32:22] Production.ERROR: pbx CDR StartTime 2025-01-15 10:32:06 - End Time 2025-01-15 13:32:06 [2025-01-15 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253945', 'tblTempUsageDetail_20' ) start [2025-01-15 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253945', 'tblTempUsageDetail_20' ) end [2025-01-15 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253945', 'tblTempVendorCDR_20' ) start [2025-01-15 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253945', 'tblTempVendorCDR_20' ) end [2025-01-15 13:32:22] Production.INFO: ProcessCDR(1,14253945,1,1,2) [2025-01-15 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253945', 'tblTempUsageDetail_20' ) start [2025-01-15 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253945', 'tblTempUsageDetail_20' ) end [2025-01-15 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:32:27] Production.INFO: ==17996== Releasing lock... [2025-01-15 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:32:27] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:33:05 [end_date_ymd] => 2025-01-15 13:33:05 [RateCDR] => 1 ) [2025-01-15 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:33:05' and `end` < '2025-01-15 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:33:18] Production.INFO: count ==5055 [2025-01-15 13:33:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:33:05 - End Time 2025-01-15 13:33:05 [2025-01-15 13:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253950', 'tblTempUsageDetail_20' ) start [2025-01-15 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253950', 'tblTempUsageDetail_20' ) end [2025-01-15 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253950', 'tblTempVendorCDR_20' ) start [2025-01-15 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253950', 'tblTempVendorCDR_20' ) end [2025-01-15 13:33:21] Production.INFO: ProcessCDR(1,14253950,1,1,2) [2025-01-15 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253950', 'tblTempUsageDetail_20' ) start [2025-01-15 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253950', 'tblTempUsageDetail_20' ) end [2025-01-15 13:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:33:25] Production.INFO: ==18068== Releasing lock... [2025-01-15 13:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:33:25] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:34:05 [end_date_ymd] => 2025-01-15 13:34:05 [RateCDR] => 1 ) [2025-01-15 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:34:05' and `end` < '2025-01-15 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:34:18] Production.INFO: count ==5057 [2025-01-15 13:34:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:34:05 - End Time 2025-01-15 13:34:05 [2025-01-15 13:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253955', 'tblTempUsageDetail_20' ) start [2025-01-15 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253955', 'tblTempUsageDetail_20' ) end [2025-01-15 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253955', 'tblTempVendorCDR_20' ) start [2025-01-15 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253955', 'tblTempVendorCDR_20' ) end [2025-01-15 13:34:20] Production.INFO: ProcessCDR(1,14253955,1,1,2) [2025-01-15 13:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253955', 'tblTempUsageDetail_20' ) start [2025-01-15 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253955', 'tblTempUsageDetail_20' ) end [2025-01-15 13:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:34:23] Production.INFO: ==18141== Releasing lock... [2025-01-15 13:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:34:23] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:35:05 [end_date_ymd] => 2025-01-15 13:35:05 [RateCDR] => 1 ) [2025-01-15 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:35:05' and `end` < '2025-01-15 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:35:24] Production.INFO: count ==5041 [2025-01-15 13:35:26] Production.ERROR: pbx CDR StartTime 2025-01-15 10:35:05 - End Time 2025-01-15 13:35:05 [2025-01-15 13:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253960', 'tblTempUsageDetail_20' ) start [2025-01-15 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253960', 'tblTempUsageDetail_20' ) end [2025-01-15 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253960', 'tblTempVendorCDR_20' ) start [2025-01-15 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253960', 'tblTempVendorCDR_20' ) end [2025-01-15 13:35:26] Production.INFO: ProcessCDR(1,14253960,1,1,2) [2025-01-15 13:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253960', 'tblTempUsageDetail_20' ) start [2025-01-15 13:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253960', 'tblTempUsageDetail_20' ) end [2025-01-15 13:35:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:35:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:35:31] Production.INFO: ==18213== Releasing lock... [2025-01-15 13:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:35:31] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:36:05 [end_date_ymd] => 2025-01-15 13:36:05 [RateCDR] => 1 ) [2025-01-15 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:36:05' and `end` < '2025-01-15 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:36:25] Production.INFO: count ==5052 [2025-01-15 13:36:27] Production.ERROR: pbx CDR StartTime 2025-01-15 10:36:05 - End Time 2025-01-15 13:36:05 [2025-01-15 13:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253965', 'tblTempUsageDetail_20' ) start [2025-01-15 13:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253965', 'tblTempUsageDetail_20' ) end [2025-01-15 13:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253965', 'tblTempVendorCDR_20' ) start [2025-01-15 13:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253965', 'tblTempVendorCDR_20' ) end [2025-01-15 13:36:27] Production.INFO: ProcessCDR(1,14253965,1,1,2) [2025-01-15 13:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253965', 'tblTempUsageDetail_20' ) start [2025-01-15 13:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253965', 'tblTempUsageDetail_20' ) end [2025-01-15 13:36:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:36:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:36:32] Production.INFO: ==18283== Releasing lock... [2025-01-15 13:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:36:32] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:37:05 [end_date_ymd] => 2025-01-15 13:37:05 [RateCDR] => 1 ) [2025-01-15 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:37:05' and `end` < '2025-01-15 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:37:20] Production.INFO: count ==5069 [2025-01-15 13:37:22] Production.ERROR: pbx CDR StartTime 2025-01-15 10:37:05 - End Time 2025-01-15 13:37:05 [2025-01-15 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253970', 'tblTempUsageDetail_20' ) start [2025-01-15 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253970', 'tblTempUsageDetail_20' ) end [2025-01-15 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253970', 'tblTempVendorCDR_20' ) start [2025-01-15 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253970', 'tblTempVendorCDR_20' ) end [2025-01-15 13:37:22] Production.INFO: ProcessCDR(1,14253970,1,1,2) [2025-01-15 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253970', 'tblTempUsageDetail_20' ) start [2025-01-15 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253970', 'tblTempUsageDetail_20' ) end [2025-01-15 13:37:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:37:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:37:27] Production.INFO: ==18353== Releasing lock... [2025-01-15 13:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:37:27] Production.INFO: 66 MB #Memory Used# [2025-01-15 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:38:05 [end_date_ymd] => 2025-01-15 13:38:05 [RateCDR] => 1 ) [2025-01-15 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:38:05' and `end` < '2025-01-15 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:38:18] Production.INFO: count ==5069 [2025-01-15 13:38:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:38:05 - End Time 2025-01-15 13:38:05 [2025-01-15 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253975', 'tblTempUsageDetail_20' ) start [2025-01-15 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253975', 'tblTempUsageDetail_20' ) end [2025-01-15 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253975', 'tblTempVendorCDR_20' ) start [2025-01-15 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253975', 'tblTempVendorCDR_20' ) end [2025-01-15 13:38:20] Production.INFO: ProcessCDR(1,14253975,1,1,2) [2025-01-15 13:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253975', 'tblTempUsageDetail_20' ) start [2025-01-15 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253975', 'tblTempUsageDetail_20' ) end [2025-01-15 13:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:38:25] Production.INFO: ==18424== Releasing lock... [2025-01-15 13:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:38:25] Production.INFO: 66 MB #Memory Used# [2025-01-15 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:39:05 [end_date_ymd] => 2025-01-15 13:39:05 [RateCDR] => 1 ) [2025-01-15 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:39:05' and `end` < '2025-01-15 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:39:31] Production.INFO: count ==5079 [2025-01-15 13:39:33] Production.ERROR: pbx CDR StartTime 2025-01-15 10:39:05 - End Time 2025-01-15 13:39:05 [2025-01-15 13:39:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253980', 'tblTempUsageDetail_20' ) start [2025-01-15 13:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253980', 'tblTempUsageDetail_20' ) end [2025-01-15 13:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253980', 'tblTempVendorCDR_20' ) start [2025-01-15 13:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253980', 'tblTempVendorCDR_20' ) end [2025-01-15 13:39:33] Production.INFO: ProcessCDR(1,14253980,1,1,2) [2025-01-15 13:39:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:39:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:39:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:39:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:39:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253980', 'tblTempUsageDetail_20' ) start [2025-01-15 13:39:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253980', 'tblTempUsageDetail_20' ) end [2025-01-15 13:39:38] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:39:38] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:39:38] Production.INFO: ==18499== Releasing lock... [2025-01-15 13:39:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:39:38] Production.INFO: 66 MB #Memory Used# [2025-01-15 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:40:05 [end_date_ymd] => 2025-01-15 13:40:05 [RateCDR] => 1 ) [2025-01-15 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:40:05' and `end` < '2025-01-15 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:40:29] Production.INFO: count ==5091 [2025-01-15 13:40:31] Production.ERROR: pbx CDR StartTime 2025-01-15 10:40:05 - End Time 2025-01-15 13:40:05 [2025-01-15 13:40:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253986', 'tblTempUsageDetail_20' ) start [2025-01-15 13:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253986', 'tblTempUsageDetail_20' ) end [2025-01-15 13:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253986', 'tblTempVendorCDR_20' ) start [2025-01-15 13:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253986', 'tblTempVendorCDR_20' ) end [2025-01-15 13:40:32] Production.INFO: ProcessCDR(1,14253986,1,1,2) [2025-01-15 13:40:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:40:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:40:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:40:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253986', 'tblTempUsageDetail_20' ) start [2025-01-15 13:40:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253986', 'tblTempUsageDetail_20' ) end [2025-01-15 13:40:37] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:40:37] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:40:37] Production.INFO: ==18572== Releasing lock... [2025-01-15 13:40:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:40:37] Production.INFO: 66 MB #Memory Used# [2025-01-15 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:41:04 [end_date_ymd] => 2025-01-15 13:41:04 [RateCDR] => 1 ) [2025-01-15 13:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:41:04' and `end` < '2025-01-15 13:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:41:22] Production.INFO: count ==5051 [2025-01-15 13:41:23] Production.ERROR: pbx CDR StartTime 2025-01-15 10:41:04 - End Time 2025-01-15 13:41:04 [2025-01-15 13:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253991', 'tblTempUsageDetail_20' ) start [2025-01-15 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253991', 'tblTempUsageDetail_20' ) end [2025-01-15 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253991', 'tblTempVendorCDR_20' ) start [2025-01-15 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253991', 'tblTempVendorCDR_20' ) end [2025-01-15 13:41:24] Production.INFO: ProcessCDR(1,14253991,1,1,2) [2025-01-15 13:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253991', 'tblTempUsageDetail_20' ) start [2025-01-15 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253991', 'tblTempUsageDetail_20' ) end [2025-01-15 13:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:41:28] Production.INFO: ==18646== Releasing lock... [2025-01-15 13:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:41:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:42:05 [end_date_ymd] => 2025-01-15 13:42:05 [RateCDR] => 1 ) [2025-01-15 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:42:05' and `end` < '2025-01-15 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:42:23] Production.INFO: count ==5059 [2025-01-15 13:42:25] Production.ERROR: pbx CDR StartTime 2025-01-15 10:42:05 - End Time 2025-01-15 13:42:05 [2025-01-15 13:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253996', 'tblTempUsageDetail_20' ) start [2025-01-15 13:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14253996', 'tblTempUsageDetail_20' ) end [2025-01-15 13:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253996', 'tblTempVendorCDR_20' ) start [2025-01-15 13:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14253996', 'tblTempVendorCDR_20' ) end [2025-01-15 13:42:26] Production.INFO: ProcessCDR(1,14253996,1,1,2) [2025-01-15 13:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14253996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14253996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14253996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14253996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253996', 'tblTempUsageDetail_20' ) start [2025-01-15 13:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14253996', 'tblTempUsageDetail_20' ) end [2025-01-15 13:42:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:42:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:42:31] Production.INFO: ==18720== Releasing lock... [2025-01-15 13:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:42:31] Production.INFO: 66 MB #Memory Used# [2025-01-15 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:43:06 [end_date_ymd] => 2025-01-15 13:43:06 [RateCDR] => 1 ) [2025-01-15 13:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:43:06' and `end` < '2025-01-15 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:43:21] Production.INFO: count ==5060 [2025-01-15 13:43:23] Production.ERROR: pbx CDR StartTime 2025-01-15 10:43:06 - End Time 2025-01-15 13:43:06 [2025-01-15 13:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254001', 'tblTempUsageDetail_20' ) start [2025-01-15 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254001', 'tblTempUsageDetail_20' ) end [2025-01-15 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254001', 'tblTempVendorCDR_20' ) start [2025-01-15 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254001', 'tblTempVendorCDR_20' ) end [2025-01-15 13:43:23] Production.INFO: ProcessCDR(1,14254001,1,1,2) [2025-01-15 13:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254001', 'tblTempUsageDetail_20' ) start [2025-01-15 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254001', 'tblTempUsageDetail_20' ) end [2025-01-15 13:43:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:43:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:43:26] Production.INFO: ==18795== Releasing lock... [2025-01-15 13:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:43:26] Production.INFO: 66 MB #Memory Used# [2025-01-15 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:44:05 [end_date_ymd] => 2025-01-15 13:44:05 [RateCDR] => 1 ) [2025-01-15 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:44:05' and `end` < '2025-01-15 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:44:21] Production.INFO: count ==5051 [2025-01-15 13:44:23] Production.ERROR: pbx CDR StartTime 2025-01-15 10:44:05 - End Time 2025-01-15 13:44:05 [2025-01-15 13:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254006', 'tblTempUsageDetail_20' ) start [2025-01-15 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254006', 'tblTempUsageDetail_20' ) end [2025-01-15 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254006', 'tblTempVendorCDR_20' ) start [2025-01-15 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254006', 'tblTempVendorCDR_20' ) end [2025-01-15 13:44:23] Production.INFO: ProcessCDR(1,14254006,1,1,2) [2025-01-15 13:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254006', 'tblTempUsageDetail_20' ) start [2025-01-15 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254006', 'tblTempUsageDetail_20' ) end [2025-01-15 13:44:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:44:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:44:28] Production.INFO: ==18866== Releasing lock... [2025-01-15 13:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:44:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:45:05 [end_date_ymd] => 2025-01-15 13:45:05 [RateCDR] => 1 ) [2025-01-15 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:45:05' and `end` < '2025-01-15 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:45:24] Production.INFO: count ==5061 [2025-01-15 13:45:26] Production.ERROR: pbx CDR StartTime 2025-01-15 10:45:05 - End Time 2025-01-15 13:45:05 [2025-01-15 13:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254011', 'tblTempUsageDetail_20' ) start [2025-01-15 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254011', 'tblTempUsageDetail_20' ) end [2025-01-15 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254011', 'tblTempVendorCDR_20' ) start [2025-01-15 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254011', 'tblTempVendorCDR_20' ) end [2025-01-15 13:45:26] Production.INFO: ProcessCDR(1,14254011,1,1,2) [2025-01-15 13:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254011', 'tblTempUsageDetail_20' ) start [2025-01-15 13:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254011', 'tblTempUsageDetail_20' ) end [2025-01-15 13:45:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:45:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:45:31] Production.INFO: ==18976== Releasing lock... [2025-01-15 13:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:45:31] Production.INFO: 66 MB #Memory Used# [2025-01-15 13:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:46:04 [end_date_ymd] => 2025-01-15 13:46:04 [RateCDR] => 1 ) [2025-01-15 13:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:46:04' and `end` < '2025-01-15 13:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:46:18] Production.INFO: count ==5055 [2025-01-15 13:46:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:46:04 - End Time 2025-01-15 13:46:04 [2025-01-15 13:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254016', 'tblTempUsageDetail_20' ) start [2025-01-15 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254016', 'tblTempUsageDetail_20' ) end [2025-01-15 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254016', 'tblTempVendorCDR_20' ) start [2025-01-15 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254016', 'tblTempVendorCDR_20' ) end [2025-01-15 13:46:20] Production.INFO: ProcessCDR(1,14254016,1,1,2) [2025-01-15 13:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254016', 'tblTempUsageDetail_20' ) start [2025-01-15 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254016', 'tblTempUsageDetail_20' ) end [2025-01-15 13:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:46:25] Production.INFO: ==19069== Releasing lock... [2025-01-15 13:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:46:25] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:47:05 [end_date_ymd] => 2025-01-15 13:47:05 [RateCDR] => 1 ) [2025-01-15 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:47:05' and `end` < '2025-01-15 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:47:19] Production.INFO: count ==5075 [2025-01-15 13:47:21] Production.ERROR: pbx CDR StartTime 2025-01-15 10:47:05 - End Time 2025-01-15 13:47:05 [2025-01-15 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254021', 'tblTempUsageDetail_20' ) start [2025-01-15 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254021', 'tblTempUsageDetail_20' ) end [2025-01-15 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254021', 'tblTempVendorCDR_20' ) start [2025-01-15 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254021', 'tblTempVendorCDR_20' ) end [2025-01-15 13:47:21] Production.INFO: ProcessCDR(1,14254021,1,1,2) [2025-01-15 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254021', 'tblTempUsageDetail_20' ) start [2025-01-15 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254021', 'tblTempUsageDetail_20' ) end [2025-01-15 13:47:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:47:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:47:27] Production.INFO: ==19169== Releasing lock... [2025-01-15 13:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:47:27] Production.INFO: 66 MB #Memory Used# [2025-01-15 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:48:05 [end_date_ymd] => 2025-01-15 13:48:05 [RateCDR] => 1 ) [2025-01-15 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:48:05' and `end` < '2025-01-15 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:48:19] Production.INFO: count ==5074 [2025-01-15 13:48:21] Production.ERROR: pbx CDR StartTime 2025-01-15 10:48:05 - End Time 2025-01-15 13:48:05 [2025-01-15 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254026', 'tblTempUsageDetail_20' ) start [2025-01-15 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254026', 'tblTempUsageDetail_20' ) end [2025-01-15 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254026', 'tblTempVendorCDR_20' ) start [2025-01-15 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254026', 'tblTempVendorCDR_20' ) end [2025-01-15 13:48:21] Production.INFO: ProcessCDR(1,14254026,1,1,2) [2025-01-15 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254026', 'tblTempUsageDetail_20' ) start [2025-01-15 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254026', 'tblTempUsageDetail_20' ) end [2025-01-15 13:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:48:26] Production.INFO: ==19274== Releasing lock... [2025-01-15 13:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:48:26] Production.INFO: 66 MB #Memory Used# [2025-01-15 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:49:05 [end_date_ymd] => 2025-01-15 13:49:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 10:49:05' and `end` < '2025-01-15 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-01-15 13:49:18] Production.INFO: count ==5074 [2025-01-15 13:49:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:49:05 - End Time 2025-01-15 13:49:05 [2025-01-15 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254031', 'tblTempUsageDetail_20' ) start [2025-01-15 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254031', 'tblTempUsageDetail_20' ) end [2025-01-15 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254031', 'tblTempVendorCDR_20' ) start [2025-01-15 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254031', 'tblTempVendorCDR_20' ) end [2025-01-15 13:49:20] Production.INFO: ProcessCDR(1,14254031,1,1,2) [2025-01-15 13:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254031', 'tblTempUsageDetail_20' ) start [2025-01-15 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254031', 'tblTempUsageDetail_20' ) end [2025-01-15 13:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:49:25] Production.INFO: ==19371== Releasing lock... [2025-01-15 13:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:49:25] Production.INFO: 66 MB #Memory Used# [2025-01-15 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:50:05 [end_date_ymd] => 2025-01-15 13:50:05 [RateCDR] => 1 ) [2025-01-15 13:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:50:05' and `end` < '2025-01-15 13:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:50:25] Production.INFO: count ==5065 [2025-01-15 13:50:27] Production.ERROR: pbx CDR StartTime 2025-01-15 10:50:05 - End Time 2025-01-15 13:50:05 [2025-01-15 13:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254037', 'tblTempUsageDetail_20' ) start [2025-01-15 13:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254037', 'tblTempUsageDetail_20' ) end [2025-01-15 13:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254037', 'tblTempVendorCDR_20' ) start [2025-01-15 13:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254037', 'tblTempVendorCDR_20' ) end [2025-01-15 13:50:27] Production.INFO: ProcessCDR(1,14254037,1,1,2) [2025-01-15 13:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254037', 'tblTempUsageDetail_20' ) start [2025-01-15 13:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254037', 'tblTempUsageDetail_20' ) end [2025-01-15 13:50:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:50:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:50:32] Production.INFO: ==19474== Releasing lock... [2025-01-15 13:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:50:32] Production.INFO: 66 MB #Memory Used# [2025-01-15 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:51:05 [end_date_ymd] => 2025-01-15 13:51:05 [RateCDR] => 1 ) [2025-01-15 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:51:05' and `end` < '2025-01-15 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:51:23] Production.INFO: count ==5064 [2025-01-15 13:51:25] Production.ERROR: pbx CDR StartTime 2025-01-15 10:51:05 - End Time 2025-01-15 13:51:05 [2025-01-15 13:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254042', 'tblTempUsageDetail_20' ) start [2025-01-15 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254042', 'tblTempUsageDetail_20' ) end [2025-01-15 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254042', 'tblTempVendorCDR_20' ) start [2025-01-15 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254042', 'tblTempVendorCDR_20' ) end [2025-01-15 13:51:26] Production.INFO: ProcessCDR(1,14254042,1,1,2) [2025-01-15 13:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254042', 'tblTempUsageDetail_20' ) start [2025-01-15 13:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254042', 'tblTempUsageDetail_20' ) end [2025-01-15 13:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:51:31] Production.INFO: ==19575== Releasing lock... [2025-01-15 13:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:51:31] Production.INFO: 66 MB #Memory Used# [2025-01-15 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:52:05 [end_date_ymd] => 2025-01-15 13:52:05 [RateCDR] => 1 ) [2025-01-15 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:52:05' and `end` < '2025-01-15 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:52:18] Production.INFO: count ==5066 [2025-01-15 13:52:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:52:05 - End Time 2025-01-15 13:52:05 [2025-01-15 13:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254047', 'tblTempUsageDetail_20' ) start [2025-01-15 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254047', 'tblTempUsageDetail_20' ) end [2025-01-15 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254047', 'tblTempVendorCDR_20' ) start [2025-01-15 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254047', 'tblTempVendorCDR_20' ) end [2025-01-15 13:52:21] Production.INFO: ProcessCDR(1,14254047,1,1,2) [2025-01-15 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254047', 'tblTempUsageDetail_20' ) start [2025-01-15 13:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254047', 'tblTempUsageDetail_20' ) end [2025-01-15 13:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:52:24] Production.INFO: ==19677== Releasing lock... [2025-01-15 13:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:52:24] Production.INFO: 66 MB #Memory Used# [2025-01-15 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:53:05 [end_date_ymd] => 2025-01-15 13:53:05 [RateCDR] => 1 ) [2025-01-15 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:53:05' and `end` < '2025-01-15 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:53:18] Production.INFO: count ==5059 [2025-01-15 13:53:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:53:05 - End Time 2025-01-15 13:53:05 [2025-01-15 13:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254052', 'tblTempUsageDetail_20' ) start [2025-01-15 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254052', 'tblTempUsageDetail_20' ) end [2025-01-15 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254052', 'tblTempVendorCDR_20' ) start [2025-01-15 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254052', 'tblTempVendorCDR_20' ) end [2025-01-15 13:53:20] Production.INFO: ProcessCDR(1,14254052,1,1,2) [2025-01-15 13:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254052', 'tblTempUsageDetail_20' ) start [2025-01-15 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254052', 'tblTempUsageDetail_20' ) end [2025-01-15 13:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:53:25] Production.INFO: ==19778== Releasing lock... [2025-01-15 13:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:53:25] Production.INFO: 66.25 MB #Memory Used# [2025-01-15 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:54:05 [end_date_ymd] => 2025-01-15 13:54:05 [RateCDR] => 1 ) [2025-01-15 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:54:05' and `end` < '2025-01-15 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:54:19] Production.INFO: count ==5059 [2025-01-15 13:54:21] Production.ERROR: pbx CDR StartTime 2025-01-15 10:54:05 - End Time 2025-01-15 13:54:05 [2025-01-15 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254057', 'tblTempUsageDetail_20' ) start [2025-01-15 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254057', 'tblTempUsageDetail_20' ) end [2025-01-15 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254057', 'tblTempVendorCDR_20' ) start [2025-01-15 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254057', 'tblTempVendorCDR_20' ) end [2025-01-15 13:54:21] Production.INFO: ProcessCDR(1,14254057,1,1,2) [2025-01-15 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254057', 'tblTempUsageDetail_20' ) start [2025-01-15 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254057', 'tblTempUsageDetail_20' ) end [2025-01-15 13:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:54:26] Production.INFO: ==19877== Releasing lock... [2025-01-15 13:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:54:26] Production.INFO: 66.25 MB #Memory Used# [2025-01-15 13:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:55:04 [end_date_ymd] => 2025-01-15 13:55:04 [RateCDR] => 1 ) [2025-01-15 13:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:55:04' and `end` < '2025-01-15 13:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:55:17] Production.INFO: count ==5054 [2025-01-15 13:55:19] Production.ERROR: pbx CDR StartTime 2025-01-15 10:55:04 - End Time 2025-01-15 13:55:04 [2025-01-15 13:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254062', 'tblTempUsageDetail_20' ) start [2025-01-15 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254062', 'tblTempUsageDetail_20' ) end [2025-01-15 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254062', 'tblTempVendorCDR_20' ) start [2025-01-15 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254062', 'tblTempVendorCDR_20' ) end [2025-01-15 13:55:19] Production.INFO: ProcessCDR(1,14254062,1,1,2) [2025-01-15 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254062', 'tblTempUsageDetail_20' ) start [2025-01-15 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254062', 'tblTempUsageDetail_20' ) end [2025-01-15 13:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:55:24] Production.INFO: ==19977== Releasing lock... [2025-01-15 13:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:55:24] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:56:05 [end_date_ymd] => 2025-01-15 13:56:05 [RateCDR] => 1 ) [2025-01-15 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:56:05' and `end` < '2025-01-15 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:56:18] Production.INFO: count ==5055 [2025-01-15 13:56:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:56:05 - End Time 2025-01-15 13:56:05 [2025-01-15 13:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254067', 'tblTempUsageDetail_20' ) start [2025-01-15 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254067', 'tblTempUsageDetail_20' ) end [2025-01-15 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254067', 'tblTempVendorCDR_20' ) start [2025-01-15 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254067', 'tblTempVendorCDR_20' ) end [2025-01-15 13:56:20] Production.INFO: ProcessCDR(1,14254067,1,1,2) [2025-01-15 13:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254067', 'tblTempUsageDetail_20' ) start [2025-01-15 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254067', 'tblTempUsageDetail_20' ) end [2025-01-15 13:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:56:26] Production.INFO: ==20080== Releasing lock... [2025-01-15 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:56:26] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:57:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:57:07 [end_date_ymd] => 2025-01-15 13:57:07 [RateCDR] => 1 ) [2025-01-15 13:57:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:57:07' and `end` < '2025-01-15 13:57:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:57:20] Production.INFO: count ==5039 [2025-01-15 13:57:22] Production.ERROR: pbx CDR StartTime 2025-01-15 10:57:07 - End Time 2025-01-15 13:57:07 [2025-01-15 13:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254072', 'tblTempUsageDetail_20' ) start [2025-01-15 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254072', 'tblTempUsageDetail_20' ) end [2025-01-15 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254072', 'tblTempVendorCDR_20' ) start [2025-01-15 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254072', 'tblTempVendorCDR_20' ) end [2025-01-15 13:57:22] Production.INFO: ProcessCDR(1,14254072,1,1,2) [2025-01-15 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254072', 'tblTempUsageDetail_20' ) start [2025-01-15 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254072', 'tblTempUsageDetail_20' ) end [2025-01-15 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:57:27] Production.INFO: ==20182== Releasing lock... [2025-01-15 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:57:27] Production.INFO: 65.75 MB #Memory Used# [2025-01-15 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:58:06 [end_date_ymd] => 2025-01-15 13:58:06 [RateCDR] => 1 ) [2025-01-15 13:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:58:06' and `end` < '2025-01-15 13:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:58:21] Production.INFO: count ==5016 [2025-01-15 13:58:24] Production.ERROR: pbx CDR StartTime 2025-01-15 10:58:06 - End Time 2025-01-15 13:58:06 [2025-01-15 13:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254077', 'tblTempUsageDetail_20' ) start [2025-01-15 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254077', 'tblTempUsageDetail_20' ) end [2025-01-15 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254077', 'tblTempVendorCDR_20' ) start [2025-01-15 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254077', 'tblTempVendorCDR_20' ) end [2025-01-15 13:58:24] Production.INFO: ProcessCDR(1,14254077,1,1,2) [2025-01-15 13:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254077', 'tblTempUsageDetail_20' ) start [2025-01-15 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254077', 'tblTempUsageDetail_20' ) end [2025-01-15 13:58:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:58:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:58:29] Production.INFO: ==20285== Releasing lock... [2025-01-15 13:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:58:29] Production.INFO: 65.5 MB #Memory Used# [2025-01-15 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 10:59:05 [end_date_ymd] => 2025-01-15 13:59:05 [RateCDR] => 1 ) [2025-01-15 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 10:59:05' and `end` < '2025-01-15 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 13:59:18] Production.INFO: count ==5005 [2025-01-15 13:59:20] Production.ERROR: pbx CDR StartTime 2025-01-15 10:59:05 - End Time 2025-01-15 13:59:05 [2025-01-15 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254082', 'tblTempUsageDetail_20' ) start [2025-01-15 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254082', 'tblTempUsageDetail_20' ) end [2025-01-15 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254082', 'tblTempVendorCDR_20' ) start [2025-01-15 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254082', 'tblTempVendorCDR_20' ) end [2025-01-15 13:59:20] Production.INFO: ProcessCDR(1,14254082,1,1,2) [2025-01-15 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254082', 'tblTempUsageDetail_20' ) start [2025-01-15 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254082', 'tblTempUsageDetail_20' ) end [2025-01-15 13:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 13:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 13:59:25] Production.INFO: ==20383== Releasing lock... [2025-01-15 13:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 13:59:25] Production.INFO: 65.5 MB #Memory Used# [2025-01-15 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:00:05 [end_date_ymd] => 2025-01-15 14:00:05 [RateCDR] => 1 ) [2025-01-15 14:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:00:05' and `end` < '2025-01-15 14:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:00:18] Production.INFO: count ==4999 [2025-01-15 14:00:20] Production.ERROR: pbx CDR StartTime 2025-01-15 11:00:05 - End Time 2025-01-15 14:00:05 [2025-01-15 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254088', 'tblTempUsageDetail_20' ) start [2025-01-15 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254088', 'tblTempUsageDetail_20' ) end [2025-01-15 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254088', 'tblTempVendorCDR_20' ) start [2025-01-15 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254088', 'tblTempVendorCDR_20' ) end [2025-01-15 14:00:21] Production.INFO: ProcessCDR(1,14254088,1,1,2) [2025-01-15 14:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254088', 'tblTempUsageDetail_20' ) start [2025-01-15 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254088', 'tblTempUsageDetail_20' ) end [2025-01-15 14:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:00:25] Production.INFO: ==20483== Releasing lock... [2025-01-15 14:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:00:25] Production.INFO: 65.5 MB #Memory Used# [2025-01-15 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:01:05 [end_date_ymd] => 2025-01-15 14:01:05 [RateCDR] => 1 ) [2025-01-15 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:01:05' and `end` < '2025-01-15 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:01:18] Production.INFO: count ==4973 [2025-01-15 14:01:20] Production.ERROR: pbx CDR StartTime 2025-01-15 11:01:05 - End Time 2025-01-15 14:01:05 [2025-01-15 14:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254093', 'tblTempUsageDetail_20' ) start [2025-01-15 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254093', 'tblTempUsageDetail_20' ) end [2025-01-15 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254093', 'tblTempVendorCDR_20' ) start [2025-01-15 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254093', 'tblTempVendorCDR_20' ) end [2025-01-15 14:01:20] Production.INFO: ProcessCDR(1,14254093,1,1,2) [2025-01-15 14:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254093', 'tblTempUsageDetail_20' ) start [2025-01-15 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254093', 'tblTempUsageDetail_20' ) end [2025-01-15 14:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:01:24] Production.INFO: ==20636== Releasing lock... [2025-01-15 14:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:01:24] Production.INFO: 65.25 MB #Memory Used# [2025-01-15 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:02:04 [end_date_ymd] => 2025-01-15 14:02:04 [RateCDR] => 1 ) [2025-01-15 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:02:04' and `end` < '2025-01-15 14:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:02:18] Production.INFO: count ==4964 [2025-01-15 14:02:20] Production.ERROR: pbx CDR StartTime 2025-01-15 11:02:04 - End Time 2025-01-15 14:02:04 [2025-01-15 14:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254098', 'tblTempUsageDetail_20' ) start [2025-01-15 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254098', 'tblTempUsageDetail_20' ) end [2025-01-15 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254098', 'tblTempVendorCDR_20' ) start [2025-01-15 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254098', 'tblTempVendorCDR_20' ) end [2025-01-15 14:02:20] Production.INFO: ProcessCDR(1,14254098,1,1,2) [2025-01-15 14:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254098', 'tblTempUsageDetail_20' ) start [2025-01-15 14:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254098', 'tblTempUsageDetail_20' ) end [2025-01-15 14:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:02:24] Production.INFO: ==20733== Releasing lock... [2025-01-15 14:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:02:24] Production.INFO: 65.25 MB #Memory Used# [2025-01-15 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:03:05 [end_date_ymd] => 2025-01-15 14:03:05 [RateCDR] => 1 ) [2025-01-15 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:03:05' and `end` < '2025-01-15 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:03:25] Production.INFO: count ==4952 [2025-01-15 14:03:26] Production.ERROR: pbx CDR StartTime 2025-01-15 11:03:05 - End Time 2025-01-15 14:03:05 [2025-01-15 14:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254103', 'tblTempUsageDetail_20' ) start [2025-01-15 14:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254103', 'tblTempUsageDetail_20' ) end [2025-01-15 14:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254103', 'tblTempVendorCDR_20' ) start [2025-01-15 14:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254103', 'tblTempVendorCDR_20' ) end [2025-01-15 14:03:27] Production.INFO: ProcessCDR(1,14254103,1,1,2) [2025-01-15 14:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254103', 'tblTempUsageDetail_20' ) start [2025-01-15 14:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254103', 'tblTempUsageDetail_20' ) end [2025-01-15 14:03:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:03:31] Production.INFO: ==20825== Releasing lock... [2025-01-15 14:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:03:31] Production.INFO: 65 MB #Memory Used# [2025-01-15 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:04:05 [end_date_ymd] => 2025-01-15 14:04:05 [RateCDR] => 1 ) [2025-01-15 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:04:05' and `end` < '2025-01-15 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:04:34] Production.INFO: count ==4952 [2025-01-15 14:04:36] Production.ERROR: pbx CDR StartTime 2025-01-15 11:04:05 - End Time 2025-01-15 14:04:05 [2025-01-15 14:04:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254108', 'tblTempUsageDetail_20' ) start [2025-01-15 14:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254108', 'tblTempUsageDetail_20' ) end [2025-01-15 14:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254108', 'tblTempVendorCDR_20' ) start [2025-01-15 14:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254108', 'tblTempVendorCDR_20' ) end [2025-01-15 14:04:36] Production.INFO: ProcessCDR(1,14254108,1,1,2) [2025-01-15 14:04:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:04:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:04:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:04:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:04:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254108', 'tblTempUsageDetail_20' ) start [2025-01-15 14:04:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254108', 'tblTempUsageDetail_20' ) end [2025-01-15 14:04:41] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:04:41] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:04:41] Production.INFO: ==20899== Releasing lock... [2025-01-15 14:04:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:04:41] Production.INFO: 65 MB #Memory Used# [2025-01-15 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:05:05 [end_date_ymd] => 2025-01-15 14:05:05 [RateCDR] => 1 ) [2025-01-15 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:05:05' and `end` < '2025-01-15 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:05:26] Production.INFO: count ==4950 [2025-01-15 14:05:28] Production.ERROR: pbx CDR StartTime 2025-01-15 11:05:05 - End Time 2025-01-15 14:05:05 [2025-01-15 14:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254113', 'tblTempUsageDetail_20' ) start [2025-01-15 14:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254113', 'tblTempUsageDetail_20' ) end [2025-01-15 14:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254113', 'tblTempVendorCDR_20' ) start [2025-01-15 14:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254113', 'tblTempVendorCDR_20' ) end [2025-01-15 14:05:28] Production.INFO: ProcessCDR(1,14254113,1,1,2) [2025-01-15 14:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254113', 'tblTempUsageDetail_20' ) start [2025-01-15 14:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254113', 'tblTempUsageDetail_20' ) end [2025-01-15 14:05:34] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:05:34] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:05:34] Production.INFO: ==20970== Releasing lock... [2025-01-15 14:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:05:34] Production.INFO: 65 MB #Memory Used# [2025-01-15 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:06:05 [end_date_ymd] => 2025-01-15 14:06:05 [RateCDR] => 1 ) [2025-01-15 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:06:05' and `end` < '2025-01-15 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:06:22] Production.INFO: count ==4928 [2025-01-15 14:06:24] Production.ERROR: pbx CDR StartTime 2025-01-15 11:06:05 - End Time 2025-01-15 14:06:05 [2025-01-15 14:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254118', 'tblTempUsageDetail_20' ) start [2025-01-15 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254118', 'tblTempUsageDetail_20' ) end [2025-01-15 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254118', 'tblTempVendorCDR_20' ) start [2025-01-15 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254118', 'tblTempVendorCDR_20' ) end [2025-01-15 14:06:24] Production.INFO: ProcessCDR(1,14254118,1,1,2) [2025-01-15 14:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254118', 'tblTempUsageDetail_20' ) start [2025-01-15 14:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254118', 'tblTempUsageDetail_20' ) end [2025-01-15 14:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:06:29] Production.INFO: ==21042== Releasing lock... [2025-01-15 14:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:06:29] Production.INFO: 65 MB #Memory Used# [2025-01-15 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:07:05 [end_date_ymd] => 2025-01-15 14:07:05 [RateCDR] => 1 ) [2025-01-15 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:07:05' and `end` < '2025-01-15 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:07:20] Production.INFO: count ==4943 [2025-01-15 14:07:22] Production.ERROR: pbx CDR StartTime 2025-01-15 11:07:05 - End Time 2025-01-15 14:07:05 [2025-01-15 14:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254123', 'tblTempUsageDetail_20' ) start [2025-01-15 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254123', 'tblTempUsageDetail_20' ) end [2025-01-15 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254123', 'tblTempVendorCDR_20' ) start [2025-01-15 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254123', 'tblTempVendorCDR_20' ) end [2025-01-15 14:07:22] Production.INFO: ProcessCDR(1,14254123,1,1,2) [2025-01-15 14:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254123', 'tblTempUsageDetail_20' ) start [2025-01-15 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254123', 'tblTempUsageDetail_20' ) end [2025-01-15 14:07:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:07:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:07:27] Production.INFO: ==21116== Releasing lock... [2025-01-15 14:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:07:27] Production.INFO: 65 MB #Memory Used# [2025-01-15 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:08:05 [end_date_ymd] => 2025-01-15 14:08:05 [RateCDR] => 1 ) [2025-01-15 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:08:05' and `end` < '2025-01-15 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:08:28] Production.INFO: count ==4935 [2025-01-15 14:08:31] Production.ERROR: pbx CDR StartTime 2025-01-15 11:08:05 - End Time 2025-01-15 14:08:05 [2025-01-15 14:08:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254128', 'tblTempUsageDetail_20' ) start [2025-01-15 14:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254128', 'tblTempUsageDetail_20' ) end [2025-01-15 14:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254128', 'tblTempVendorCDR_20' ) start [2025-01-15 14:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254128', 'tblTempVendorCDR_20' ) end [2025-01-15 14:08:31] Production.INFO: ProcessCDR(1,14254128,1,1,2) [2025-01-15 14:08:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:08:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:08:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:08:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:08:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254128', 'tblTempUsageDetail_20' ) start [2025-01-15 14:08:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254128', 'tblTempUsageDetail_20' ) end [2025-01-15 14:08:37] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:08:37] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:08:37] Production.INFO: ==21189== Releasing lock... [2025-01-15 14:08:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:08:37] Production.INFO: 65 MB #Memory Used# [2025-01-15 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:09:05 [end_date_ymd] => 2025-01-15 14:09:05 [RateCDR] => 1 ) [2025-01-15 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:09:05' and `end` < '2025-01-15 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:09:23] Production.INFO: count ==4934 [2025-01-15 14:09:25] Production.ERROR: pbx CDR StartTime 2025-01-15 11:09:05 - End Time 2025-01-15 14:09:05 [2025-01-15 14:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254133', 'tblTempUsageDetail_20' ) start [2025-01-15 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254133', 'tblTempUsageDetail_20' ) end [2025-01-15 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254133', 'tblTempVendorCDR_20' ) start [2025-01-15 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254133', 'tblTempVendorCDR_20' ) end [2025-01-15 14:09:25] Production.INFO: ProcessCDR(1,14254133,1,1,2) [2025-01-15 14:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254133', 'tblTempUsageDetail_20' ) start [2025-01-15 14:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254133', 'tblTempUsageDetail_20' ) end [2025-01-15 14:09:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:09:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:09:30] Production.INFO: ==21264== Releasing lock... [2025-01-15 14:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:09:30] Production.INFO: 65 MB #Memory Used# [2025-01-15 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:10:06 [end_date_ymd] => 2025-01-15 14:10:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 11:10:06' and `end` < '2025-01-15 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-01-15 14:10:32] Production.INFO: count ==4936 [2025-01-15 14:10:34] Production.ERROR: pbx CDR StartTime 2025-01-15 11:10:06 - End Time 2025-01-15 14:10:06 [2025-01-15 14:10:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254138', 'tblTempUsageDetail_20' ) start [2025-01-15 14:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254138', 'tblTempUsageDetail_20' ) end [2025-01-15 14:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254138', 'tblTempVendorCDR_20' ) start [2025-01-15 14:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254138', 'tblTempVendorCDR_20' ) end [2025-01-15 14:10:34] Production.INFO: ProcessCDR(1,14254138,1,1,2) [2025-01-15 14:10:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:10:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:10:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:10:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254138', 'tblTempUsageDetail_20' ) start [2025-01-15 14:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254138', 'tblTempUsageDetail_20' ) end [2025-01-15 14:10:39] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:10:39] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:10:39] Production.INFO: ==21347== Releasing lock... [2025-01-15 14:10:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:10:39] Production.INFO: 65 MB #Memory Used# [2025-01-15 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:11:05 [end_date_ymd] => 2025-01-15 14:11:05 [RateCDR] => 1 ) [2025-01-15 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:11:05' and `end` < '2025-01-15 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:11:22] Production.INFO: count ==4900 [2025-01-15 14:11:24] Production.ERROR: pbx CDR StartTime 2025-01-15 11:11:05 - End Time 2025-01-15 14:11:05 [2025-01-15 14:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254144', 'tblTempUsageDetail_20' ) start [2025-01-15 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254144', 'tblTempUsageDetail_20' ) end [2025-01-15 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254144', 'tblTempVendorCDR_20' ) start [2025-01-15 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254144', 'tblTempVendorCDR_20' ) end [2025-01-15 14:11:24] Production.INFO: ProcessCDR(1,14254144,1,1,2) [2025-01-15 14:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254144', 'tblTempUsageDetail_20' ) start [2025-01-15 14:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254144', 'tblTempUsageDetail_20' ) end [2025-01-15 14:11:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:11:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:11:29] Production.INFO: ==21423== Releasing lock... [2025-01-15 14:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:11:29] Production.INFO: 64.75 MB #Memory Used# [2025-01-15 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:12:05 [end_date_ymd] => 2025-01-15 14:12:05 [RateCDR] => 1 ) [2025-01-15 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:12:05' and `end` < '2025-01-15 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:12:18] Production.INFO: count ==4881 [2025-01-15 14:12:20] Production.ERROR: pbx CDR StartTime 2025-01-15 11:12:05 - End Time 2025-01-15 14:12:05 [2025-01-15 14:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254149', 'tblTempUsageDetail_20' ) start [2025-01-15 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254149', 'tblTempUsageDetail_20' ) end [2025-01-15 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254149', 'tblTempVendorCDR_20' ) start [2025-01-15 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254149', 'tblTempVendorCDR_20' ) end [2025-01-15 14:12:20] Production.INFO: ProcessCDR(1,14254149,1,1,2) [2025-01-15 14:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254149', 'tblTempUsageDetail_20' ) start [2025-01-15 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254149', 'tblTempUsageDetail_20' ) end [2025-01-15 14:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:12:25] Production.INFO: ==21493== Releasing lock... [2025-01-15 14:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:12:25] Production.INFO: 64.5 MB #Memory Used# [2025-01-15 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:13:05 [end_date_ymd] => 2025-01-15 14:13:05 [RateCDR] => 1 ) [2025-01-15 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:13:05' and `end` < '2025-01-15 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:13:19] Production.INFO: count ==4876 [2025-01-15 14:13:21] Production.ERROR: pbx CDR StartTime 2025-01-15 11:13:05 - End Time 2025-01-15 14:13:05 [2025-01-15 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254154', 'tblTempUsageDetail_20' ) start [2025-01-15 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254154', 'tblTempUsageDetail_20' ) end [2025-01-15 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254154', 'tblTempVendorCDR_20' ) start [2025-01-15 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254154', 'tblTempVendorCDR_20' ) end [2025-01-15 14:13:22] Production.INFO: ProcessCDR(1,14254154,1,1,2) [2025-01-15 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254154', 'tblTempUsageDetail_20' ) start [2025-01-15 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254154', 'tblTempUsageDetail_20' ) end [2025-01-15 14:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:13:27] Production.INFO: ==21565== Releasing lock... [2025-01-15 14:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:13:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-15 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:14:06 [end_date_ymd] => 2025-01-15 14:14:06 [RateCDR] => 1 ) [2025-01-15 14:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:14:06' and `end` < '2025-01-15 14:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:14:19] Production.INFO: count ==4864 [2025-01-15 14:14:21] Production.ERROR: pbx CDR StartTime 2025-01-15 11:14:06 - End Time 2025-01-15 14:14:06 [2025-01-15 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254159', 'tblTempUsageDetail_20' ) start [2025-01-15 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254159', 'tblTempUsageDetail_20' ) end [2025-01-15 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254159', 'tblTempVendorCDR_20' ) start [2025-01-15 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254159', 'tblTempVendorCDR_20' ) end [2025-01-15 14:14:21] Production.INFO: ProcessCDR(1,14254159,1,1,2) [2025-01-15 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254159', 'tblTempUsageDetail_20' ) start [2025-01-15 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254159', 'tblTempUsageDetail_20' ) end [2025-01-15 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:14:26] Production.INFO: ==21637== Releasing lock... [2025-01-15 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:14:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-15 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:15:05 [end_date_ymd] => 2025-01-15 14:15:05 [RateCDR] => 1 ) [2025-01-15 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:15:05' and `end` < '2025-01-15 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:15:19] Production.INFO: count ==4860 [2025-01-15 14:15:21] Production.ERROR: pbx CDR StartTime 2025-01-15 11:15:05 - End Time 2025-01-15 14:15:05 [2025-01-15 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254164', 'tblTempUsageDetail_20' ) start [2025-01-15 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254164', 'tblTempUsageDetail_20' ) end [2025-01-15 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254164', 'tblTempVendorCDR_20' ) start [2025-01-15 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254164', 'tblTempVendorCDR_20' ) end [2025-01-15 14:15:21] Production.INFO: ProcessCDR(1,14254164,1,1,2) [2025-01-15 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254164', 'tblTempUsageDetail_20' ) start [2025-01-15 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254164', 'tblTempUsageDetail_20' ) end [2025-01-15 14:15:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:15:26] Production.INFO: ==21709== Releasing lock... [2025-01-15 14:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:15:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-15 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:16:05 [end_date_ymd] => 2025-01-15 14:16:05 [RateCDR] => 1 ) [2025-01-15 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:16:05' and `end` < '2025-01-15 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:16:24] Production.INFO: count ==4849 [2025-01-15 14:16:27] Production.ERROR: pbx CDR StartTime 2025-01-15 11:16:05 - End Time 2025-01-15 14:16:05 [2025-01-15 14:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254169', 'tblTempUsageDetail_20' ) start [2025-01-15 14:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254169', 'tblTempUsageDetail_20' ) end [2025-01-15 14:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254169', 'tblTempVendorCDR_20' ) start [2025-01-15 14:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254169', 'tblTempVendorCDR_20' ) end [2025-01-15 14:16:27] Production.INFO: ProcessCDR(1,14254169,1,1,2) [2025-01-15 14:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254169', 'tblTempUsageDetail_20' ) start [2025-01-15 14:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254169', 'tblTempUsageDetail_20' ) end [2025-01-15 14:16:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:16:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:16:32] Production.INFO: ==21779== Releasing lock... [2025-01-15 14:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:16:32] Production.INFO: 64.25 MB #Memory Used# [2025-01-15 14:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:17:04 [end_date_ymd] => 2025-01-15 14:17:04 [RateCDR] => 1 ) [2025-01-15 14:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:17:04' and `end` < '2025-01-15 14:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:17:22] Production.INFO: count ==4843 [2025-01-15 14:17:24] Production.ERROR: pbx CDR StartTime 2025-01-15 11:17:04 - End Time 2025-01-15 14:17:04 [2025-01-15 14:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254174', 'tblTempUsageDetail_20' ) start [2025-01-15 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254174', 'tblTempUsageDetail_20' ) end [2025-01-15 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254174', 'tblTempVendorCDR_20' ) start [2025-01-15 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254174', 'tblTempVendorCDR_20' ) end [2025-01-15 14:17:24] Production.INFO: ProcessCDR(1,14254174,1,1,2) [2025-01-15 14:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254174', 'tblTempUsageDetail_20' ) start [2025-01-15 14:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254174', 'tblTempUsageDetail_20' ) end [2025-01-15 14:17:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:17:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:17:29] Production.INFO: ==21893== Releasing lock... [2025-01-15 14:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:17:29] Production.INFO: 64.25 MB #Memory Used# [2025-01-15 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:18:05 [end_date_ymd] => 2025-01-15 14:18:05 [RateCDR] => 1 ) [2025-01-15 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:18:05' and `end` < '2025-01-15 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:18:22] Production.INFO: count ==4855 [2025-01-15 14:18:24] Production.ERROR: pbx CDR StartTime 2025-01-15 11:18:05 - End Time 2025-01-15 14:18:05 [2025-01-15 14:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254179', 'tblTempUsageDetail_20' ) start [2025-01-15 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254179', 'tblTempUsageDetail_20' ) end [2025-01-15 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254179', 'tblTempVendorCDR_20' ) start [2025-01-15 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254179', 'tblTempVendorCDR_20' ) end [2025-01-15 14:18:24] Production.INFO: ProcessCDR(1,14254179,1,1,2) [2025-01-15 14:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254179', 'tblTempUsageDetail_20' ) start [2025-01-15 14:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254179', 'tblTempUsageDetail_20' ) end [2025-01-15 14:18:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:18:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:18:30] Production.INFO: ==21965== Releasing lock... [2025-01-15 14:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:18:30] Production.INFO: 64.25 MB #Memory Used# [2025-01-15 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:19:06 [end_date_ymd] => 2025-01-15 14:19:06 [RateCDR] => 1 ) [2025-01-15 14:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:19:06' and `end` < '2025-01-15 14:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:19:19] Production.INFO: count ==4861 [2025-01-15 14:19:21] Production.ERROR: pbx CDR StartTime 2025-01-15 11:19:06 - End Time 2025-01-15 14:19:06 [2025-01-15 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254184', 'tblTempUsageDetail_20' ) start [2025-01-15 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254184', 'tblTempUsageDetail_20' ) end [2025-01-15 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254184', 'tblTempVendorCDR_20' ) start [2025-01-15 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254184', 'tblTempVendorCDR_20' ) end [2025-01-15 14:19:21] Production.INFO: ProcessCDR(1,14254184,1,1,2) [2025-01-15 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254184', 'tblTempUsageDetail_20' ) start [2025-01-15 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254184', 'tblTempUsageDetail_20' ) end [2025-01-15 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:19:26] Production.INFO: ==22038== Releasing lock... [2025-01-15 14:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:19:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-15 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:20:05 [end_date_ymd] => 2025-01-15 14:20:05 [RateCDR] => 1 ) [2025-01-15 14:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:20:05' and `end` < '2025-01-15 14:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:20:28] Production.INFO: count ==4873 [2025-01-15 14:20:30] Production.ERROR: pbx CDR StartTime 2025-01-15 11:20:05 - End Time 2025-01-15 14:20:05 [2025-01-15 14:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254189', 'tblTempUsageDetail_20' ) start [2025-01-15 14:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254189', 'tblTempUsageDetail_20' ) end [2025-01-15 14:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254189', 'tblTempVendorCDR_20' ) start [2025-01-15 14:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254189', 'tblTempVendorCDR_20' ) end [2025-01-15 14:20:31] Production.INFO: ProcessCDR(1,14254189,1,1,2) [2025-01-15 14:20:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:20:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:20:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:20:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254189', 'tblTempUsageDetail_20' ) start [2025-01-15 14:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254189', 'tblTempUsageDetail_20' ) end [2025-01-15 14:20:36] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:20:36] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:20:36] Production.INFO: ==22110== Releasing lock... [2025-01-15 14:20:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:20:36] Production.INFO: 64.5 MB #Memory Used# [2025-01-15 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:21:06 [end_date_ymd] => 2025-01-15 14:21:06 [RateCDR] => 1 ) [2025-01-15 14:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:21:06' and `end` < '2025-01-15 14:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:21:24] Production.INFO: count ==4891 [2025-01-15 14:21:26] Production.ERROR: pbx CDR StartTime 2025-01-15 11:21:06 - End Time 2025-01-15 14:21:06 [2025-01-15 14:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254195', 'tblTempUsageDetail_20' ) start [2025-01-15 14:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254195', 'tblTempUsageDetail_20' ) end [2025-01-15 14:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254195', 'tblTempVendorCDR_20' ) start [2025-01-15 14:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254195', 'tblTempVendorCDR_20' ) end [2025-01-15 14:21:26] Production.INFO: ProcessCDR(1,14254195,1,1,2) [2025-01-15 14:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254195', 'tblTempUsageDetail_20' ) start [2025-01-15 14:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254195', 'tblTempUsageDetail_20' ) end [2025-01-15 14:21:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:21:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:21:31] Production.INFO: ==22185== Releasing lock... [2025-01-15 14:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:21:31] Production.INFO: 64.75 MB #Memory Used# [2025-01-15 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:22:05 [end_date_ymd] => 2025-01-15 14:22:05 [RateCDR] => 1 ) [2025-01-15 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:22:05' and `end` < '2025-01-15 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:22:24] Production.INFO: count ==4894 [2025-01-15 14:22:26] Production.ERROR: pbx CDR StartTime 2025-01-15 11:22:05 - End Time 2025-01-15 14:22:05 [2025-01-15 14:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254200', 'tblTempUsageDetail_20' ) start [2025-01-15 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254200', 'tblTempUsageDetail_20' ) end [2025-01-15 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254200', 'tblTempVendorCDR_20' ) start [2025-01-15 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254200', 'tblTempVendorCDR_20' ) end [2025-01-15 14:22:26] Production.INFO: ProcessCDR(1,14254200,1,1,2) [2025-01-15 14:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:22:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254200', 'tblTempUsageDetail_20' ) start [2025-01-15 14:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254200', 'tblTempUsageDetail_20' ) end [2025-01-15 14:22:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:22:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:22:32] Production.INFO: ==22256== Releasing lock... [2025-01-15 14:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:22:32] Production.INFO: 64.75 MB #Memory Used# [2025-01-15 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:23:05 [end_date_ymd] => 2025-01-15 14:23:05 [RateCDR] => 1 ) [2025-01-15 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:23:05' and `end` < '2025-01-15 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:23:22] Production.INFO: count ==4899 [2025-01-15 14:23:24] Production.ERROR: pbx CDR StartTime 2025-01-15 11:23:05 - End Time 2025-01-15 14:23:05 [2025-01-15 14:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254205', 'tblTempUsageDetail_20' ) start [2025-01-15 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254205', 'tblTempUsageDetail_20' ) end [2025-01-15 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254205', 'tblTempVendorCDR_20' ) start [2025-01-15 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254205', 'tblTempVendorCDR_20' ) end [2025-01-15 14:23:24] Production.INFO: ProcessCDR(1,14254205,1,1,2) [2025-01-15 14:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254205', 'tblTempUsageDetail_20' ) start [2025-01-15 14:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254205', 'tblTempUsageDetail_20' ) end [2025-01-15 14:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:23:29] Production.INFO: ==22328== Releasing lock... [2025-01-15 14:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:23:29] Production.INFO: 64.75 MB #Memory Used# [2025-01-15 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:24:05 [end_date_ymd] => 2025-01-15 14:24:05 [RateCDR] => 1 ) [2025-01-15 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:24:05' and `end` < '2025-01-15 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:24:21] Production.INFO: count ==4910 [2025-01-15 14:24:23] Production.ERROR: pbx CDR StartTime 2025-01-15 11:24:05 - End Time 2025-01-15 14:24:05 [2025-01-15 14:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254210', 'tblTempUsageDetail_20' ) start [2025-01-15 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254210', 'tblTempUsageDetail_20' ) end [2025-01-15 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254210', 'tblTempVendorCDR_20' ) start [2025-01-15 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254210', 'tblTempVendorCDR_20' ) end [2025-01-15 14:24:24] Production.INFO: ProcessCDR(1,14254210,1,1,2) [2025-01-15 14:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254210', 'tblTempUsageDetail_20' ) start [2025-01-15 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254210', 'tblTempUsageDetail_20' ) end [2025-01-15 14:24:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:24:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:24:28] Production.INFO: ==22405== Releasing lock... [2025-01-15 14:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:24:28] Production.INFO: 64.75 MB #Memory Used# [2025-01-15 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:25:05 [end_date_ymd] => 2025-01-15 14:25:05 [RateCDR] => 1 ) [2025-01-15 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:25:05' and `end` < '2025-01-15 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:25:24] Production.INFO: count ==4935 [2025-01-15 14:25:25] Production.ERROR: pbx CDR StartTime 2025-01-15 11:25:05 - End Time 2025-01-15 14:25:05 [2025-01-15 14:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254215', 'tblTempUsageDetail_20' ) start [2025-01-15 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254215', 'tblTempUsageDetail_20' ) end [2025-01-15 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254215', 'tblTempVendorCDR_20' ) start [2025-01-15 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254215', 'tblTempVendorCDR_20' ) end [2025-01-15 14:25:26] Production.INFO: ProcessCDR(1,14254215,1,1,2) [2025-01-15 14:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254215', 'tblTempUsageDetail_20' ) start [2025-01-15 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254215', 'tblTempUsageDetail_20' ) end [2025-01-15 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:25:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:25:30] Production.INFO: ==22477== Releasing lock... [2025-01-15 14:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:25:30] Production.INFO: 65 MB #Memory Used# [2025-01-15 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:26:06 [end_date_ymd] => 2025-01-15 14:26:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 11:26:06' and `end` < '2025-01-15 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-01-15 14:26:20] Production.INFO: count ==4932 [2025-01-15 14:26:22] Production.ERROR: pbx CDR StartTime 2025-01-15 11:26:06 - End Time 2025-01-15 14:26:06 [2025-01-15 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254220', 'tblTempUsageDetail_20' ) start [2025-01-15 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254220', 'tblTempUsageDetail_20' ) end [2025-01-15 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254220', 'tblTempVendorCDR_20' ) start [2025-01-15 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254220', 'tblTempVendorCDR_20' ) end [2025-01-15 14:26:22] Production.INFO: ProcessCDR(1,14254220,1,1,2) [2025-01-15 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254220', 'tblTempUsageDetail_20' ) start [2025-01-15 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254220', 'tblTempUsageDetail_20' ) end [2025-01-15 14:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:26:27] Production.INFO: ==22549== Releasing lock... [2025-01-15 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:26:27] Production.INFO: 65 MB #Memory Used# [2025-01-15 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:27:05 [end_date_ymd] => 2025-01-15 14:27:05 [RateCDR] => 1 ) [2025-01-15 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:27:05' and `end` < '2025-01-15 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:27:25] Production.INFO: count ==4930 [2025-01-15 14:27:27] Production.ERROR: pbx CDR StartTime 2025-01-15 11:27:05 - End Time 2025-01-15 14:27:05 [2025-01-15 14:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254221', 'tblTempUsageDetail_20' ) start [2025-01-15 14:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254221', 'tblTempUsageDetail_20' ) end [2025-01-15 14:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254221', 'tblTempVendorCDR_20' ) start [2025-01-15 14:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254221', 'tblTempVendorCDR_20' ) end [2025-01-15 14:27:27] Production.INFO: ProcessCDR(1,14254221,1,1,2) [2025-01-15 14:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254221', 'tblTempUsageDetail_20' ) start [2025-01-15 14:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254221', 'tblTempUsageDetail_20' ) end [2025-01-15 14:27:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:27:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:27:32] Production.INFO: ==22618== Releasing lock... [2025-01-15 14:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:27:32] Production.INFO: 65 MB #Memory Used# [2025-01-15 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:28:05 [end_date_ymd] => 2025-01-15 14:28:05 [RateCDR] => 1 ) [2025-01-15 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:28:05' and `end` < '2025-01-15 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:28:21] Production.INFO: count ==4952 [2025-01-15 14:28:23] Production.ERROR: pbx CDR StartTime 2025-01-15 11:28:05 - End Time 2025-01-15 14:28:05 [2025-01-15 14:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254230', 'tblTempUsageDetail_20' ) start [2025-01-15 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254230', 'tblTempUsageDetail_20' ) end [2025-01-15 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254230', 'tblTempVendorCDR_20' ) start [2025-01-15 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254230', 'tblTempVendorCDR_20' ) end [2025-01-15 14:28:23] Production.INFO: ProcessCDR(1,14254230,1,1,2) [2025-01-15 14:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254230', 'tblTempUsageDetail_20' ) start [2025-01-15 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254230', 'tblTempUsageDetail_20' ) end [2025-01-15 14:28:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:28:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:28:28] Production.INFO: ==22690== Releasing lock... [2025-01-15 14:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:28:28] Production.INFO: 65 MB #Memory Used# [2025-01-15 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:29:05 [end_date_ymd] => 2025-01-15 14:29:05 [RateCDR] => 1 ) [2025-01-15 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:29:05' and `end` < '2025-01-15 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:29:24] Production.INFO: count ==4964 [2025-01-15 14:29:26] Production.ERROR: pbx CDR StartTime 2025-01-15 11:29:05 - End Time 2025-01-15 14:29:05 [2025-01-15 14:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254235', 'tblTempUsageDetail_20' ) start [2025-01-15 14:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254235', 'tblTempUsageDetail_20' ) end [2025-01-15 14:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254235', 'tblTempVendorCDR_20' ) start [2025-01-15 14:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254235', 'tblTempVendorCDR_20' ) end [2025-01-15 14:29:26] Production.INFO: ProcessCDR(1,14254235,1,1,2) [2025-01-15 14:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254235', 'tblTempUsageDetail_20' ) start [2025-01-15 14:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254235', 'tblTempUsageDetail_20' ) end [2025-01-15 14:29:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:29:31] Production.INFO: ==22759== Releasing lock... [2025-01-15 14:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:29:31] Production.INFO: 65.25 MB #Memory Used# [2025-01-15 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:30:06 [end_date_ymd] => 2025-01-15 14:30:06 [RateCDR] => 1 ) [2025-01-15 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:30:06' and `end` < '2025-01-15 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:30:25] Production.INFO: count ==4961 [2025-01-15 14:30:27] Production.ERROR: pbx CDR StartTime 2025-01-15 11:30:06 - End Time 2025-01-15 14:30:06 [2025-01-15 14:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254241', 'tblTempUsageDetail_20' ) start [2025-01-15 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254241', 'tblTempUsageDetail_20' ) end [2025-01-15 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254241', 'tblTempVendorCDR_20' ) start [2025-01-15 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254241', 'tblTempVendorCDR_20' ) end [2025-01-15 14:30:27] Production.INFO: ProcessCDR(1,14254241,1,1,2) [2025-01-15 14:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254241', 'tblTempUsageDetail_20' ) start [2025-01-15 14:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254241', 'tblTempUsageDetail_20' ) end [2025-01-15 14:30:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:30:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:30:31] Production.INFO: ==22831== Releasing lock... [2025-01-15 14:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:30:31] Production.INFO: 65.25 MB #Memory Used# [2025-01-15 14:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:31:04 [end_date_ymd] => 2025-01-15 14:31:04 [RateCDR] => 1 ) [2025-01-15 14:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:31:04' and `end` < '2025-01-15 14:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:31:18] Production.INFO: count ==4930 [2025-01-15 14:31:20] Production.ERROR: pbx CDR StartTime 2025-01-15 11:31:04 - End Time 2025-01-15 14:31:04 [2025-01-15 14:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254246', 'tblTempUsageDetail_20' ) start [2025-01-15 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254246', 'tblTempUsageDetail_20' ) end [2025-01-15 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254246', 'tblTempVendorCDR_20' ) start [2025-01-15 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254246', 'tblTempVendorCDR_20' ) end [2025-01-15 14:31:20] Production.INFO: ProcessCDR(1,14254246,1,1,2) [2025-01-15 14:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254246', 'tblTempUsageDetail_20' ) start [2025-01-15 14:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254246', 'tblTempUsageDetail_20' ) end [2025-01-15 14:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:31:25] Production.INFO: ==22905== Releasing lock... [2025-01-15 14:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:31:25] Production.INFO: 65 MB #Memory Used# [2025-01-15 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:32:05 [end_date_ymd] => 2025-01-15 14:32:05 [RateCDR] => 1 ) [2025-01-15 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:32:05' and `end` < '2025-01-15 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:32:19] Production.INFO: count ==4914 [2025-01-15 14:32:21] Production.ERROR: pbx CDR StartTime 2025-01-15 11:32:05 - End Time 2025-01-15 14:32:05 [2025-01-15 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254251', 'tblTempUsageDetail_20' ) start [2025-01-15 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254251', 'tblTempUsageDetail_20' ) end [2025-01-15 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254251', 'tblTempVendorCDR_20' ) start [2025-01-15 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254251', 'tblTempVendorCDR_20' ) end [2025-01-15 14:32:22] Production.INFO: ProcessCDR(1,14254251,1,1,2) [2025-01-15 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254251', 'tblTempUsageDetail_20' ) start [2025-01-15 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254251', 'tblTempUsageDetail_20' ) end [2025-01-15 14:32:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:32:26] Production.INFO: ==23015== Releasing lock... [2025-01-15 14:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:32:26] Production.INFO: 64.75 MB #Memory Used# [2025-01-15 14:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:33:04 [end_date_ymd] => 2025-01-15 14:33:04 [RateCDR] => 1 ) [2025-01-15 14:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:33:04' and `end` < '2025-01-15 14:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:33:17] Production.INFO: count ==4869 [2025-01-15 14:33:20] Production.ERROR: pbx CDR StartTime 2025-01-15 11:33:04 - End Time 2025-01-15 14:33:04 [2025-01-15 14:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254256', 'tblTempUsageDetail_20' ) start [2025-01-15 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254256', 'tblTempUsageDetail_20' ) end [2025-01-15 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254256', 'tblTempVendorCDR_20' ) start [2025-01-15 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254256', 'tblTempVendorCDR_20' ) end [2025-01-15 14:33:20] Production.INFO: ProcessCDR(1,14254256,1,1,2) [2025-01-15 14:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254256', 'tblTempUsageDetail_20' ) start [2025-01-15 14:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254256', 'tblTempUsageDetail_20' ) end [2025-01-15 14:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:33:25] Production.INFO: ==23084== Releasing lock... [2025-01-15 14:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:33:25] Production.INFO: 64.5 MB #Memory Used# [2025-01-15 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:34:05 [end_date_ymd] => 2025-01-15 14:34:05 [RateCDR] => 1 ) [2025-01-15 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:34:05' and `end` < '2025-01-15 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:34:23] Production.INFO: count ==4852 [2025-01-15 14:34:25] Production.ERROR: pbx CDR StartTime 2025-01-15 11:34:05 - End Time 2025-01-15 14:34:05 [2025-01-15 14:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254261', 'tblTempUsageDetail_20' ) start [2025-01-15 14:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254261', 'tblTempUsageDetail_20' ) end [2025-01-15 14:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254261', 'tblTempVendorCDR_20' ) start [2025-01-15 14:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254261', 'tblTempVendorCDR_20' ) end [2025-01-15 14:34:25] Production.INFO: ProcessCDR(1,14254261,1,1,2) [2025-01-15 14:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254261', 'tblTempUsageDetail_20' ) start [2025-01-15 14:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254261', 'tblTempUsageDetail_20' ) end [2025-01-15 14:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:34:30] Production.INFO: ==23155== Releasing lock... [2025-01-15 14:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:34:30] Production.INFO: 64.25 MB #Memory Used# [2025-01-15 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:35:05 [end_date_ymd] => 2025-01-15 14:35:05 [RateCDR] => 1 ) [2025-01-15 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:35:05' and `end` < '2025-01-15 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:35:23] Production.INFO: count ==4857 [2025-01-15 14:35:25] Production.ERROR: pbx CDR StartTime 2025-01-15 11:35:05 - End Time 2025-01-15 14:35:05 [2025-01-15 14:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254266', 'tblTempUsageDetail_20' ) start [2025-01-15 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254266', 'tblTempUsageDetail_20' ) end [2025-01-15 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254266', 'tblTempVendorCDR_20' ) start [2025-01-15 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254266', 'tblTempVendorCDR_20' ) end [2025-01-15 14:35:25] Production.INFO: ProcessCDR(1,14254266,1,1,2) [2025-01-15 14:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254266', 'tblTempUsageDetail_20' ) start [2025-01-15 14:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254266', 'tblTempUsageDetail_20' ) end [2025-01-15 14:35:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:35:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:35:30] Production.INFO: ==23237== Releasing lock... [2025-01-15 14:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:35:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-15 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:36:05 [end_date_ymd] => 2025-01-15 14:36:05 [RateCDR] => 1 ) [2025-01-15 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:36:05' and `end` < '2025-01-15 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:36:19] Production.INFO: count ==4868 [2025-01-15 14:36:21] Production.ERROR: pbx CDR StartTime 2025-01-15 11:36:05 - End Time 2025-01-15 14:36:05 [2025-01-15 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254271', 'tblTempUsageDetail_20' ) start [2025-01-15 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254271', 'tblTempUsageDetail_20' ) end [2025-01-15 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254271', 'tblTempVendorCDR_20' ) start [2025-01-15 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254271', 'tblTempVendorCDR_20' ) end [2025-01-15 14:36:21] Production.INFO: ProcessCDR(1,14254271,1,1,2) [2025-01-15 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254271', 'tblTempUsageDetail_20' ) start [2025-01-15 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254271', 'tblTempUsageDetail_20' ) end [2025-01-15 14:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:36:26] Production.INFO: ==23306== Releasing lock... [2025-01-15 14:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:36:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-15 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:37:05 [end_date_ymd] => 2025-01-15 14:37:05 [RateCDR] => 1 ) [2025-01-15 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:37:05' and `end` < '2025-01-15 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:37:22] Production.INFO: count ==4884 [2025-01-15 14:37:24] Production.ERROR: pbx CDR StartTime 2025-01-15 11:37:05 - End Time 2025-01-15 14:37:05 [2025-01-15 14:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254276', 'tblTempUsageDetail_20' ) start [2025-01-15 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254276', 'tblTempUsageDetail_20' ) end [2025-01-15 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254276', 'tblTempVendorCDR_20' ) start [2025-01-15 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254276', 'tblTempVendorCDR_20' ) end [2025-01-15 14:37:24] Production.INFO: ProcessCDR(1,14254276,1,1,2) [2025-01-15 14:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254276', 'tblTempUsageDetail_20' ) start [2025-01-15 14:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254276', 'tblTempUsageDetail_20' ) end [2025-01-15 14:37:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:37:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:37:29] Production.INFO: ==23376== Releasing lock... [2025-01-15 14:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:37:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-15 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:38:05 [end_date_ymd] => 2025-01-15 14:38:05 [RateCDR] => 1 ) [2025-01-15 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:38:05' and `end` < '2025-01-15 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:38:28] Production.INFO: count ==4872 [2025-01-15 14:38:30] Production.ERROR: pbx CDR StartTime 2025-01-15 11:38:05 - End Time 2025-01-15 14:38:05 [2025-01-15 14:38:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254281', 'tblTempUsageDetail_20' ) start [2025-01-15 14:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254281', 'tblTempUsageDetail_20' ) end [2025-01-15 14:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254281', 'tblTempVendorCDR_20' ) start [2025-01-15 14:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254281', 'tblTempVendorCDR_20' ) end [2025-01-15 14:38:30] Production.INFO: ProcessCDR(1,14254281,1,1,2) [2025-01-15 14:38:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:38:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:38:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:38:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254281', 'tblTempUsageDetail_20' ) start [2025-01-15 14:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254281', 'tblTempUsageDetail_20' ) end [2025-01-15 14:38:35] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:38:35] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:38:35] Production.INFO: ==23450== Releasing lock... [2025-01-15 14:38:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:38:35] Production.INFO: 64.5 MB #Memory Used# [2025-01-15 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:39:05 [end_date_ymd] => 2025-01-15 14:39:05 [RateCDR] => 1 ) [2025-01-15 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:39:05' and `end` < '2025-01-15 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:39:31] Production.INFO: count ==4899 [2025-01-15 14:39:33] Production.ERROR: pbx CDR StartTime 2025-01-15 11:39:05 - End Time 2025-01-15 14:39:05 [2025-01-15 14:39:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254286', 'tblTempUsageDetail_20' ) start [2025-01-15 14:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254286', 'tblTempUsageDetail_20' ) end [2025-01-15 14:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254286', 'tblTempVendorCDR_20' ) start [2025-01-15 14:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254286', 'tblTempVendorCDR_20' ) end [2025-01-15 14:39:33] Production.INFO: ProcessCDR(1,14254286,1,1,2) [2025-01-15 14:39:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:39:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:39:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:39:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254286', 'tblTempUsageDetail_20' ) start [2025-01-15 14:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254286', 'tblTempUsageDetail_20' ) end [2025-01-15 14:39:36] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:39:36] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:39:36] Production.INFO: ==23522== Releasing lock... [2025-01-15 14:39:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:39:36] Production.INFO: 64.75 MB #Memory Used# [2025-01-15 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:40:05 [end_date_ymd] => 2025-01-15 14:40:05 [RateCDR] => 1 ) [2025-01-15 14:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:40:05' and `end` < '2025-01-15 14:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:40:25] Production.INFO: count ==4905 [2025-01-15 14:40:27] Production.ERROR: pbx CDR StartTime 2025-01-15 11:40:05 - End Time 2025-01-15 14:40:05 [2025-01-15 14:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254292', 'tblTempUsageDetail_20' ) start [2025-01-15 14:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254292', 'tblTempUsageDetail_20' ) end [2025-01-15 14:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254292', 'tblTempVendorCDR_20' ) start [2025-01-15 14:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254292', 'tblTempVendorCDR_20' ) end [2025-01-15 14:40:28] Production.INFO: ProcessCDR(1,14254292,1,1,2) [2025-01-15 14:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254292', 'tblTempUsageDetail_20' ) start [2025-01-15 14:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254292', 'tblTempUsageDetail_20' ) end [2025-01-15 14:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:40:33] Production.INFO: ==23594== Releasing lock... [2025-01-15 14:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:40:33] Production.INFO: 64.75 MB #Memory Used# [2025-01-15 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:41:05 [end_date_ymd] => 2025-01-15 14:41:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 11:41:05' and `end` < '2025-01-15 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-01-15 14:41:30] Production.INFO: count ==4878 [2025-01-15 14:41:32] Production.ERROR: pbx CDR StartTime 2025-01-15 11:41:05 - End Time 2025-01-15 14:41:05 [2025-01-15 14:41:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254297', 'tblTempUsageDetail_20' ) start [2025-01-15 14:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254297', 'tblTempUsageDetail_20' ) end [2025-01-15 14:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254297', 'tblTempVendorCDR_20' ) start [2025-01-15 14:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254297', 'tblTempVendorCDR_20' ) end [2025-01-15 14:41:32] Production.INFO: ProcessCDR(1,14254297,1,1,2) [2025-01-15 14:41:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:41:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:41:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:41:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254297', 'tblTempUsageDetail_20' ) start [2025-01-15 14:41:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254297', 'tblTempUsageDetail_20' ) end [2025-01-15 14:41:37] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:41:37] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:41:37] Production.INFO: ==23668== Releasing lock... [2025-01-15 14:41:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:41:37] Production.INFO: 64.5 MB #Memory Used# [2025-01-15 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:42:05 [end_date_ymd] => 2025-01-15 14:42:05 [RateCDR] => 1 ) [2025-01-15 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:42:05' and `end` < '2025-01-15 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:42:29] Production.INFO: count ==4880 [2025-01-15 14:42:31] Production.ERROR: pbx CDR StartTime 2025-01-15 11:42:05 - End Time 2025-01-15 14:42:05 [2025-01-15 14:42:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254302', 'tblTempUsageDetail_20' ) start [2025-01-15 14:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254302', 'tblTempUsageDetail_20' ) end [2025-01-15 14:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254302', 'tblTempVendorCDR_20' ) start [2025-01-15 14:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254302', 'tblTempVendorCDR_20' ) end [2025-01-15 14:42:31] Production.INFO: ProcessCDR(1,14254302,1,1,2) [2025-01-15 14:42:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:42:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:42:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:42:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:42:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254302', 'tblTempUsageDetail_20' ) start [2025-01-15 14:42:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254302', 'tblTempUsageDetail_20' ) end [2025-01-15 14:42:37] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:42:37] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:42:37] Production.INFO: ==23738== Releasing lock... [2025-01-15 14:42:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:42:37] Production.INFO: 64.5 MB #Memory Used# [2025-01-15 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:43:04 [end_date_ymd] => 2025-01-15 14:43:04 [RateCDR] => 1 ) [2025-01-15 14:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:43:04' and `end` < '2025-01-15 14:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:43:31] Production.INFO: count ==4890 [2025-01-15 14:43:33] Production.ERROR: pbx CDR StartTime 2025-01-15 11:43:04 - End Time 2025-01-15 14:43:04 [2025-01-15 14:43:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254307', 'tblTempUsageDetail_20' ) start [2025-01-15 14:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254307', 'tblTempUsageDetail_20' ) end [2025-01-15 14:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254307', 'tblTempVendorCDR_20' ) start [2025-01-15 14:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254307', 'tblTempVendorCDR_20' ) end [2025-01-15 14:43:33] Production.INFO: ProcessCDR(1,14254307,1,1,2) [2025-01-15 14:43:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:43:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:43:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:43:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:43:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254307', 'tblTempUsageDetail_20' ) start [2025-01-15 14:43:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254307', 'tblTempUsageDetail_20' ) end [2025-01-15 14:43:38] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:43:38] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:43:38] Production.INFO: ==23811== Releasing lock... [2025-01-15 14:43:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:43:38] Production.INFO: 64.75 MB #Memory Used# [2025-01-15 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:44:05 [end_date_ymd] => 2025-01-15 14:44:05 [RateCDR] => 1 ) [2025-01-15 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:44:05' and `end` < '2025-01-15 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:44:23] Production.INFO: count ==4902 [2025-01-15 14:44:24] Production.ERROR: pbx CDR StartTime 2025-01-15 11:44:05 - End Time 2025-01-15 14:44:05 [2025-01-15 14:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254312', 'tblTempUsageDetail_20' ) start [2025-01-15 14:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254312', 'tblTempUsageDetail_20' ) end [2025-01-15 14:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254312', 'tblTempVendorCDR_20' ) start [2025-01-15 14:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254312', 'tblTempVendorCDR_20' ) end [2025-01-15 14:44:25] Production.INFO: ProcessCDR(1,14254312,1,1,2) [2025-01-15 14:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254312', 'tblTempUsageDetail_20' ) start [2025-01-15 14:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254312', 'tblTempUsageDetail_20' ) end [2025-01-15 14:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:44:29] Production.INFO: ==23883== Releasing lock... [2025-01-15 14:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:44:29] Production.INFO: 64.75 MB #Memory Used# [2025-01-15 14:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:45:04 [end_date_ymd] => 2025-01-15 14:45:04 [RateCDR] => 1 ) [2025-01-15 14:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:45:04' and `end` < '2025-01-15 14:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:45:18] Production.INFO: count ==4897 [2025-01-15 14:45:20] Production.ERROR: pbx CDR StartTime 2025-01-15 11:45:04 - End Time 2025-01-15 14:45:04 [2025-01-15 14:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254317', 'tblTempUsageDetail_20' ) start [2025-01-15 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254317', 'tblTempUsageDetail_20' ) end [2025-01-15 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254317', 'tblTempVendorCDR_20' ) start [2025-01-15 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254317', 'tblTempVendorCDR_20' ) end [2025-01-15 14:45:20] Production.INFO: ProcessCDR(1,14254317,1,1,2) [2025-01-15 14:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254317', 'tblTempUsageDetail_20' ) start [2025-01-15 14:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254317', 'tblTempUsageDetail_20' ) end [2025-01-15 14:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:45:25] Production.INFO: ==23953== Releasing lock... [2025-01-15 14:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:45:25] Production.INFO: 64.75 MB #Memory Used# [2025-01-15 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:46:05 [end_date_ymd] => 2025-01-15 14:46:05 [RateCDR] => 1 ) [2025-01-15 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:46:05' and `end` < '2025-01-15 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:46:22] Production.INFO: count ==4873 [2025-01-15 14:46:24] Production.ERROR: pbx CDR StartTime 2025-01-15 11:46:05 - End Time 2025-01-15 14:46:05 [2025-01-15 14:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254322', 'tblTempUsageDetail_20' ) start [2025-01-15 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254322', 'tblTempUsageDetail_20' ) end [2025-01-15 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254322', 'tblTempVendorCDR_20' ) start [2025-01-15 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254322', 'tblTempVendorCDR_20' ) end [2025-01-15 14:46:24] Production.INFO: ProcessCDR(1,14254322,1,1,2) [2025-01-15 14:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254322', 'tblTempUsageDetail_20' ) start [2025-01-15 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254322', 'tblTempUsageDetail_20' ) end [2025-01-15 14:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:46:29] Production.INFO: ==24025== Releasing lock... [2025-01-15 14:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:46:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-15 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:47:06 [end_date_ymd] => 2025-01-15 14:47:06 [RateCDR] => 1 ) [2025-01-15 14:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:47:06' and `end` < '2025-01-15 14:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:47:19] Production.INFO: count ==4842 [2025-01-15 14:47:21] Production.ERROR: pbx CDR StartTime 2025-01-15 11:47:06 - End Time 2025-01-15 14:47:06 [2025-01-15 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254327', 'tblTempUsageDetail_20' ) start [2025-01-15 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254327', 'tblTempUsageDetail_20' ) end [2025-01-15 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254327', 'tblTempVendorCDR_20' ) start [2025-01-15 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254327', 'tblTempVendorCDR_20' ) end [2025-01-15 14:47:21] Production.INFO: ProcessCDR(1,14254327,1,1,2) [2025-01-15 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254327', 'tblTempUsageDetail_20' ) start [2025-01-15 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254327', 'tblTempUsageDetail_20' ) end [2025-01-15 14:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:47:26] Production.INFO: ==24096== Releasing lock... [2025-01-15 14:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:47:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-15 14:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:48:04 [end_date_ymd] => 2025-01-15 14:48:04 [RateCDR] => 1 ) [2025-01-15 14:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:48:04' and `end` < '2025-01-15 14:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:48:20] Production.INFO: count ==4831 [2025-01-15 14:48:22] Production.ERROR: pbx CDR StartTime 2025-01-15 11:48:04 - End Time 2025-01-15 14:48:04 [2025-01-15 14:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254330', 'tblTempUsageDetail_20' ) start [2025-01-15 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254330', 'tblTempUsageDetail_20' ) end [2025-01-15 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254330', 'tblTempVendorCDR_20' ) start [2025-01-15 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254330', 'tblTempVendorCDR_20' ) end [2025-01-15 14:48:22] Production.INFO: ProcessCDR(1,14254330,1,1,2) [2025-01-15 14:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254330', 'tblTempUsageDetail_20' ) start [2025-01-15 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254330', 'tblTempUsageDetail_20' ) end [2025-01-15 14:48:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:48:27] Production.INFO: ==24207== Releasing lock... [2025-01-15 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:48:27] Production.INFO: 64.25 MB #Memory Used# [2025-01-15 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:49:05 [end_date_ymd] => 2025-01-15 14:49:05 [RateCDR] => 1 ) [2025-01-15 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:49:05' and `end` < '2025-01-15 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:49:22] Production.INFO: count ==4849 [2025-01-15 14:49:24] Production.ERROR: pbx CDR StartTime 2025-01-15 11:49:05 - End Time 2025-01-15 14:49:05 [2025-01-15 14:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254337', 'tblTempUsageDetail_20' ) start [2025-01-15 14:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254337', 'tblTempUsageDetail_20' ) end [2025-01-15 14:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254337', 'tblTempVendorCDR_20' ) start [2025-01-15 14:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254337', 'tblTempVendorCDR_20' ) end [2025-01-15 14:49:24] Production.INFO: ProcessCDR(1,14254337,1,1,2) [2025-01-15 14:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254337', 'tblTempUsageDetail_20' ) start [2025-01-15 14:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254337', 'tblTempUsageDetail_20' ) end [2025-01-15 14:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:49:29] Production.INFO: ==24278== Releasing lock... [2025-01-15 14:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:49:29] Production.INFO: 64.25 MB #Memory Used# [2025-01-15 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:50:05 [end_date_ymd] => 2025-01-15 14:50:05 [RateCDR] => 1 ) [2025-01-15 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:50:05' and `end` < '2025-01-15 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:50:19] Production.INFO: count ==4834 [2025-01-15 14:50:21] Production.ERROR: pbx CDR StartTime 2025-01-15 11:50:05 - End Time 2025-01-15 14:50:05 [2025-01-15 14:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254343', 'tblTempUsageDetail_20' ) start [2025-01-15 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254343', 'tblTempUsageDetail_20' ) end [2025-01-15 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254343', 'tblTempVendorCDR_20' ) start [2025-01-15 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254343', 'tblTempVendorCDR_20' ) end [2025-01-15 14:50:21] Production.INFO: ProcessCDR(1,14254343,1,1,2) [2025-01-15 14:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254343', 'tblTempUsageDetail_20' ) start [2025-01-15 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254343', 'tblTempUsageDetail_20' ) end [2025-01-15 14:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:50:26] Production.INFO: ==24351== Releasing lock... [2025-01-15 14:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:50:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-15 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:51:05 [end_date_ymd] => 2025-01-15 14:51:05 [RateCDR] => 1 ) [2025-01-15 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:51:05' and `end` < '2025-01-15 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:51:26] Production.INFO: count ==4822 [2025-01-15 14:51:28] Production.ERROR: pbx CDR StartTime 2025-01-15 11:51:05 - End Time 2025-01-15 14:51:05 [2025-01-15 14:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254348', 'tblTempUsageDetail_20' ) start [2025-01-15 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254348', 'tblTempUsageDetail_20' ) end [2025-01-15 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254348', 'tblTempVendorCDR_20' ) start [2025-01-15 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254348', 'tblTempVendorCDR_20' ) end [2025-01-15 14:51:28] Production.INFO: ProcessCDR(1,14254348,1,1,2) [2025-01-15 14:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254348', 'tblTempUsageDetail_20' ) start [2025-01-15 14:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254348', 'tblTempUsageDetail_20' ) end [2025-01-15 14:51:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:51:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:51:33] Production.INFO: ==24424== Releasing lock... [2025-01-15 14:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:51:33] Production.INFO: 64 MB #Memory Used# [2025-01-15 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:52:05 [end_date_ymd] => 2025-01-15 14:52:05 [RateCDR] => 1 ) [2025-01-15 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:52:05' and `end` < '2025-01-15 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:52:25] Production.INFO: count ==4816 [2025-01-15 14:52:27] Production.ERROR: pbx CDR StartTime 2025-01-15 11:52:05 - End Time 2025-01-15 14:52:05 [2025-01-15 14:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254353', 'tblTempUsageDetail_20' ) start [2025-01-15 14:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254353', 'tblTempUsageDetail_20' ) end [2025-01-15 14:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254353', 'tblTempVendorCDR_20' ) start [2025-01-15 14:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254353', 'tblTempVendorCDR_20' ) end [2025-01-15 14:52:27] Production.INFO: ProcessCDR(1,14254353,1,1,2) [2025-01-15 14:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254353', 'tblTempUsageDetail_20' ) start [2025-01-15 14:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254353', 'tblTempUsageDetail_20' ) end [2025-01-15 14:52:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:52:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:52:30] Production.INFO: ==24500== Releasing lock... [2025-01-15 14:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:52:30] Production.INFO: 64 MB #Memory Used# [2025-01-15 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:53:05 [end_date_ymd] => 2025-01-15 14:53:05 [RateCDR] => 1 ) [2025-01-15 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:53:05' and `end` < '2025-01-15 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:53:20] Production.INFO: count ==4832 [2025-01-15 14:53:22] Production.ERROR: pbx CDR StartTime 2025-01-15 11:53:05 - End Time 2025-01-15 14:53:05 [2025-01-15 14:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254358', 'tblTempUsageDetail_20' ) start [2025-01-15 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254358', 'tblTempUsageDetail_20' ) end [2025-01-15 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254358', 'tblTempVendorCDR_20' ) start [2025-01-15 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254358', 'tblTempVendorCDR_20' ) end [2025-01-15 14:53:22] Production.INFO: ProcessCDR(1,14254358,1,1,2) [2025-01-15 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254358', 'tblTempUsageDetail_20' ) start [2025-01-15 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254358', 'tblTempUsageDetail_20' ) end [2025-01-15 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:53:27] Production.INFO: ==24574== Releasing lock... [2025-01-15 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:53:27] Production.INFO: 64.25 MB #Memory Used# [2025-01-15 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:54:05 [end_date_ymd] => 2025-01-15 14:54:05 [RateCDR] => 1 ) [2025-01-15 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:54:05' and `end` < '2025-01-15 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:54:20] Production.INFO: count ==4807 [2025-01-15 14:54:22] Production.ERROR: pbx CDR StartTime 2025-01-15 11:54:05 - End Time 2025-01-15 14:54:05 [2025-01-15 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254363', 'tblTempUsageDetail_20' ) start [2025-01-15 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254363', 'tblTempUsageDetail_20' ) end [2025-01-15 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254363', 'tblTempVendorCDR_20' ) start [2025-01-15 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254363', 'tblTempVendorCDR_20' ) end [2025-01-15 14:54:22] Production.INFO: ProcessCDR(1,14254363,1,1,2) [2025-01-15 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254363', 'tblTempUsageDetail_20' ) start [2025-01-15 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254363', 'tblTempUsageDetail_20' ) end [2025-01-15 14:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:54:28] Production.INFO: ==24645== Releasing lock... [2025-01-15 14:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:54:28] Production.INFO: 64 MB #Memory Used# [2025-01-15 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:55:05 [end_date_ymd] => 2025-01-15 14:55:05 [RateCDR] => 1 ) [2025-01-15 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:55:05' and `end` < '2025-01-15 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:55:22] Production.INFO: count ==4789 [2025-01-15 14:55:24] Production.ERROR: pbx CDR StartTime 2025-01-15 11:55:05 - End Time 2025-01-15 14:55:05 [2025-01-15 14:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254368', 'tblTempUsageDetail_20' ) start [2025-01-15 14:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254368', 'tblTempUsageDetail_20' ) end [2025-01-15 14:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254368', 'tblTempVendorCDR_20' ) start [2025-01-15 14:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254368', 'tblTempVendorCDR_20' ) end [2025-01-15 14:55:24] Production.INFO: ProcessCDR(1,14254368,1,1,2) [2025-01-15 14:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254368', 'tblTempUsageDetail_20' ) start [2025-01-15 14:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254368', 'tblTempUsageDetail_20' ) end [2025-01-15 14:55:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:55:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:55:29] Production.INFO: ==24714== Releasing lock... [2025-01-15 14:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:55:29] Production.INFO: 64 MB #Memory Used# [2025-01-15 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:56:05 [end_date_ymd] => 2025-01-15 14:56:05 [RateCDR] => 1 ) [2025-01-15 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:56:05' and `end` < '2025-01-15 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:56:21] Production.INFO: count ==4784 [2025-01-15 14:56:23] Production.ERROR: pbx CDR StartTime 2025-01-15 11:56:05 - End Time 2025-01-15 14:56:05 [2025-01-15 14:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254373', 'tblTempUsageDetail_20' ) start [2025-01-15 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254373', 'tblTempUsageDetail_20' ) end [2025-01-15 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254373', 'tblTempVendorCDR_20' ) start [2025-01-15 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254373', 'tblTempVendorCDR_20' ) end [2025-01-15 14:56:23] Production.INFO: ProcessCDR(1,14254373,1,1,2) [2025-01-15 14:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254373', 'tblTempUsageDetail_20' ) start [2025-01-15 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254373', 'tblTempUsageDetail_20' ) end [2025-01-15 14:56:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:56:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:56:28] Production.INFO: ==24788== Releasing lock... [2025-01-15 14:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:56:28] Production.INFO: 63.75 MB #Memory Used# [2025-01-15 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:57:05 [end_date_ymd] => 2025-01-15 14:57:05 [RateCDR] => 1 ) [2025-01-15 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:57:05' and `end` < '2025-01-15 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:57:18] Production.INFO: count ==4779 [2025-01-15 14:57:20] Production.ERROR: pbx CDR StartTime 2025-01-15 11:57:05 - End Time 2025-01-15 14:57:05 [2025-01-15 14:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254378', 'tblTempUsageDetail_20' ) start [2025-01-15 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254378', 'tblTempUsageDetail_20' ) end [2025-01-15 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254378', 'tblTempVendorCDR_20' ) start [2025-01-15 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254378', 'tblTempVendorCDR_20' ) end [2025-01-15 14:57:20] Production.INFO: ProcessCDR(1,14254378,1,1,2) [2025-01-15 14:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254378', 'tblTempUsageDetail_20' ) start [2025-01-15 14:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254378', 'tblTempUsageDetail_20' ) end [2025-01-15 14:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:57:23] Production.INFO: ==24857== Releasing lock... [2025-01-15 14:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:57:23] Production.INFO: 63.75 MB #Memory Used# [2025-01-15 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:58:05 [end_date_ymd] => 2025-01-15 14:58:05 [RateCDR] => 1 ) [2025-01-15 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:58:05' and `end` < '2025-01-15 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:58:30] Production.INFO: count ==4765 [2025-01-15 14:58:32] Production.ERROR: pbx CDR StartTime 2025-01-15 11:58:05 - End Time 2025-01-15 14:58:05 [2025-01-15 14:58:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254383', 'tblTempUsageDetail_20' ) start [2025-01-15 14:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254383', 'tblTempUsageDetail_20' ) end [2025-01-15 14:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254383', 'tblTempVendorCDR_20' ) start [2025-01-15 14:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254383', 'tblTempVendorCDR_20' ) end [2025-01-15 14:58:32] Production.INFO: ProcessCDR(1,14254383,1,1,2) [2025-01-15 14:58:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:58:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:58:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:58:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254383', 'tblTempUsageDetail_20' ) start [2025-01-15 14:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254383', 'tblTempUsageDetail_20' ) end [2025-01-15 14:58:37] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:58:37] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:58:37] Production.INFO: ==24929== Releasing lock... [2025-01-15 14:58:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:58:37] Production.INFO: 63.75 MB #Memory Used# [2025-01-15 14:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 11:59:04 [end_date_ymd] => 2025-01-15 14:59:04 [RateCDR] => 1 ) [2025-01-15 14:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 11:59:04' and `end` < '2025-01-15 14:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 14:59:23] Production.INFO: count ==4763 [2025-01-15 14:59:25] Production.ERROR: pbx CDR StartTime 2025-01-15 11:59:04 - End Time 2025-01-15 14:59:04 [2025-01-15 14:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254388', 'tblTempUsageDetail_20' ) start [2025-01-15 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254388', 'tblTempUsageDetail_20' ) end [2025-01-15 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254388', 'tblTempVendorCDR_20' ) start [2025-01-15 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254388', 'tblTempVendorCDR_20' ) end [2025-01-15 14:59:25] Production.INFO: ProcessCDR(1,14254388,1,1,2) [2025-01-15 14:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 14:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 14:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254388', 'tblTempUsageDetail_20' ) start [2025-01-15 14:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254388', 'tblTempUsageDetail_20' ) end [2025-01-15 14:59:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 14:59:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 14:59:30] Production.INFO: ==24998== Releasing lock... [2025-01-15 14:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 14:59:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-15 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:00:06 [end_date_ymd] => 2025-01-15 15:00:06 [RateCDR] => 1 ) [2025-01-15 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:00:06' and `end` < '2025-01-15 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:00:21] Production.INFO: count ==4735 [2025-01-15 15:00:23] Production.ERROR: pbx CDR StartTime 2025-01-15 12:00:06 - End Time 2025-01-15 15:00:06 [2025-01-15 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254394', 'tblTempUsageDetail_20' ) start [2025-01-15 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254394', 'tblTempUsageDetail_20' ) end [2025-01-15 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254394', 'tblTempVendorCDR_20' ) start [2025-01-15 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254394', 'tblTempVendorCDR_20' ) end [2025-01-15 15:00:23] Production.INFO: ProcessCDR(1,14254394,1,1,2) [2025-01-15 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254394', 'tblTempUsageDetail_20' ) start [2025-01-15 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254394', 'tblTempUsageDetail_20' ) end [2025-01-15 15:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:00:27] Production.INFO: ==25073== Releasing lock... [2025-01-15 15:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:00:27] Production.INFO: 63.5 MB #Memory Used# [2025-01-15 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:01:05 [end_date_ymd] => 2025-01-15 15:01:05 [RateCDR] => 1 ) [2025-01-15 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:01:05' and `end` < '2025-01-15 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:01:23] Production.INFO: count ==4758 [2025-01-15 15:01:25] Production.ERROR: pbx CDR StartTime 2025-01-15 12:01:05 - End Time 2025-01-15 15:01:05 [2025-01-15 15:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254399', 'tblTempUsageDetail_20' ) start [2025-01-15 15:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254399', 'tblTempUsageDetail_20' ) end [2025-01-15 15:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254399', 'tblTempVendorCDR_20' ) start [2025-01-15 15:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254399', 'tblTempVendorCDR_20' ) end [2025-01-15 15:01:25] Production.INFO: ProcessCDR(1,14254399,1,1,2) [2025-01-15 15:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254399', 'tblTempUsageDetail_20' ) start [2025-01-15 15:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254399', 'tblTempUsageDetail_20' ) end [2025-01-15 15:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:01:30] Production.INFO: ==25237== Releasing lock... [2025-01-15 15:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:01:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-15 15:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:02:04 [end_date_ymd] => 2025-01-15 15:02:04 [RateCDR] => 1 ) [2025-01-15 15:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:02:04' and `end` < '2025-01-15 15:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:02:22] Production.INFO: count ==4753 [2025-01-15 15:02:24] Production.ERROR: pbx CDR StartTime 2025-01-15 12:02:04 - End Time 2025-01-15 15:02:04 [2025-01-15 15:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254404', 'tblTempUsageDetail_20' ) start [2025-01-15 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254404', 'tblTempUsageDetail_20' ) end [2025-01-15 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254404', 'tblTempVendorCDR_20' ) start [2025-01-15 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254404', 'tblTempVendorCDR_20' ) end [2025-01-15 15:02:24] Production.INFO: ProcessCDR(1,14254404,1,1,2) [2025-01-15 15:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254404', 'tblTempUsageDetail_20' ) start [2025-01-15 15:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254404', 'tblTempUsageDetail_20' ) end [2025-01-15 15:02:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:02:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:02:30] Production.INFO: ==25307== Releasing lock... [2025-01-15 15:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:02:30] Production.INFO: 63.5 MB #Memory Used# [2025-01-15 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:03:05 [end_date_ymd] => 2025-01-15 15:03:05 [RateCDR] => 1 ) [2025-01-15 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:03:05' and `end` < '2025-01-15 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:03:24] Production.INFO: count ==4750 [2025-01-15 15:03:26] Production.ERROR: pbx CDR StartTime 2025-01-15 12:03:05 - End Time 2025-01-15 15:03:05 [2025-01-15 15:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254409', 'tblTempUsageDetail_20' ) start [2025-01-15 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254409', 'tblTempUsageDetail_20' ) end [2025-01-15 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254409', 'tblTempVendorCDR_20' ) start [2025-01-15 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254409', 'tblTempVendorCDR_20' ) end [2025-01-15 15:03:26] Production.INFO: ProcessCDR(1,14254409,1,1,2) [2025-01-15 15:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254409', 'tblTempUsageDetail_20' ) start [2025-01-15 15:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254409', 'tblTempUsageDetail_20' ) end [2025-01-15 15:03:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:03:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:03:32] Production.INFO: ==25418== Releasing lock... [2025-01-15 15:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:03:32] Production.INFO: 63.5 MB #Memory Used# [2025-01-15 15:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:04:04 [end_date_ymd] => 2025-01-15 15:04:04 [RateCDR] => 1 ) [2025-01-15 15:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:04:04' and `end` < '2025-01-15 15:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:04:22] Production.INFO: count ==4735 [2025-01-15 15:04:23] Production.ERROR: pbx CDR StartTime 2025-01-15 12:04:04 - End Time 2025-01-15 15:04:04 [2025-01-15 15:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254414', 'tblTempUsageDetail_20' ) start [2025-01-15 15:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254414', 'tblTempUsageDetail_20' ) end [2025-01-15 15:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254414', 'tblTempVendorCDR_20' ) start [2025-01-15 15:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254414', 'tblTempVendorCDR_20' ) end [2025-01-15 15:04:24] Production.INFO: ProcessCDR(1,14254414,1,1,2) [2025-01-15 15:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254414', 'tblTempUsageDetail_20' ) start [2025-01-15 15:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254414', 'tblTempUsageDetail_20' ) end [2025-01-15 15:04:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:04:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:04:29] Production.INFO: ==25490== Releasing lock... [2025-01-15 15:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:04:29] Production.INFO: 63.5 MB #Memory Used# [2025-01-15 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:05:05 [end_date_ymd] => 2025-01-15 15:05:05 [RateCDR] => 1 ) [2025-01-15 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:05:05' and `end` < '2025-01-15 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:05:25] Production.INFO: count ==4751 [2025-01-15 15:05:26] Production.ERROR: pbx CDR StartTime 2025-01-15 12:05:05 - End Time 2025-01-15 15:05:05 [2025-01-15 15:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254419', 'tblTempUsageDetail_20' ) start [2025-01-15 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254419', 'tblTempUsageDetail_20' ) end [2025-01-15 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254419', 'tblTempVendorCDR_20' ) start [2025-01-15 15:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254419', 'tblTempVendorCDR_20' ) end [2025-01-15 15:05:26] Production.INFO: ProcessCDR(1,14254419,1,1,2) [2025-01-15 15:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254419', 'tblTempUsageDetail_20' ) start [2025-01-15 15:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254419', 'tblTempUsageDetail_20' ) end [2025-01-15 15:05:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:05:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:05:31] Production.INFO: ==25639== Releasing lock... [2025-01-15 15:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:05:31] Production.INFO: 63.5 MB #Memory Used# [2025-01-15 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:06:06 [end_date_ymd] => 2025-01-15 15:06:06 [RateCDR] => 1 ) [2025-01-15 15:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:06:06' and `end` < '2025-01-15 15:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:06:26] Production.INFO: count ==4757 [2025-01-15 15:06:28] Production.ERROR: pbx CDR StartTime 2025-01-15 12:06:06 - End Time 2025-01-15 15:06:06 [2025-01-15 15:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254424', 'tblTempUsageDetail_20' ) start [2025-01-15 15:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254424', 'tblTempUsageDetail_20' ) end [2025-01-15 15:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254424', 'tblTempVendorCDR_20' ) start [2025-01-15 15:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254424', 'tblTempVendorCDR_20' ) end [2025-01-15 15:06:28] Production.INFO: ProcessCDR(1,14254424,1,1,2) [2025-01-15 15:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254424', 'tblTempUsageDetail_20' ) start [2025-01-15 15:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254424', 'tblTempUsageDetail_20' ) end [2025-01-15 15:06:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:06:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:06:33] Production.INFO: ==25718== Releasing lock... [2025-01-15 15:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:06:33] Production.INFO: 63.75 MB #Memory Used# [2025-01-15 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:07:05 [end_date_ymd] => 2025-01-15 15:07:05 [RateCDR] => 1 ) [2025-01-15 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:07:05' and `end` < '2025-01-15 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:07:22] Production.INFO: count ==4774 [2025-01-15 15:07:24] Production.ERROR: pbx CDR StartTime 2025-01-15 12:07:05 - End Time 2025-01-15 15:07:05 [2025-01-15 15:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254429', 'tblTempUsageDetail_20' ) start [2025-01-15 15:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254429', 'tblTempUsageDetail_20' ) end [2025-01-15 15:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254429', 'tblTempVendorCDR_20' ) start [2025-01-15 15:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254429', 'tblTempVendorCDR_20' ) end [2025-01-15 15:07:24] Production.INFO: ProcessCDR(1,14254429,1,1,2) [2025-01-15 15:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254429', 'tblTempUsageDetail_20' ) start [2025-01-15 15:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254429', 'tblTempUsageDetail_20' ) end [2025-01-15 15:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:07:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:07:28] Production.INFO: ==25788== Releasing lock... [2025-01-15 15:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:07:28] Production.INFO: 63.75 MB #Memory Used# [2025-01-15 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:08:05 [end_date_ymd] => 2025-01-15 15:08:05 [RateCDR] => 1 ) [2025-01-15 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:08:05' and `end` < '2025-01-15 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:08:19] Production.INFO: count ==4775 [2025-01-15 15:08:20] Production.ERROR: pbx CDR StartTime 2025-01-15 12:08:05 - End Time 2025-01-15 15:08:05 [2025-01-15 15:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254434', 'tblTempUsageDetail_20' ) start [2025-01-15 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254434', 'tblTempUsageDetail_20' ) end [2025-01-15 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254434', 'tblTempVendorCDR_20' ) start [2025-01-15 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254434', 'tblTempVendorCDR_20' ) end [2025-01-15 15:08:21] Production.INFO: ProcessCDR(1,14254434,1,1,2) [2025-01-15 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254434', 'tblTempUsageDetail_20' ) start [2025-01-15 15:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254434', 'tblTempUsageDetail_20' ) end [2025-01-15 15:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:08:25] Production.INFO: ==25863== Releasing lock... [2025-01-15 15:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:08:25] Production.INFO: 63.75 MB #Memory Used# [2025-01-15 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:09:05 [end_date_ymd] => 2025-01-15 15:09:05 [RateCDR] => 1 ) [2025-01-15 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:09:05' and `end` < '2025-01-15 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:09:21] Production.INFO: count ==4753 [2025-01-15 15:09:23] Production.ERROR: pbx CDR StartTime 2025-01-15 12:09:05 - End Time 2025-01-15 15:09:05 [2025-01-15 15:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254439', 'tblTempUsageDetail_20' ) start [2025-01-15 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254439', 'tblTempUsageDetail_20' ) end [2025-01-15 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254439', 'tblTempVendorCDR_20' ) start [2025-01-15 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254439', 'tblTempVendorCDR_20' ) end [2025-01-15 15:09:23] Production.INFO: ProcessCDR(1,14254439,1,1,2) [2025-01-15 15:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254439', 'tblTempUsageDetail_20' ) start [2025-01-15 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254439', 'tblTempUsageDetail_20' ) end [2025-01-15 15:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:09:27] Production.INFO: ==26010== Releasing lock... [2025-01-15 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:09:27] Production.INFO: 63.5 MB #Memory Used# [2025-01-15 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:10:06 [end_date_ymd] => 2025-01-15 15:10:06 [RateCDR] => 1 ) [2025-01-15 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:10:06' and `end` < '2025-01-15 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:10:20] Production.INFO: count ==4731 [2025-01-15 15:10:22] Production.ERROR: pbx CDR StartTime 2025-01-15 12:10:06 - End Time 2025-01-15 15:10:06 [2025-01-15 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254445', 'tblTempUsageDetail_20' ) start [2025-01-15 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254445', 'tblTempUsageDetail_20' ) end [2025-01-15 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254445', 'tblTempVendorCDR_20' ) start [2025-01-15 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254445', 'tblTempVendorCDR_20' ) end [2025-01-15 15:10:22] Production.INFO: ProcessCDR(1,14254445,1,1,2) [2025-01-15 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254445', 'tblTempUsageDetail_20' ) start [2025-01-15 15:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254445', 'tblTempUsageDetail_20' ) end [2025-01-15 15:10:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:10:26] Production.INFO: ==26082== Releasing lock... [2025-01-15 15:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:10:26] Production.INFO: 63.5 MB #Memory Used# [2025-01-15 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:11:05 [end_date_ymd] => 2025-01-15 15:11:05 [RateCDR] => 1 ) [2025-01-15 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:11:05' and `end` < '2025-01-15 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:11:20] Production.INFO: count ==4725 [2025-01-15 15:11:22] Production.ERROR: pbx CDR StartTime 2025-01-15 12:11:05 - End Time 2025-01-15 15:11:05 [2025-01-15 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254450', 'tblTempUsageDetail_20' ) start [2025-01-15 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254450', 'tblTempUsageDetail_20' ) end [2025-01-15 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254450', 'tblTempVendorCDR_20' ) start [2025-01-15 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254450', 'tblTempVendorCDR_20' ) end [2025-01-15 15:11:22] Production.INFO: ProcessCDR(1,14254450,1,1,2) [2025-01-15 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254450', 'tblTempUsageDetail_20' ) start [2025-01-15 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254450', 'tblTempUsageDetail_20' ) end [2025-01-15 15:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:11:28] Production.INFO: ==26156== Releasing lock... [2025-01-15 15:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:11:28] Production.INFO: 63.25 MB #Memory Used# [2025-01-15 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:12:05 [end_date_ymd] => 2025-01-15 15:12:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 12:12:05' and `end` < '2025-01-15 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-01-15 15:12:21] Production.INFO: count ==4710 [2025-01-15 15:12:23] Production.ERROR: pbx CDR StartTime 2025-01-15 12:12:05 - End Time 2025-01-15 15:12:05 [2025-01-15 15:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254455', 'tblTempUsageDetail_20' ) start [2025-01-15 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254455', 'tblTempUsageDetail_20' ) end [2025-01-15 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254455', 'tblTempVendorCDR_20' ) start [2025-01-15 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254455', 'tblTempVendorCDR_20' ) end [2025-01-15 15:12:23] Production.INFO: ProcessCDR(1,14254455,1,1,2) [2025-01-15 15:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254455', 'tblTempUsageDetail_20' ) start [2025-01-15 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254455', 'tblTempUsageDetail_20' ) end [2025-01-15 15:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:12:28] Production.INFO: ==26306== Releasing lock... [2025-01-15 15:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:12:28] Production.INFO: 63.25 MB #Memory Used# [2025-01-15 15:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:13:04 [end_date_ymd] => 2025-01-15 15:13:04 [RateCDR] => 1 ) [2025-01-15 15:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:13:04' and `end` < '2025-01-15 15:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:13:20] Production.INFO: count ==4723 [2025-01-15 15:13:22] Production.ERROR: pbx CDR StartTime 2025-01-15 12:13:04 - End Time 2025-01-15 15:13:04 [2025-01-15 15:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254460', 'tblTempUsageDetail_20' ) start [2025-01-15 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254460', 'tblTempUsageDetail_20' ) end [2025-01-15 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254460', 'tblTempVendorCDR_20' ) start [2025-01-15 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254460', 'tblTempVendorCDR_20' ) end [2025-01-15 15:13:23] Production.INFO: ProcessCDR(1,14254460,1,1,2) [2025-01-15 15:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254460', 'tblTempUsageDetail_20' ) start [2025-01-15 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254460', 'tblTempUsageDetail_20' ) end [2025-01-15 15:13:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:13:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:13:28] Production.INFO: ==26375== Releasing lock... [2025-01-15 15:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:13:28] Production.INFO: 63.5 MB #Memory Used# [2025-01-15 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:14:05 [end_date_ymd] => 2025-01-15 15:14:05 [RateCDR] => 1 ) [2025-01-15 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:14:05' and `end` < '2025-01-15 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:14:21] Production.INFO: count ==4731 [2025-01-15 15:14:23] Production.ERROR: pbx CDR StartTime 2025-01-15 12:14:05 - End Time 2025-01-15 15:14:05 [2025-01-15 15:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254465', 'tblTempUsageDetail_20' ) start [2025-01-15 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254465', 'tblTempUsageDetail_20' ) end [2025-01-15 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254465', 'tblTempVendorCDR_20' ) start [2025-01-15 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254465', 'tblTempVendorCDR_20' ) end [2025-01-15 15:14:23] Production.INFO: ProcessCDR(1,14254465,1,1,2) [2025-01-15 15:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254465', 'tblTempUsageDetail_20' ) start [2025-01-15 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254465', 'tblTempUsageDetail_20' ) end [2025-01-15 15:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:14:28] Production.INFO: ==26445== Releasing lock... [2025-01-15 15:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:14:28] Production.INFO: 63.5 MB #Memory Used# [2025-01-15 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:15:05 [end_date_ymd] => 2025-01-15 15:15:05 [RateCDR] => 1 ) [2025-01-15 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:15:05' and `end` < '2025-01-15 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:15:25] Production.INFO: count ==4714 [2025-01-15 15:15:27] Production.ERROR: pbx CDR StartTime 2025-01-15 12:15:05 - End Time 2025-01-15 15:15:05 [2025-01-15 15:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254470', 'tblTempUsageDetail_20' ) start [2025-01-15 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254470', 'tblTempUsageDetail_20' ) end [2025-01-15 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254470', 'tblTempVendorCDR_20' ) start [2025-01-15 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254470', 'tblTempVendorCDR_20' ) end [2025-01-15 15:15:27] Production.INFO: ProcessCDR(1,14254470,1,1,2) [2025-01-15 15:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254470', 'tblTempUsageDetail_20' ) start [2025-01-15 15:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254470', 'tblTempUsageDetail_20' ) end [2025-01-15 15:15:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:15:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:15:32] Production.INFO: ==26559== Releasing lock... [2025-01-15 15:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:15:32] Production.INFO: 63.25 MB #Memory Used# [2025-01-15 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:16:05 [end_date_ymd] => 2025-01-15 15:16:05 [RateCDR] => 1 ) [2025-01-15 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:16:05' and `end` < '2025-01-15 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:16:20] Production.INFO: count ==4709 [2025-01-15 15:16:22] Production.ERROR: pbx CDR StartTime 2025-01-15 12:16:05 - End Time 2025-01-15 15:16:05 [2025-01-15 15:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254475', 'tblTempUsageDetail_20' ) start [2025-01-15 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254475', 'tblTempUsageDetail_20' ) end [2025-01-15 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254475', 'tblTempVendorCDR_20' ) start [2025-01-15 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254475', 'tblTempVendorCDR_20' ) end [2025-01-15 15:16:23] Production.INFO: ProcessCDR(1,14254475,1,1,2) [2025-01-15 15:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254475', 'tblTempUsageDetail_20' ) start [2025-01-15 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254475', 'tblTempUsageDetail_20' ) end [2025-01-15 15:16:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:16:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:16:27] Production.INFO: ==26669== Releasing lock... [2025-01-15 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:16:27] Production.INFO: 63.25 MB #Memory Used# [2025-01-15 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:17:05 [end_date_ymd] => 2025-01-15 15:17:05 [RateCDR] => 1 ) [2025-01-15 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:17:05' and `end` < '2025-01-15 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:17:23] Production.INFO: count ==4684 [2025-01-15 15:17:25] Production.ERROR: pbx CDR StartTime 2025-01-15 12:17:05 - End Time 2025-01-15 15:17:05 [2025-01-15 15:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254480', 'tblTempUsageDetail_20' ) start [2025-01-15 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254480', 'tblTempUsageDetail_20' ) end [2025-01-15 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254480', 'tblTempVendorCDR_20' ) start [2025-01-15 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254480', 'tblTempVendorCDR_20' ) end [2025-01-15 15:17:25] Production.INFO: ProcessCDR(1,14254480,1,1,2) [2025-01-15 15:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254480', 'tblTempUsageDetail_20' ) start [2025-01-15 15:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254480', 'tblTempUsageDetail_20' ) end [2025-01-15 15:17:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:17:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:17:30] Production.INFO: ==26739== Releasing lock... [2025-01-15 15:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:17:30] Production.INFO: 63 MB #Memory Used# [2025-01-15 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:18:05 [end_date_ymd] => 2025-01-15 15:18:05 [RateCDR] => 1 ) [2025-01-15 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:18:05' and `end` < '2025-01-15 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:18:25] Production.INFO: count ==4676 [2025-01-15 15:18:27] Production.ERROR: pbx CDR StartTime 2025-01-15 12:18:05 - End Time 2025-01-15 15:18:05 [2025-01-15 15:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254485', 'tblTempUsageDetail_20' ) start [2025-01-15 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254485', 'tblTempUsageDetail_20' ) end [2025-01-15 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254485', 'tblTempVendorCDR_20' ) start [2025-01-15 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254485', 'tblTempVendorCDR_20' ) end [2025-01-15 15:18:27] Production.INFO: ProcessCDR(1,14254485,1,1,2) [2025-01-15 15:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254485', 'tblTempUsageDetail_20' ) start [2025-01-15 15:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254485', 'tblTempUsageDetail_20' ) end [2025-01-15 15:18:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:18:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:18:32] Production.INFO: ==26809== Releasing lock... [2025-01-15 15:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:18:32] Production.INFO: 63 MB #Memory Used# [2025-01-15 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:19:05 [end_date_ymd] => 2025-01-15 15:19:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 12:19:05' and `end` < '2025-01-15 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-01-15 15:19:24] Production.INFO: count ==4663 [2025-01-15 15:19:26] Production.ERROR: pbx CDR StartTime 2025-01-15 12:19:05 - End Time 2025-01-15 15:19:05 [2025-01-15 15:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254490', 'tblTempUsageDetail_20' ) start [2025-01-15 15:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254490', 'tblTempUsageDetail_20' ) end [2025-01-15 15:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254490', 'tblTempVendorCDR_20' ) start [2025-01-15 15:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254490', 'tblTempVendorCDR_20' ) end [2025-01-15 15:19:26] Production.INFO: ProcessCDR(1,14254490,1,1,2) [2025-01-15 15:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254490', 'tblTempUsageDetail_20' ) start [2025-01-15 15:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254490', 'tblTempUsageDetail_20' ) end [2025-01-15 15:19:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:19:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:19:31] Production.INFO: ==26920== Releasing lock... [2025-01-15 15:19:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:19:31] Production.INFO: 63 MB #Memory Used# [2025-01-15 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:20:05 [end_date_ymd] => 2025-01-15 15:20:05 [RateCDR] => 1 ) [2025-01-15 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:20:05' and `end` < '2025-01-15 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:20:23] Production.INFO: count ==4676 [2025-01-15 15:20:25] Production.ERROR: pbx CDR StartTime 2025-01-15 12:20:05 - End Time 2025-01-15 15:20:05 [2025-01-15 15:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254496', 'tblTempUsageDetail_20' ) start [2025-01-15 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254496', 'tblTempUsageDetail_20' ) end [2025-01-15 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254496', 'tblTempVendorCDR_20' ) start [2025-01-15 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254496', 'tblTempVendorCDR_20' ) end [2025-01-15 15:20:25] Production.INFO: ProcessCDR(1,14254496,1,1,2) [2025-01-15 15:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254496', 'tblTempUsageDetail_20' ) start [2025-01-15 15:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254496', 'tblTempUsageDetail_20' ) end [2025-01-15 15:20:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:20:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:20:30] Production.INFO: ==26996== Releasing lock... [2025-01-15 15:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:20:30] Production.INFO: 63 MB #Memory Used# [2025-01-15 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:21:05 [end_date_ymd] => 2025-01-15 15:21:05 [RateCDR] => 1 ) [2025-01-15 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:21:05' and `end` < '2025-01-15 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:21:22] Production.INFO: count ==4635 [2025-01-15 15:21:24] Production.ERROR: pbx CDR StartTime 2025-01-15 12:21:05 - End Time 2025-01-15 15:21:05 [2025-01-15 15:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254501', 'tblTempUsageDetail_20' ) start [2025-01-15 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254501', 'tblTempUsageDetail_20' ) end [2025-01-15 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254501', 'tblTempVendorCDR_20' ) start [2025-01-15 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254501', 'tblTempVendorCDR_20' ) end [2025-01-15 15:21:24] Production.INFO: ProcessCDR(1,14254501,1,1,2) [2025-01-15 15:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254501', 'tblTempUsageDetail_20' ) start [2025-01-15 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254501', 'tblTempUsageDetail_20' ) end [2025-01-15 15:21:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:21:27] Production.INFO: ==27070== Releasing lock... [2025-01-15 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:21:27] Production.INFO: 62.75 MB #Memory Used# [2025-01-15 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:22:05 [end_date_ymd] => 2025-01-15 15:22:05 [RateCDR] => 1 ) [2025-01-15 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:22:05' and `end` < '2025-01-15 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:22:20] Production.INFO: count ==4614 [2025-01-15 15:22:22] Production.ERROR: pbx CDR StartTime 2025-01-15 12:22:05 - End Time 2025-01-15 15:22:05 [2025-01-15 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254506', 'tblTempUsageDetail_20' ) start [2025-01-15 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254506', 'tblTempUsageDetail_20' ) end [2025-01-15 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254506', 'tblTempVendorCDR_20' ) start [2025-01-15 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254506', 'tblTempVendorCDR_20' ) end [2025-01-15 15:22:22] Production.INFO: ProcessCDR(1,14254506,1,1,2) [2025-01-15 15:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254506', 'tblTempUsageDetail_20' ) start [2025-01-15 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254506', 'tblTempUsageDetail_20' ) end [2025-01-15 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:22:27] Production.INFO: ==27144== Releasing lock... [2025-01-15 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:22:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:23:05 [end_date_ymd] => 2025-01-15 15:23:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 12:23:05' and `end` < '2025-01-15 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-01-15 15:23:18] Production.INFO: count ==4622 [2025-01-15 15:23:20] Production.ERROR: pbx CDR StartTime 2025-01-15 12:23:05 - End Time 2025-01-15 15:23:05 [2025-01-15 15:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254511', 'tblTempUsageDetail_20' ) start [2025-01-15 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254511', 'tblTempUsageDetail_20' ) end [2025-01-15 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254511', 'tblTempVendorCDR_20' ) start [2025-01-15 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254511', 'tblTempVendorCDR_20' ) end [2025-01-15 15:23:20] Production.INFO: ProcessCDR(1,14254511,1,1,2) [2025-01-15 15:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254511', 'tblTempUsageDetail_20' ) start [2025-01-15 15:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254511', 'tblTempUsageDetail_20' ) end [2025-01-15 15:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:23:25] Production.INFO: ==27213== Releasing lock... [2025-01-15 15:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:23:25] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:24:05 [end_date_ymd] => 2025-01-15 15:24:05 [RateCDR] => 1 ) [2025-01-15 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:24:05' and `end` < '2025-01-15 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:24:30] Production.INFO: count ==4619 [2025-01-15 15:24:32] Production.ERROR: pbx CDR StartTime 2025-01-15 12:24:05 - End Time 2025-01-15 15:24:05 [2025-01-15 15:24:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254516', 'tblTempUsageDetail_20' ) start [2025-01-15 15:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254516', 'tblTempUsageDetail_20' ) end [2025-01-15 15:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254516', 'tblTempVendorCDR_20' ) start [2025-01-15 15:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254516', 'tblTempVendorCDR_20' ) end [2025-01-15 15:24:32] Production.INFO: ProcessCDR(1,14254516,1,1,2) [2025-01-15 15:24:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:24:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:24:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:24:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:24:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254516', 'tblTempUsageDetail_20' ) start [2025-01-15 15:24:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254516', 'tblTempUsageDetail_20' ) end [2025-01-15 15:24:37] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:24:37] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:24:37] Production.INFO: ==27285== Releasing lock... [2025-01-15 15:24:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:24:37] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:25:05 [end_date_ymd] => 2025-01-15 15:25:05 [RateCDR] => 1 ) [2025-01-15 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:25:05' and `end` < '2025-01-15 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:25:24] Production.INFO: count ==4628 [2025-01-15 15:25:26] Production.ERROR: pbx CDR StartTime 2025-01-15 12:25:05 - End Time 2025-01-15 15:25:05 [2025-01-15 15:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254521', 'tblTempUsageDetail_20' ) start [2025-01-15 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254521', 'tblTempUsageDetail_20' ) end [2025-01-15 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254521', 'tblTempVendorCDR_20' ) start [2025-01-15 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254521', 'tblTempVendorCDR_20' ) end [2025-01-15 15:25:27] Production.INFO: ProcessCDR(1,14254521,1,1,2) [2025-01-15 15:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254521', 'tblTempUsageDetail_20' ) start [2025-01-15 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254521', 'tblTempUsageDetail_20' ) end [2025-01-15 15:25:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:25:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:25:32] Production.INFO: ==27355== Releasing lock... [2025-01-15 15:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:25:32] Production.INFO: 62.75 MB #Memory Used# [2025-01-15 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:26:05 [end_date_ymd] => 2025-01-15 15:26:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 12:26:05' and `end` < '2025-01-15 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-01-15 15:26:21] Production.INFO: count ==4655 [2025-01-15 15:26:23] Production.ERROR: pbx CDR StartTime 2025-01-15 12:26:05 - End Time 2025-01-15 15:26:05 [2025-01-15 15:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254526', 'tblTempUsageDetail_20' ) start [2025-01-15 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254526', 'tblTempUsageDetail_20' ) end [2025-01-15 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254526', 'tblTempVendorCDR_20' ) start [2025-01-15 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254526', 'tblTempVendorCDR_20' ) end [2025-01-15 15:26:23] Production.INFO: ProcessCDR(1,14254526,1,1,2) [2025-01-15 15:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254526', 'tblTempUsageDetail_20' ) start [2025-01-15 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254526', 'tblTempUsageDetail_20' ) end [2025-01-15 15:26:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:26:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:26:28] Production.INFO: ==27427== Releasing lock... [2025-01-15 15:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:26:28] Production.INFO: 62.75 MB #Memory Used# [2025-01-15 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:27:05 [end_date_ymd] => 2025-01-15 15:27:05 [RateCDR] => 1 ) [2025-01-15 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:27:05' and `end` < '2025-01-15 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:27:21] Production.INFO: count ==4650 [2025-01-15 15:27:22] Production.ERROR: pbx CDR StartTime 2025-01-15 12:27:05 - End Time 2025-01-15 15:27:05 [2025-01-15 15:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254531', 'tblTempUsageDetail_20' ) start [2025-01-15 15:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254531', 'tblTempUsageDetail_20' ) end [2025-01-15 15:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254531', 'tblTempVendorCDR_20' ) start [2025-01-15 15:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254531', 'tblTempVendorCDR_20' ) end [2025-01-15 15:27:23] Production.INFO: ProcessCDR(1,14254531,1,1,2) [2025-01-15 15:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254531', 'tblTempUsageDetail_20' ) start [2025-01-15 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254531', 'tblTempUsageDetail_20' ) end [2025-01-15 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:27:26] Production.INFO: ==27497== Releasing lock... [2025-01-15 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:27:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-15 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:28:05 [end_date_ymd] => 2025-01-15 15:28:05 [RateCDR] => 1 ) [2025-01-15 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:28:05' and `end` < '2025-01-15 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:28:20] Production.INFO: count ==4661 [2025-01-15 15:28:21] Production.ERROR: pbx CDR StartTime 2025-01-15 12:28:05 - End Time 2025-01-15 15:28:05 [2025-01-15 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254536', 'tblTempUsageDetail_20' ) start [2025-01-15 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254536', 'tblTempUsageDetail_20' ) end [2025-01-15 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254536', 'tblTempVendorCDR_20' ) start [2025-01-15 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254536', 'tblTempVendorCDR_20' ) end [2025-01-15 15:28:22] Production.INFO: ProcessCDR(1,14254536,1,1,2) [2025-01-15 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254536', 'tblTempUsageDetail_20' ) start [2025-01-15 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254536', 'tblTempUsageDetail_20' ) end [2025-01-15 15:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:28:26] Production.INFO: ==27572== Releasing lock... [2025-01-15 15:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:28:26] Production.INFO: 63 MB #Memory Used# [2025-01-15 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:29:05 [end_date_ymd] => 2025-01-15 15:29:05 [RateCDR] => 1 ) [2025-01-15 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:29:05' and `end` < '2025-01-15 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:29:23] Production.INFO: count ==4653 [2025-01-15 15:29:25] Production.ERROR: pbx CDR StartTime 2025-01-15 12:29:05 - End Time 2025-01-15 15:29:05 [2025-01-15 15:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254541', 'tblTempUsageDetail_20' ) start [2025-01-15 15:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254541', 'tblTempUsageDetail_20' ) end [2025-01-15 15:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254541', 'tblTempVendorCDR_20' ) start [2025-01-15 15:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254541', 'tblTempVendorCDR_20' ) end [2025-01-15 15:29:25] Production.INFO: ProcessCDR(1,14254541,1,1,2) [2025-01-15 15:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254541', 'tblTempUsageDetail_20' ) start [2025-01-15 15:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254541', 'tblTempUsageDetail_20' ) end [2025-01-15 15:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:29:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:29:30] Production.INFO: ==27645== Releasing lock... [2025-01-15 15:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:29:30] Production.INFO: 62.75 MB #Memory Used# [2025-01-15 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:30:05 [end_date_ymd] => 2025-01-15 15:30:05 [RateCDR] => 1 ) [2025-01-15 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:30:05' and `end` < '2025-01-15 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:30:25] Production.INFO: count ==4651 [2025-01-15 15:30:27] Production.ERROR: pbx CDR StartTime 2025-01-15 12:30:05 - End Time 2025-01-15 15:30:05 [2025-01-15 15:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254546', 'tblTempUsageDetail_20' ) start [2025-01-15 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254546', 'tblTempUsageDetail_20' ) end [2025-01-15 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254546', 'tblTempVendorCDR_20' ) start [2025-01-15 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254546', 'tblTempVendorCDR_20' ) end [2025-01-15 15:30:27] Production.INFO: ProcessCDR(1,14254546,1,1,2) [2025-01-15 15:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254546', 'tblTempUsageDetail_20' ) start [2025-01-15 15:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254546', 'tblTempUsageDetail_20' ) end [2025-01-15 15:30:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:30:32] Production.INFO: ==27718== Releasing lock... [2025-01-15 15:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:30:32] Production.INFO: 62.75 MB #Memory Used# [2025-01-15 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:31:05 [end_date_ymd] => 2025-01-15 15:31:05 [RateCDR] => 1 ) [2025-01-15 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:31:05' and `end` < '2025-01-15 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:31:26] Production.INFO: count ==4654 [2025-01-15 15:31:28] Production.ERROR: pbx CDR StartTime 2025-01-15 12:31:05 - End Time 2025-01-15 15:31:05 [2025-01-15 15:31:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254552', 'tblTempUsageDetail_20' ) start [2025-01-15 15:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254552', 'tblTempUsageDetail_20' ) end [2025-01-15 15:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254552', 'tblTempVendorCDR_20' ) start [2025-01-15 15:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254552', 'tblTempVendorCDR_20' ) end [2025-01-15 15:31:28] Production.INFO: ProcessCDR(1,14254552,1,1,2) [2025-01-15 15:31:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254552', 'tblTempUsageDetail_20' ) start [2025-01-15 15:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254552', 'tblTempUsageDetail_20' ) end [2025-01-15 15:31:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:31:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:31:33] Production.INFO: ==27790== Releasing lock... [2025-01-15 15:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:31:33] Production.INFO: 62.75 MB #Memory Used# [2025-01-15 15:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:32:04 [end_date_ymd] => 2025-01-15 15:32:04 [RateCDR] => 1 ) [2025-01-15 15:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:32:04' and `end` < '2025-01-15 15:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:32:22] Production.INFO: count ==4648 [2025-01-15 15:32:24] Production.ERROR: pbx CDR StartTime 2025-01-15 12:32:04 - End Time 2025-01-15 15:32:04 [2025-01-15 15:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254557', 'tblTempUsageDetail_20' ) start [2025-01-15 15:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254557', 'tblTempUsageDetail_20' ) end [2025-01-15 15:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254557', 'tblTempVendorCDR_20' ) start [2025-01-15 15:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254557', 'tblTempVendorCDR_20' ) end [2025-01-15 15:32:24] Production.INFO: ProcessCDR(1,14254557,1,1,2) [2025-01-15 15:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254557', 'tblTempUsageDetail_20' ) start [2025-01-15 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254557', 'tblTempUsageDetail_20' ) end [2025-01-15 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:32:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:32:29] Production.INFO: ==27861== Releasing lock... [2025-01-15 15:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:32:29] Production.INFO: 62.75 MB #Memory Used# [2025-01-15 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:33:05 [end_date_ymd] => 2025-01-15 15:33:05 [RateCDR] => 1 ) [2025-01-15 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:33:05' and `end` < '2025-01-15 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:33:23] Production.INFO: count ==4638 [2025-01-15 15:33:25] Production.ERROR: pbx CDR StartTime 2025-01-15 12:33:05 - End Time 2025-01-15 15:33:05 [2025-01-15 15:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254562', 'tblTempUsageDetail_20' ) start [2025-01-15 15:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254562', 'tblTempUsageDetail_20' ) end [2025-01-15 15:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254562', 'tblTempVendorCDR_20' ) start [2025-01-15 15:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254562', 'tblTempVendorCDR_20' ) end [2025-01-15 15:33:25] Production.INFO: ProcessCDR(1,14254562,1,1,2) [2025-01-15 15:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254562', 'tblTempUsageDetail_20' ) start [2025-01-15 15:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254562', 'tblTempUsageDetail_20' ) end [2025-01-15 15:33:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:33:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:33:30] Production.INFO: ==27932== Releasing lock... [2025-01-15 15:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:33:30] Production.INFO: 62.75 MB #Memory Used# [2025-01-15 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:34:05 [end_date_ymd] => 2025-01-15 15:34:05 [RateCDR] => 1 ) [2025-01-15 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:34:05' and `end` < '2025-01-15 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:34:21] Production.INFO: count ==4639 [2025-01-15 15:34:23] Production.ERROR: pbx CDR StartTime 2025-01-15 12:34:05 - End Time 2025-01-15 15:34:05 [2025-01-15 15:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254567', 'tblTempUsageDetail_20' ) start [2025-01-15 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254567', 'tblTempUsageDetail_20' ) end [2025-01-15 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254567', 'tblTempVendorCDR_20' ) start [2025-01-15 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254567', 'tblTempVendorCDR_20' ) end [2025-01-15 15:34:23] Production.INFO: ProcessCDR(1,14254567,1,1,2) [2025-01-15 15:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254567', 'tblTempUsageDetail_20' ) start [2025-01-15 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254567', 'tblTempUsageDetail_20' ) end [2025-01-15 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:34:27] Production.INFO: ==28009== Releasing lock... [2025-01-15 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:34:27] Production.INFO: 62.75 MB #Memory Used# [2025-01-15 15:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:35:06 [end_date_ymd] => 2025-01-15 15:35:06 [RateCDR] => 1 ) [2025-01-15 15:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:35:06' and `end` < '2025-01-15 15:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:35:25] Production.INFO: count ==4618 [2025-01-15 15:35:27] Production.ERROR: pbx CDR StartTime 2025-01-15 12:35:06 - End Time 2025-01-15 15:35:06 [2025-01-15 15:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254572', 'tblTempUsageDetail_20' ) start [2025-01-15 15:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254572', 'tblTempUsageDetail_20' ) end [2025-01-15 15:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254572', 'tblTempVendorCDR_20' ) start [2025-01-15 15:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254572', 'tblTempVendorCDR_20' ) end [2025-01-15 15:35:27] Production.INFO: ProcessCDR(1,14254572,1,1,2) [2025-01-15 15:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254572', 'tblTempUsageDetail_20' ) start [2025-01-15 15:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254572', 'tblTempUsageDetail_20' ) end [2025-01-15 15:35:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:35:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:35:30] Production.INFO: ==28118== Releasing lock... [2025-01-15 15:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:35:30] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:36:05 [end_date_ymd] => 2025-01-15 15:36:05 [RateCDR] => 1 ) [2025-01-15 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:36:05' and `end` < '2025-01-15 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:36:21] Production.INFO: count ==4614 [2025-01-15 15:36:22] Production.ERROR: pbx CDR StartTime 2025-01-15 12:36:05 - End Time 2025-01-15 15:36:05 [2025-01-15 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254577', 'tblTempUsageDetail_20' ) start [2025-01-15 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254577', 'tblTempUsageDetail_20' ) end [2025-01-15 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254577', 'tblTempVendorCDR_20' ) start [2025-01-15 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254577', 'tblTempVendorCDR_20' ) end [2025-01-15 15:36:23] Production.INFO: ProcessCDR(1,14254577,1,1,2) [2025-01-15 15:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254577', 'tblTempUsageDetail_20' ) start [2025-01-15 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254577', 'tblTempUsageDetail_20' ) end [2025-01-15 15:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:36:27] Production.INFO: ==28191== Releasing lock... [2025-01-15 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:36:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:37:05 [end_date_ymd] => 2025-01-15 15:37:05 [RateCDR] => 1 ) [2025-01-15 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:37:05' and `end` < '2025-01-15 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:37:29] Production.INFO: count ==4622 [2025-01-15 15:37:30] Production.ERROR: pbx CDR StartTime 2025-01-15 12:37:05 - End Time 2025-01-15 15:37:05 [2025-01-15 15:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254582', 'tblTempUsageDetail_20' ) start [2025-01-15 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254582', 'tblTempUsageDetail_20' ) end [2025-01-15 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254582', 'tblTempVendorCDR_20' ) start [2025-01-15 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254582', 'tblTempVendorCDR_20' ) end [2025-01-15 15:37:30] Production.INFO: ProcessCDR(1,14254582,1,1,2) [2025-01-15 15:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:37:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:37:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254582', 'tblTempUsageDetail_20' ) start [2025-01-15 15:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254582', 'tblTempUsageDetail_20' ) end [2025-01-15 15:37:35] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:37:35] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:37:35] Production.INFO: ==28262== Releasing lock... [2025-01-15 15:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:37:35] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:38:05 [end_date_ymd] => 2025-01-15 15:38:05 [RateCDR] => 1 ) [2025-01-15 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:38:05' and `end` < '2025-01-15 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:38:22] Production.INFO: count ==4609 [2025-01-15 15:38:24] Production.ERROR: pbx CDR StartTime 2025-01-15 12:38:05 - End Time 2025-01-15 15:38:05 [2025-01-15 15:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254587', 'tblTempUsageDetail_20' ) start [2025-01-15 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254587', 'tblTempUsageDetail_20' ) end [2025-01-15 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254587', 'tblTempVendorCDR_20' ) start [2025-01-15 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254587', 'tblTempVendorCDR_20' ) end [2025-01-15 15:38:24] Production.INFO: ProcessCDR(1,14254587,1,1,2) [2025-01-15 15:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254587', 'tblTempUsageDetail_20' ) start [2025-01-15 15:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254587', 'tblTempUsageDetail_20' ) end [2025-01-15 15:38:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:38:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:38:29] Production.INFO: ==28335== Releasing lock... [2025-01-15 15:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:38:29] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:39:05 [end_date_ymd] => 2025-01-15 15:39:05 [RateCDR] => 1 ) [2025-01-15 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:39:05' and `end` < '2025-01-15 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:39:20] Production.INFO: count ==4610 [2025-01-15 15:39:22] Production.ERROR: pbx CDR StartTime 2025-01-15 12:39:05 - End Time 2025-01-15 15:39:05 [2025-01-15 15:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254592', 'tblTempUsageDetail_20' ) start [2025-01-15 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254592', 'tblTempUsageDetail_20' ) end [2025-01-15 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254592', 'tblTempVendorCDR_20' ) start [2025-01-15 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254592', 'tblTempVendorCDR_20' ) end [2025-01-15 15:39:22] Production.INFO: ProcessCDR(1,14254592,1,1,2) [2025-01-15 15:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254592', 'tblTempUsageDetail_20' ) start [2025-01-15 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254592', 'tblTempUsageDetail_20' ) end [2025-01-15 15:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:39:26] Production.INFO: ==28407== Releasing lock... [2025-01-15 15:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:39:26] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:40:05 [end_date_ymd] => 2025-01-15 15:40:05 [RateCDR] => 1 ) [2025-01-15 15:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:40:05' and `end` < '2025-01-15 15:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:40:21] Production.INFO: count ==4603 [2025-01-15 15:40:23] Production.ERROR: pbx CDR StartTime 2025-01-15 12:40:05 - End Time 2025-01-15 15:40:05 [2025-01-15 15:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254598', 'tblTempUsageDetail_20' ) start [2025-01-15 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254598', 'tblTempUsageDetail_20' ) end [2025-01-15 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254598', 'tblTempVendorCDR_20' ) start [2025-01-15 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254598', 'tblTempVendorCDR_20' ) end [2025-01-15 15:40:23] Production.INFO: ProcessCDR(1,14254598,1,1,2) [2025-01-15 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254598', 'tblTempUsageDetail_20' ) start [2025-01-15 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254598', 'tblTempUsageDetail_20' ) end [2025-01-15 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:40:28] Production.INFO: ==28481== Releasing lock... [2025-01-15 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:40:28] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:41:06 [end_date_ymd] => 2025-01-15 15:41:06 [RateCDR] => 1 ) [2025-01-15 15:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:41:06' and `end` < '2025-01-15 15:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:41:24] Production.INFO: count ==4576 [2025-01-15 15:41:26] Production.ERROR: pbx CDR StartTime 2025-01-15 12:41:06 - End Time 2025-01-15 15:41:06 [2025-01-15 15:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254603', 'tblTempUsageDetail_20' ) start [2025-01-15 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254603', 'tblTempUsageDetail_20' ) end [2025-01-15 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254603', 'tblTempVendorCDR_20' ) start [2025-01-15 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254603', 'tblTempVendorCDR_20' ) end [2025-01-15 15:41:26] Production.INFO: ProcessCDR(1,14254603,1,1,2) [2025-01-15 15:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254603', 'tblTempUsageDetail_20' ) start [2025-01-15 15:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254603', 'tblTempUsageDetail_20' ) end [2025-01-15 15:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:41:31] Production.INFO: ==28555== Releasing lock... [2025-01-15 15:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:41:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-15 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:42:05 [end_date_ymd] => 2025-01-15 15:42:05 [RateCDR] => 1 ) [2025-01-15 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:42:05' and `end` < '2025-01-15 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:42:27] Production.INFO: count ==4545 [2025-01-15 15:42:29] Production.ERROR: pbx CDR StartTime 2025-01-15 12:42:05 - End Time 2025-01-15 15:42:05 [2025-01-15 15:42:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254608', 'tblTempUsageDetail_20' ) start [2025-01-15 15:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254608', 'tblTempUsageDetail_20' ) end [2025-01-15 15:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254608', 'tblTempVendorCDR_20' ) start [2025-01-15 15:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254608', 'tblTempVendorCDR_20' ) end [2025-01-15 15:42:29] Production.INFO: ProcessCDR(1,14254608,1,1,2) [2025-01-15 15:42:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:42:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:42:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:42:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254608', 'tblTempUsageDetail_20' ) start [2025-01-15 15:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254608', 'tblTempUsageDetail_20' ) end [2025-01-15 15:42:34] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:42:34] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:42:34] Production.INFO: ==28626== Releasing lock... [2025-01-15 15:42:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:42:34] Production.INFO: 62 MB #Memory Used# [2025-01-15 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:43:05 [end_date_ymd] => 2025-01-15 15:43:05 [RateCDR] => 1 ) [2025-01-15 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:43:05' and `end` < '2025-01-15 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:43:24] Production.INFO: count ==4535 [2025-01-15 15:43:26] Production.ERROR: pbx CDR StartTime 2025-01-15 12:43:05 - End Time 2025-01-15 15:43:05 [2025-01-15 15:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254613', 'tblTempUsageDetail_20' ) start [2025-01-15 15:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254613', 'tblTempUsageDetail_20' ) end [2025-01-15 15:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254613', 'tblTempVendorCDR_20' ) start [2025-01-15 15:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254613', 'tblTempVendorCDR_20' ) end [2025-01-15 15:43:26] Production.INFO: ProcessCDR(1,14254613,1,1,2) [2025-01-15 15:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254613', 'tblTempUsageDetail_20' ) start [2025-01-15 15:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254613', 'tblTempUsageDetail_20' ) end [2025-01-15 15:43:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:43:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:43:31] Production.INFO: ==28699== Releasing lock... [2025-01-15 15:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:43:31] Production.INFO: 62 MB #Memory Used# [2025-01-15 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:44:05 [end_date_ymd] => 2025-01-15 15:44:05 [RateCDR] => 1 ) [2025-01-15 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:44:05' and `end` < '2025-01-15 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:44:20] Production.INFO: count ==4528 [2025-01-15 15:44:22] Production.ERROR: pbx CDR StartTime 2025-01-15 12:44:05 - End Time 2025-01-15 15:44:05 [2025-01-15 15:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254618', 'tblTempUsageDetail_20' ) start [2025-01-15 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254618', 'tblTempUsageDetail_20' ) end [2025-01-15 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254618', 'tblTempVendorCDR_20' ) start [2025-01-15 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254618', 'tblTempVendorCDR_20' ) end [2025-01-15 15:44:22] Production.INFO: ProcessCDR(1,14254618,1,1,2) [2025-01-15 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254618', 'tblTempUsageDetail_20' ) start [2025-01-15 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254618', 'tblTempUsageDetail_20' ) end [2025-01-15 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:44:27] Production.INFO: ==28771== Releasing lock... [2025-01-15 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:44:27] Production.INFO: 62 MB #Memory Used# [2025-01-15 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:45:05 [end_date_ymd] => 2025-01-15 15:45:05 [RateCDR] => 1 ) [2025-01-15 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:45:05' and `end` < '2025-01-15 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:45:19] Production.INFO: count ==4526 [2025-01-15 15:45:21] Production.ERROR: pbx CDR StartTime 2025-01-15 12:45:05 - End Time 2025-01-15 15:45:05 [2025-01-15 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254623', 'tblTempUsageDetail_20' ) start [2025-01-15 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254623', 'tblTempUsageDetail_20' ) end [2025-01-15 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254623', 'tblTempVendorCDR_20' ) start [2025-01-15 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254623', 'tblTempVendorCDR_20' ) end [2025-01-15 15:45:21] Production.INFO: ProcessCDR(1,14254623,1,1,2) [2025-01-15 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254623', 'tblTempUsageDetail_20' ) start [2025-01-15 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254623', 'tblTempUsageDetail_20' ) end [2025-01-15 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:45:26] Production.INFO: ==28842== Releasing lock... [2025-01-15 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:45:26] Production.INFO: 62 MB #Memory Used# [2025-01-15 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:46:05 [end_date_ymd] => 2025-01-15 15:46:05 [RateCDR] => 1 ) [2025-01-15 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:46:05' and `end` < '2025-01-15 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:46:21] Production.INFO: count ==4530 [2025-01-15 15:46:23] Production.ERROR: pbx CDR StartTime 2025-01-15 12:46:05 - End Time 2025-01-15 15:46:05 [2025-01-15 15:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254628', 'tblTempUsageDetail_20' ) start [2025-01-15 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254628', 'tblTempUsageDetail_20' ) end [2025-01-15 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254628', 'tblTempVendorCDR_20' ) start [2025-01-15 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254628', 'tblTempVendorCDR_20' ) end [2025-01-15 15:46:23] Production.INFO: ProcessCDR(1,14254628,1,1,2) [2025-01-15 15:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254628', 'tblTempUsageDetail_20' ) start [2025-01-15 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254628', 'tblTempUsageDetail_20' ) end [2025-01-15 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:46:26] Production.INFO: ==28913== Releasing lock... [2025-01-15 15:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:46:26] Production.INFO: 62 MB #Memory Used# [2025-01-15 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:47:05 [end_date_ymd] => 2025-01-15 15:47:05 [RateCDR] => 1 ) [2025-01-15 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:47:05' and `end` < '2025-01-15 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:47:25] Production.INFO: count ==4545 [2025-01-15 15:47:27] Production.ERROR: pbx CDR StartTime 2025-01-15 12:47:05 - End Time 2025-01-15 15:47:05 [2025-01-15 15:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254633', 'tblTempUsageDetail_20' ) start [2025-01-15 15:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254633', 'tblTempUsageDetail_20' ) end [2025-01-15 15:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254633', 'tblTempVendorCDR_20' ) start [2025-01-15 15:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254633', 'tblTempVendorCDR_20' ) end [2025-01-15 15:47:27] Production.INFO: ProcessCDR(1,14254633,1,1,2) [2025-01-15 15:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:47:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:47:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:47:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254633', 'tblTempUsageDetail_20' ) start [2025-01-15 15:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254633', 'tblTempUsageDetail_20' ) end [2025-01-15 15:47:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:47:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:47:32] Production.INFO: ==28985== Releasing lock... [2025-01-15 15:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:47:32] Production.INFO: 62 MB #Memory Used# [2025-01-15 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:48:06 [end_date_ymd] => 2025-01-15 15:48:06 [RateCDR] => 1 ) [2025-01-15 15:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:48:06' and `end` < '2025-01-15 15:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:48:21] Production.INFO: count ==4543 [2025-01-15 15:48:23] Production.ERROR: pbx CDR StartTime 2025-01-15 12:48:06 - End Time 2025-01-15 15:48:06 [2025-01-15 15:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254638', 'tblTempUsageDetail_20' ) start [2025-01-15 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254638', 'tblTempUsageDetail_20' ) end [2025-01-15 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254638', 'tblTempVendorCDR_20' ) start [2025-01-15 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254638', 'tblTempVendorCDR_20' ) end [2025-01-15 15:48:23] Production.INFO: ProcessCDR(1,14254638,1,1,2) [2025-01-15 15:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254638', 'tblTempUsageDetail_20' ) start [2025-01-15 15:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254638', 'tblTempUsageDetail_20' ) end [2025-01-15 15:48:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:48:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:48:29] Production.INFO: ==29061== Releasing lock... [2025-01-15 15:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:48:29] Production.INFO: 62 MB #Memory Used# [2025-01-15 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:49:05 [end_date_ymd] => 2025-01-15 15:49:05 [RateCDR] => 1 ) [2025-01-15 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:49:05' and `end` < '2025-01-15 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:49:24] Production.INFO: count ==4561 [2025-01-15 15:49:26] Production.ERROR: pbx CDR StartTime 2025-01-15 12:49:05 - End Time 2025-01-15 15:49:05 [2025-01-15 15:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254643', 'tblTempUsageDetail_20' ) start [2025-01-15 15:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254643', 'tblTempUsageDetail_20' ) end [2025-01-15 15:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254643', 'tblTempVendorCDR_20' ) start [2025-01-15 15:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254643', 'tblTempVendorCDR_20' ) end [2025-01-15 15:49:27] Production.INFO: ProcessCDR(1,14254643,1,1,2) [2025-01-15 15:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254643', 'tblTempUsageDetail_20' ) start [2025-01-15 15:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254643', 'tblTempUsageDetail_20' ) end [2025-01-15 15:49:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:49:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:49:32] Production.INFO: ==29130== Releasing lock... [2025-01-15 15:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:49:32] Production.INFO: 62.25 MB #Memory Used# [2025-01-15 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:50:06 [end_date_ymd] => 2025-01-15 15:50:06 [RateCDR] => 1 ) [2025-01-15 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:50:06' and `end` < '2025-01-15 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:50:26] Production.INFO: count ==4547 [2025-01-15 15:50:28] Production.ERROR: pbx CDR StartTime 2025-01-15 12:50:06 - End Time 2025-01-15 15:50:06 [2025-01-15 15:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254649', 'tblTempUsageDetail_20' ) start [2025-01-15 15:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254649', 'tblTempUsageDetail_20' ) end [2025-01-15 15:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254649', 'tblTempVendorCDR_20' ) start [2025-01-15 15:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254649', 'tblTempVendorCDR_20' ) end [2025-01-15 15:50:29] Production.INFO: ProcessCDR(1,14254649,1,1,2) [2025-01-15 15:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254649', 'tblTempUsageDetail_20' ) start [2025-01-15 15:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254649', 'tblTempUsageDetail_20' ) end [2025-01-15 15:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:50:34] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:50:34] Production.INFO: ==29244== Releasing lock... [2025-01-15 15:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:50:34] Production.INFO: 62 MB #Memory Used# [2025-01-15 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:51:05 [end_date_ymd] => 2025-01-15 15:51:05 [RateCDR] => 1 ) [2025-01-15 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:51:05' and `end` < '2025-01-15 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:51:28] Production.INFO: count ==4594 [2025-01-15 15:51:30] Production.ERROR: pbx CDR StartTime 2025-01-15 12:51:05 - End Time 2025-01-15 15:51:05 [2025-01-15 15:51:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254654', 'tblTempUsageDetail_20' ) start [2025-01-15 15:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254654', 'tblTempUsageDetail_20' ) end [2025-01-15 15:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254654', 'tblTempVendorCDR_20' ) start [2025-01-15 15:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254654', 'tblTempVendorCDR_20' ) end [2025-01-15 15:51:30] Production.INFO: ProcessCDR(1,14254654,1,1,2) [2025-01-15 15:51:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:51:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254654', 'tblTempUsageDetail_20' ) start [2025-01-15 15:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254654', 'tblTempUsageDetail_20' ) end [2025-01-15 15:51:36] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:51:36] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:51:36] Production.INFO: ==29317== Releasing lock... [2025-01-15 15:51:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:51:36] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:52:05 [end_date_ymd] => 2025-01-15 15:52:05 [RateCDR] => 1 ) [2025-01-15 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:52:05' and `end` < '2025-01-15 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:52:27] Production.INFO: count ==4594 [2025-01-15 15:52:28] Production.ERROR: pbx CDR StartTime 2025-01-15 12:52:05 - End Time 2025-01-15 15:52:05 [2025-01-15 15:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254659', 'tblTempUsageDetail_20' ) start [2025-01-15 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254659', 'tblTempUsageDetail_20' ) end [2025-01-15 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254659', 'tblTempVendorCDR_20' ) start [2025-01-15 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254659', 'tblTempVendorCDR_20' ) end [2025-01-15 15:52:28] Production.INFO: ProcessCDR(1,14254659,1,1,2) [2025-01-15 15:52:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:52:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:52:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254659', 'tblTempUsageDetail_20' ) start [2025-01-15 15:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254659', 'tblTempUsageDetail_20' ) end [2025-01-15 15:52:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:52:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:52:33] Production.INFO: ==29387== Releasing lock... [2025-01-15 15:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:52:33] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:53:05 [end_date_ymd] => 2025-01-15 15:53:05 [RateCDR] => 1 ) [2025-01-15 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:53:05' and `end` < '2025-01-15 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:53:25] Production.INFO: count ==4598 [2025-01-15 15:53:27] Production.ERROR: pbx CDR StartTime 2025-01-15 12:53:05 - End Time 2025-01-15 15:53:05 [2025-01-15 15:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254664', 'tblTempUsageDetail_20' ) start [2025-01-15 15:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254664', 'tblTempUsageDetail_20' ) end [2025-01-15 15:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254664', 'tblTempVendorCDR_20' ) start [2025-01-15 15:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254664', 'tblTempVendorCDR_20' ) end [2025-01-15 15:53:27] Production.INFO: ProcessCDR(1,14254664,1,1,2) [2025-01-15 15:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254664', 'tblTempUsageDetail_20' ) start [2025-01-15 15:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254664', 'tblTempUsageDetail_20' ) end [2025-01-15 15:53:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:53:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:53:32] Production.INFO: ==29459== Releasing lock... [2025-01-15 15:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:53:32] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 15:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:54:04 [end_date_ymd] => 2025-01-15 15:54:04 [RateCDR] => 1 ) [2025-01-15 15:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:54:04' and `end` < '2025-01-15 15:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:54:21] Production.INFO: count ==4570 [2025-01-15 15:54:23] Production.ERROR: pbx CDR StartTime 2025-01-15 12:54:04 - End Time 2025-01-15 15:54:04 [2025-01-15 15:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254669', 'tblTempUsageDetail_20' ) start [2025-01-15 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254669', 'tblTempUsageDetail_20' ) end [2025-01-15 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254669', 'tblTempVendorCDR_20' ) start [2025-01-15 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254669', 'tblTempVendorCDR_20' ) end [2025-01-15 15:54:23] Production.INFO: ProcessCDR(1,14254669,1,1,2) [2025-01-15 15:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254669', 'tblTempUsageDetail_20' ) start [2025-01-15 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254669', 'tblTempUsageDetail_20' ) end [2025-01-15 15:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:54:28] Production.INFO: ==29528== Releasing lock... [2025-01-15 15:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:54:28] Production.INFO: 62.25 MB #Memory Used# [2025-01-15 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:55:06 [end_date_ymd] => 2025-01-15 15:55:06 [RateCDR] => 1 ) [2025-01-15 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:55:06' and `end` < '2025-01-15 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:55:26] Production.INFO: count ==4580 [2025-01-15 15:55:28] Production.ERROR: pbx CDR StartTime 2025-01-15 12:55:06 - End Time 2025-01-15 15:55:06 [2025-01-15 15:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254674', 'tblTempUsageDetail_20' ) start [2025-01-15 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254674', 'tblTempUsageDetail_20' ) end [2025-01-15 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254674', 'tblTempVendorCDR_20' ) start [2025-01-15 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254674', 'tblTempVendorCDR_20' ) end [2025-01-15 15:55:28] Production.INFO: ProcessCDR(1,14254674,1,1,2) [2025-01-15 15:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254674', 'tblTempUsageDetail_20' ) start [2025-01-15 15:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254674', 'tblTempUsageDetail_20' ) end [2025-01-15 15:55:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:55:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:55:33] Production.INFO: ==29600== Releasing lock... [2025-01-15 15:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:55:33] Production.INFO: 62.25 MB #Memory Used# [2025-01-15 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:56:05 [end_date_ymd] => 2025-01-15 15:56:05 [RateCDR] => 1 ) [2025-01-15 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:56:05' and `end` < '2025-01-15 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:56:23] Production.INFO: count ==4587 [2025-01-15 15:56:25] Production.ERROR: pbx CDR StartTime 2025-01-15 12:56:05 - End Time 2025-01-15 15:56:05 [2025-01-15 15:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254679', 'tblTempUsageDetail_20' ) start [2025-01-15 15:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254679', 'tblTempUsageDetail_20' ) end [2025-01-15 15:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254679', 'tblTempVendorCDR_20' ) start [2025-01-15 15:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254679', 'tblTempVendorCDR_20' ) end [2025-01-15 15:56:25] Production.INFO: ProcessCDR(1,14254679,1,1,2) [2025-01-15 15:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254679', 'tblTempUsageDetail_20' ) start [2025-01-15 15:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254679', 'tblTempUsageDetail_20' ) end [2025-01-15 15:56:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:56:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:56:31] Production.INFO: ==29670== Releasing lock... [2025-01-15 15:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:56:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-15 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:57:05 [end_date_ymd] => 2025-01-15 15:57:05 [RateCDR] => 1 ) [2025-01-15 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:57:05' and `end` < '2025-01-15 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:57:18] Production.INFO: count ==4570 [2025-01-15 15:57:20] Production.ERROR: pbx CDR StartTime 2025-01-15 12:57:05 - End Time 2025-01-15 15:57:05 [2025-01-15 15:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254684', 'tblTempUsageDetail_20' ) start [2025-01-15 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254684', 'tblTempUsageDetail_20' ) end [2025-01-15 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254684', 'tblTempVendorCDR_20' ) start [2025-01-15 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254684', 'tblTempVendorCDR_20' ) end [2025-01-15 15:57:20] Production.INFO: ProcessCDR(1,14254684,1,1,2) [2025-01-15 15:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254684', 'tblTempUsageDetail_20' ) start [2025-01-15 15:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254684', 'tblTempUsageDetail_20' ) end [2025-01-15 15:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:57:25] Production.INFO: ==29740== Releasing lock... [2025-01-15 15:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:57:25] Production.INFO: 62.25 MB #Memory Used# [2025-01-15 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:58:05 [end_date_ymd] => 2025-01-15 15:58:05 [RateCDR] => 1 ) [2025-01-15 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:58:05' and `end` < '2025-01-15 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:58:21] Production.INFO: count ==4541 [2025-01-15 15:58:22] Production.ERROR: pbx CDR StartTime 2025-01-15 12:58:05 - End Time 2025-01-15 15:58:05 [2025-01-15 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254689', 'tblTempUsageDetail_20' ) start [2025-01-15 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254689', 'tblTempUsageDetail_20' ) end [2025-01-15 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254689', 'tblTempVendorCDR_20' ) start [2025-01-15 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254689', 'tblTempVendorCDR_20' ) end [2025-01-15 15:58:22] Production.INFO: ProcessCDR(1,14254689,1,1,2) [2025-01-15 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254689', 'tblTempUsageDetail_20' ) start [2025-01-15 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254689', 'tblTempUsageDetail_20' ) end [2025-01-15 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:58:27] Production.INFO: ==29813== Releasing lock... [2025-01-15 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:58:27] Production.INFO: 62 MB #Memory Used# [2025-01-15 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 12:59:05 [end_date_ymd] => 2025-01-15 15:59:05 [RateCDR] => 1 ) [2025-01-15 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 12:59:05' and `end` < '2025-01-15 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 15:59:25] Production.INFO: count ==4546 [2025-01-15 15:59:27] Production.ERROR: pbx CDR StartTime 2025-01-15 12:59:05 - End Time 2025-01-15 15:59:05 [2025-01-15 15:59:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 15:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254694', 'tblTempUsageDetail_20' ) start [2025-01-15 15:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254694', 'tblTempUsageDetail_20' ) end [2025-01-15 15:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254694', 'tblTempVendorCDR_20' ) start [2025-01-15 15:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254694', 'tblTempVendorCDR_20' ) end [2025-01-15 15:59:27] Production.INFO: ProcessCDR(1,14254694,1,1,2) [2025-01-15 15:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:59:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 15:59:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:59:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 15:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254694', 'tblTempUsageDetail_20' ) start [2025-01-15 15:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254694', 'tblTempUsageDetail_20' ) end [2025-01-15 15:59:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 15:59:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 15:59:32] Production.INFO: ==29884== Releasing lock... [2025-01-15 15:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 15:59:32] Production.INFO: 62 MB #Memory Used# [2025-01-15 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:00:06 [end_date_ymd] => 2025-01-15 16:00:06 [RateCDR] => 1 ) [2025-01-15 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:00:06' and `end` < '2025-01-15 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:00:28] Production.INFO: count ==4551 [2025-01-15 16:00:29] Production.ERROR: pbx CDR StartTime 2025-01-15 13:00:06 - End Time 2025-01-15 16:00:06 [2025-01-15 16:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254700', 'tblTempUsageDetail_20' ) start [2025-01-15 16:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254700', 'tblTempUsageDetail_20' ) end [2025-01-15 16:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254700', 'tblTempVendorCDR_20' ) start [2025-01-15 16:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254700', 'tblTempVendorCDR_20' ) end [2025-01-15 16:00:30] Production.INFO: ProcessCDR(1,14254700,1,1,2) [2025-01-15 16:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254700', 'tblTempUsageDetail_20' ) start [2025-01-15 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254700', 'tblTempUsageDetail_20' ) end [2025-01-15 16:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:00:34] Production.INFO: ==29956== Releasing lock... [2025-01-15 16:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:00:34] Production.INFO: 62 MB #Memory Used# [2025-01-15 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:01:05 [end_date_ymd] => 2025-01-15 16:01:05 [RateCDR] => 1 ) [2025-01-15 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:01:05' and `end` < '2025-01-15 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:01:25] Production.INFO: count ==4581 [2025-01-15 16:01:26] Production.ERROR: pbx CDR StartTime 2025-01-15 13:01:05 - End Time 2025-01-15 16:01:05 [2025-01-15 16:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254705', 'tblTempUsageDetail_20' ) start [2025-01-15 16:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254705', 'tblTempUsageDetail_20' ) end [2025-01-15 16:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254705', 'tblTempVendorCDR_20' ) start [2025-01-15 16:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254705', 'tblTempVendorCDR_20' ) end [2025-01-15 16:01:27] Production.INFO: ProcessCDR(1,14254705,1,1,2) [2025-01-15 16:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254705', 'tblTempUsageDetail_20' ) start [2025-01-15 16:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254705', 'tblTempUsageDetail_20' ) end [2025-01-15 16:01:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:01:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:01:32] Production.INFO: ==30044== Releasing lock... [2025-01-15 16:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:01:32] Production.INFO: 62.25 MB #Memory Used# [2025-01-15 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:02:05 [end_date_ymd] => 2025-01-15 16:02:05 [RateCDR] => 1 ) [2025-01-15 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:02:05' and `end` < '2025-01-15 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:02:24] Production.INFO: count ==4568 [2025-01-15 16:02:25] Production.ERROR: pbx CDR StartTime 2025-01-15 13:02:05 - End Time 2025-01-15 16:02:05 [2025-01-15 16:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254710', 'tblTempUsageDetail_20' ) start [2025-01-15 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254710', 'tblTempUsageDetail_20' ) end [2025-01-15 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254710', 'tblTempVendorCDR_20' ) start [2025-01-15 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254710', 'tblTempVendorCDR_20' ) end [2025-01-15 16:02:26] Production.INFO: ProcessCDR(1,14254710,1,1,2) [2025-01-15 16:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254710', 'tblTempUsageDetail_20' ) start [2025-01-15 16:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254710', 'tblTempUsageDetail_20' ) end [2025-01-15 16:02:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:02:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:02:30] Production.INFO: ==30117== Releasing lock... [2025-01-15 16:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:02:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-15 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:03:05 [end_date_ymd] => 2025-01-15 16:03:05 [RateCDR] => 1 ) [2025-01-15 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:03:05' and `end` < '2025-01-15 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:03:27] Production.INFO: count ==4580 [2025-01-15 16:03:28] Production.ERROR: pbx CDR StartTime 2025-01-15 13:03:05 - End Time 2025-01-15 16:03:05 [2025-01-15 16:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254715', 'tblTempUsageDetail_20' ) start [2025-01-15 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254715', 'tblTempUsageDetail_20' ) end [2025-01-15 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254715', 'tblTempVendorCDR_20' ) start [2025-01-15 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254715', 'tblTempVendorCDR_20' ) end [2025-01-15 16:03:29] Production.INFO: ProcessCDR(1,14254715,1,1,2) [2025-01-15 16:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254715', 'tblTempUsageDetail_20' ) start [2025-01-15 16:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254715', 'tblTempUsageDetail_20' ) end [2025-01-15 16:03:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:03:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:03:33] Production.INFO: ==30187== Releasing lock... [2025-01-15 16:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:03:33] Production.INFO: 62.25 MB #Memory Used# [2025-01-15 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:04:06 [end_date_ymd] => 2025-01-15 16:04:06 [RateCDR] => 1 ) [2025-01-15 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:04:06' and `end` < '2025-01-15 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:04:28] Production.INFO: count ==4561 [2025-01-15 16:04:30] Production.ERROR: pbx CDR StartTime 2025-01-15 13:04:06 - End Time 2025-01-15 16:04:06 [2025-01-15 16:04:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254720', 'tblTempUsageDetail_20' ) start [2025-01-15 16:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254720', 'tblTempUsageDetail_20' ) end [2025-01-15 16:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254720', 'tblTempVendorCDR_20' ) start [2025-01-15 16:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254720', 'tblTempVendorCDR_20' ) end [2025-01-15 16:04:30] Production.INFO: ProcessCDR(1,14254720,1,1,2) [2025-01-15 16:04:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:04:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:04:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:04:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254720', 'tblTempUsageDetail_20' ) start [2025-01-15 16:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254720', 'tblTempUsageDetail_20' ) end [2025-01-15 16:04:35] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:04:35] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:04:35] Production.INFO: ==30259== Releasing lock... [2025-01-15 16:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:04:35] Production.INFO: 62.25 MB #Memory Used# [2025-01-15 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:05:05 [end_date_ymd] => 2025-01-15 16:05:05 [RateCDR] => 1 ) [2025-01-15 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:05:05' and `end` < '2025-01-15 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:05:23] Production.INFO: count ==4554 [2025-01-15 16:05:25] Production.ERROR: pbx CDR StartTime 2025-01-15 13:05:05 - End Time 2025-01-15 16:05:05 [2025-01-15 16:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254725', 'tblTempUsageDetail_20' ) start [2025-01-15 16:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254725', 'tblTempUsageDetail_20' ) end [2025-01-15 16:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254725', 'tblTempVendorCDR_20' ) start [2025-01-15 16:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254725', 'tblTempVendorCDR_20' ) end [2025-01-15 16:05:25] Production.INFO: ProcessCDR(1,14254725,1,1,2) [2025-01-15 16:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254725', 'tblTempUsageDetail_20' ) start [2025-01-15 16:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254725', 'tblTempUsageDetail_20' ) end [2025-01-15 16:05:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:05:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:05:30] Production.INFO: ==30336== Releasing lock... [2025-01-15 16:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:05:30] Production.INFO: 62 MB #Memory Used# [2025-01-15 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:06:06 [end_date_ymd] => 2025-01-15 16:06:06 [RateCDR] => 1 ) [2025-01-15 16:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:06:06' and `end` < '2025-01-15 16:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:06:20] Production.INFO: count ==4558 [2025-01-15 16:06:21] Production.ERROR: pbx CDR StartTime 2025-01-15 13:06:06 - End Time 2025-01-15 16:06:06 [2025-01-15 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254730', 'tblTempUsageDetail_20' ) start [2025-01-15 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254730', 'tblTempUsageDetail_20' ) end [2025-01-15 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254730', 'tblTempVendorCDR_20' ) start [2025-01-15 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254730', 'tblTempVendorCDR_20' ) end [2025-01-15 16:06:21] Production.INFO: ProcessCDR(1,14254730,1,1,2) [2025-01-15 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254730', 'tblTempUsageDetail_20' ) start [2025-01-15 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254730', 'tblTempUsageDetail_20' ) end [2025-01-15 16:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:06:26] Production.INFO: ==30451== Releasing lock... [2025-01-15 16:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:06:26] Production.INFO: 62 MB #Memory Used# [2025-01-15 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:07:05 [end_date_ymd] => 2025-01-15 16:07:05 [RateCDR] => 1 ) [2025-01-15 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:07:05' and `end` < '2025-01-15 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:07:22] Production.INFO: count ==4549 [2025-01-15 16:07:24] Production.ERROR: pbx CDR StartTime 2025-01-15 13:07:05 - End Time 2025-01-15 16:07:05 [2025-01-15 16:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254735', 'tblTempUsageDetail_20' ) start [2025-01-15 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254735', 'tblTempUsageDetail_20' ) end [2025-01-15 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254735', 'tblTempVendorCDR_20' ) start [2025-01-15 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254735', 'tblTempVendorCDR_20' ) end [2025-01-15 16:07:24] Production.INFO: ProcessCDR(1,14254735,1,1,2) [2025-01-15 16:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254735', 'tblTempUsageDetail_20' ) start [2025-01-15 16:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254735', 'tblTempUsageDetail_20' ) end [2025-01-15 16:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:07:29] Production.INFO: ==30521== Releasing lock... [2025-01-15 16:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:07:29] Production.INFO: 62 MB #Memory Used# [2025-01-15 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:08:05 [end_date_ymd] => 2025-01-15 16:08:05 [RateCDR] => 1 ) [2025-01-15 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:08:05' and `end` < '2025-01-15 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:08:29] Production.INFO: count ==4566 [2025-01-15 16:08:31] Production.ERROR: pbx CDR StartTime 2025-01-15 13:08:05 - End Time 2025-01-15 16:08:05 [2025-01-15 16:08:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254740', 'tblTempUsageDetail_20' ) start [2025-01-15 16:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254740', 'tblTempUsageDetail_20' ) end [2025-01-15 16:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254740', 'tblTempVendorCDR_20' ) start [2025-01-15 16:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254740', 'tblTempVendorCDR_20' ) end [2025-01-15 16:08:31] Production.INFO: ProcessCDR(1,14254740,1,1,2) [2025-01-15 16:08:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:08:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:08:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:08:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254740', 'tblTempUsageDetail_20' ) start [2025-01-15 16:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254740', 'tblTempUsageDetail_20' ) end [2025-01-15 16:08:36] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:08:36] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:08:36] Production.INFO: ==30591== Releasing lock... [2025-01-15 16:08:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:08:36] Production.INFO: 62.25 MB #Memory Used# [2025-01-15 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:09:05 [end_date_ymd] => 2025-01-15 16:09:05 [RateCDR] => 1 ) [2025-01-15 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:09:05' and `end` < '2025-01-15 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:09:22] Production.INFO: count ==4579 [2025-01-15 16:09:23] Production.ERROR: pbx CDR StartTime 2025-01-15 13:09:05 - End Time 2025-01-15 16:09:05 [2025-01-15 16:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254745', 'tblTempUsageDetail_20' ) start [2025-01-15 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254745', 'tblTempUsageDetail_20' ) end [2025-01-15 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254745', 'tblTempVendorCDR_20' ) start [2025-01-15 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254745', 'tblTempVendorCDR_20' ) end [2025-01-15 16:09:23] Production.INFO: ProcessCDR(1,14254745,1,1,2) [2025-01-15 16:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254745', 'tblTempUsageDetail_20' ) start [2025-01-15 16:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254745', 'tblTempUsageDetail_20' ) end [2025-01-15 16:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:09:28] Production.INFO: ==30663== Releasing lock... [2025-01-15 16:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:09:28] Production.INFO: 62.25 MB #Memory Used# [2025-01-15 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:10:06 [end_date_ymd] => 2025-01-15 16:10:06 [RateCDR] => 1 ) [2025-01-15 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:10:06' and `end` < '2025-01-15 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:10:26] Production.INFO: count ==4604 [2025-01-15 16:10:28] Production.ERROR: pbx CDR StartTime 2025-01-15 13:10:06 - End Time 2025-01-15 16:10:06 [2025-01-15 16:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254751', 'tblTempUsageDetail_20' ) start [2025-01-15 16:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254751', 'tblTempUsageDetail_20' ) end [2025-01-15 16:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254751', 'tblTempVendorCDR_20' ) start [2025-01-15 16:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254751', 'tblTempVendorCDR_20' ) end [2025-01-15 16:10:28] Production.INFO: ProcessCDR(1,14254751,1,1,2) [2025-01-15 16:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254751', 'tblTempUsageDetail_20' ) start [2025-01-15 16:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254751', 'tblTempUsageDetail_20' ) end [2025-01-15 16:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:10:33] Production.INFO: ==30740== Releasing lock... [2025-01-15 16:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:10:33] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:11:04 [end_date_ymd] => 2025-01-15 16:11:04 [RateCDR] => 1 ) [2025-01-15 16:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:11:04' and `end` < '2025-01-15 16:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:11:20] Production.INFO: count ==4602 [2025-01-15 16:11:22] Production.ERROR: pbx CDR StartTime 2025-01-15 13:11:04 - End Time 2025-01-15 16:11:04 [2025-01-15 16:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254756', 'tblTempUsageDetail_20' ) start [2025-01-15 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254756', 'tblTempUsageDetail_20' ) end [2025-01-15 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254756', 'tblTempVendorCDR_20' ) start [2025-01-15 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254756', 'tblTempVendorCDR_20' ) end [2025-01-15 16:11:22] Production.INFO: ProcessCDR(1,14254756,1,1,2) [2025-01-15 16:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254756', 'tblTempUsageDetail_20' ) start [2025-01-15 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254756', 'tblTempUsageDetail_20' ) end [2025-01-15 16:11:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:11:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:11:27] Production.INFO: ==30814== Releasing lock... [2025-01-15 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:11:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:12:05 [end_date_ymd] => 2025-01-15 16:12:05 [RateCDR] => 1 ) [2025-01-15 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:12:05' and `end` < '2025-01-15 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:12:20] Production.INFO: count ==4614 [2025-01-15 16:12:22] Production.ERROR: pbx CDR StartTime 2025-01-15 13:12:05 - End Time 2025-01-15 16:12:05 [2025-01-15 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254758', 'tblTempUsageDetail_20' ) start [2025-01-15 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254758', 'tblTempUsageDetail_20' ) end [2025-01-15 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254758', 'tblTempVendorCDR_20' ) start [2025-01-15 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254758', 'tblTempVendorCDR_20' ) end [2025-01-15 16:12:22] Production.INFO: ProcessCDR(1,14254758,1,1,2) [2025-01-15 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254758', 'tblTempUsageDetail_20' ) start [2025-01-15 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254758', 'tblTempUsageDetail_20' ) end [2025-01-15 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:12:26] Production.INFO: ==30889== Releasing lock... [2025-01-15 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:12:26] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:13:05 [end_date_ymd] => 2025-01-15 16:13:05 [RateCDR] => 1 ) [2025-01-15 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:13:05' and `end` < '2025-01-15 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:13:20] Production.INFO: count ==4618 [2025-01-15 16:13:22] Production.ERROR: pbx CDR StartTime 2025-01-15 13:13:05 - End Time 2025-01-15 16:13:05 [2025-01-15 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254766', 'tblTempUsageDetail_20' ) start [2025-01-15 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254766', 'tblTempUsageDetail_20' ) end [2025-01-15 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254766', 'tblTempVendorCDR_20' ) start [2025-01-15 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254766', 'tblTempVendorCDR_20' ) end [2025-01-15 16:13:22] Production.INFO: ProcessCDR(1,14254766,1,1,2) [2025-01-15 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254766', 'tblTempUsageDetail_20' ) start [2025-01-15 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254766', 'tblTempUsageDetail_20' ) end [2025-01-15 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:13:27] Production.INFO: ==30968== Releasing lock... [2025-01-15 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:13:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:14:05 [end_date_ymd] => 2025-01-15 16:14:05 [RateCDR] => 1 ) [2025-01-15 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:14:05' and `end` < '2025-01-15 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:14:22] Production.INFO: count ==4603 [2025-01-15 16:14:24] Production.ERROR: pbx CDR StartTime 2025-01-15 13:14:05 - End Time 2025-01-15 16:14:05 [2025-01-15 16:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254771', 'tblTempUsageDetail_20' ) start [2025-01-15 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254771', 'tblTempUsageDetail_20' ) end [2025-01-15 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254771', 'tblTempVendorCDR_20' ) start [2025-01-15 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254771', 'tblTempVendorCDR_20' ) end [2025-01-15 16:14:24] Production.INFO: ProcessCDR(1,14254771,1,1,2) [2025-01-15 16:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254771', 'tblTempUsageDetail_20' ) start [2025-01-15 16:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254771', 'tblTempUsageDetail_20' ) end [2025-01-15 16:14:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:14:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:14:29] Production.INFO: ==31051== Releasing lock... [2025-01-15 16:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:14:29] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:15:05 [end_date_ymd] => 2025-01-15 16:15:05 [RateCDR] => 1 ) [2025-01-15 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:15:05' and `end` < '2025-01-15 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:15:24] Production.INFO: count ==4606 [2025-01-15 16:15:26] Production.ERROR: pbx CDR StartTime 2025-01-15 13:15:05 - End Time 2025-01-15 16:15:05 [2025-01-15 16:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254776', 'tblTempUsageDetail_20' ) start [2025-01-15 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254776', 'tblTempUsageDetail_20' ) end [2025-01-15 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254776', 'tblTempVendorCDR_20' ) start [2025-01-15 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254776', 'tblTempVendorCDR_20' ) end [2025-01-15 16:15:26] Production.INFO: ProcessCDR(1,14254776,1,1,2) [2025-01-15 16:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254776', 'tblTempUsageDetail_20' ) start [2025-01-15 16:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254776', 'tblTempUsageDetail_20' ) end [2025-01-15 16:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:15:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:15:31] Production.INFO: ==31135== Releasing lock... [2025-01-15 16:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:15:31] Production.INFO: 62.5 MB #Memory Used# [2025-01-15 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:16:05 [end_date_ymd] => 2025-01-15 16:16:05 [RateCDR] => 1 ) [2025-01-15 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:16:05' and `end` < '2025-01-15 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:16:18] Production.INFO: count ==4578 [2025-01-15 16:16:20] Production.ERROR: pbx CDR StartTime 2025-01-15 13:16:05 - End Time 2025-01-15 16:16:05 [2025-01-15 16:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254781', 'tblTempUsageDetail_20' ) start [2025-01-15 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254781', 'tblTempUsageDetail_20' ) end [2025-01-15 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254781', 'tblTempVendorCDR_20' ) start [2025-01-15 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254781', 'tblTempVendorCDR_20' ) end [2025-01-15 16:16:20] Production.INFO: ProcessCDR(1,14254781,1,1,2) [2025-01-15 16:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254781', 'tblTempUsageDetail_20' ) start [2025-01-15 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254781', 'tblTempUsageDetail_20' ) end [2025-01-15 16:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:16:23] Production.INFO: ==31220== Releasing lock... [2025-01-15 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:16:23] Production.INFO: 62.25 MB #Memory Used# [2025-01-15 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:17:06 [end_date_ymd] => 2025-01-15 16:17:06 [RateCDR] => 1 ) [2025-01-15 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:17:06' and `end` < '2025-01-15 16:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:17:20] Production.INFO: count ==4540 [2025-01-15 16:17:22] Production.ERROR: pbx CDR StartTime 2025-01-15 13:17:06 - End Time 2025-01-15 16:17:06 [2025-01-15 16:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254786', 'tblTempUsageDetail_20' ) start [2025-01-15 16:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254786', 'tblTempUsageDetail_20' ) end [2025-01-15 16:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254786', 'tblTempVendorCDR_20' ) start [2025-01-15 16:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254786', 'tblTempVendorCDR_20' ) end [2025-01-15 16:17:23] Production.INFO: ProcessCDR(1,14254786,1,1,2) [2025-01-15 16:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254786', 'tblTempUsageDetail_20' ) start [2025-01-15 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254786', 'tblTempUsageDetail_20' ) end [2025-01-15 16:17:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:17:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:17:28] Production.INFO: ==31303== Releasing lock... [2025-01-15 16:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:17:28] Production.INFO: 62 MB #Memory Used# [2025-01-15 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:18:05 [end_date_ymd] => 2025-01-15 16:18:05 [RateCDR] => 1 ) [2025-01-15 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:18:05' and `end` < '2025-01-15 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:18:21] Production.INFO: count ==4519 [2025-01-15 16:18:23] Production.ERROR: pbx CDR StartTime 2025-01-15 13:18:05 - End Time 2025-01-15 16:18:05 [2025-01-15 16:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254791', 'tblTempUsageDetail_20' ) start [2025-01-15 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254791', 'tblTempUsageDetail_20' ) end [2025-01-15 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254791', 'tblTempVendorCDR_20' ) start [2025-01-15 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254791', 'tblTempVendorCDR_20' ) end [2025-01-15 16:18:23] Production.INFO: ProcessCDR(1,14254791,1,1,2) [2025-01-15 16:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254791', 'tblTempUsageDetail_20' ) start [2025-01-15 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254791', 'tblTempUsageDetail_20' ) end [2025-01-15 16:18:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:18:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:18:28] Production.INFO: ==31396== Releasing lock... [2025-01-15 16:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:18:28] Production.INFO: 61.75 MB #Memory Used# [2025-01-15 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:19:05 [end_date_ymd] => 2025-01-15 16:19:05 [RateCDR] => 1 ) [2025-01-15 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:19:05' and `end` < '2025-01-15 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:19:28] Production.INFO: count ==4519 [2025-01-15 16:19:30] Production.ERROR: pbx CDR StartTime 2025-01-15 13:19:05 - End Time 2025-01-15 16:19:05 [2025-01-15 16:19:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254796', 'tblTempUsageDetail_20' ) start [2025-01-15 16:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254796', 'tblTempUsageDetail_20' ) end [2025-01-15 16:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254796', 'tblTempVendorCDR_20' ) start [2025-01-15 16:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254796', 'tblTempVendorCDR_20' ) end [2025-01-15 16:19:30] Production.INFO: ProcessCDR(1,14254796,1,1,2) [2025-01-15 16:19:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:19:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:19:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:19:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254796', 'tblTempUsageDetail_20' ) start [2025-01-15 16:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254796', 'tblTempUsageDetail_20' ) end [2025-01-15 16:19:35] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:19:35] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:19:35] Production.INFO: ==31480== Releasing lock... [2025-01-15 16:19:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:19:35] Production.INFO: 61.75 MB #Memory Used# [2025-01-15 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:20:05 [end_date_ymd] => 2025-01-15 16:20:05 [RateCDR] => 1 ) [2025-01-15 16:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:20:05' and `end` < '2025-01-15 16:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:20:26] Production.INFO: count ==4502 [2025-01-15 16:20:27] Production.ERROR: pbx CDR StartTime 2025-01-15 13:20:05 - End Time 2025-01-15 16:20:05 [2025-01-15 16:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254802', 'tblTempUsageDetail_20' ) start [2025-01-15 16:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254802', 'tblTempUsageDetail_20' ) end [2025-01-15 16:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254802', 'tblTempVendorCDR_20' ) start [2025-01-15 16:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254802', 'tblTempVendorCDR_20' ) end [2025-01-15 16:20:27] Production.INFO: ProcessCDR(1,14254802,1,1,2) [2025-01-15 16:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254802', 'tblTempUsageDetail_20' ) start [2025-01-15 16:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254802', 'tblTempUsageDetail_20' ) end [2025-01-15 16:20:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:20:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:20:32] Production.INFO: ==31563== Releasing lock... [2025-01-15 16:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:20:32] Production.INFO: 61.75 MB #Memory Used# [2025-01-15 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:21:05 [end_date_ymd] => 2025-01-15 16:21:05 [RateCDR] => 1 ) [2025-01-15 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:21:05' and `end` < '2025-01-15 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:21:26] Production.INFO: count ==4540 [2025-01-15 16:21:28] Production.ERROR: pbx CDR StartTime 2025-01-15 13:21:05 - End Time 2025-01-15 16:21:05 [2025-01-15 16:21:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254807', 'tblTempUsageDetail_20' ) start [2025-01-15 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254807', 'tblTempUsageDetail_20' ) end [2025-01-15 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254807', 'tblTempVendorCDR_20' ) start [2025-01-15 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254807', 'tblTempVendorCDR_20' ) end [2025-01-15 16:21:28] Production.INFO: ProcessCDR(1,14254807,1,1,2) [2025-01-15 16:21:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:21:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:21:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:21:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254807', 'tblTempUsageDetail_20' ) start [2025-01-15 16:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254807', 'tblTempUsageDetail_20' ) end [2025-01-15 16:21:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:21:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:21:33] Production.INFO: ==31647== Releasing lock... [2025-01-15 16:21:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:21:33] Production.INFO: 62 MB #Memory Used# [2025-01-15 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:22:05 [end_date_ymd] => 2025-01-15 16:22:05 [RateCDR] => 1 ) [2025-01-15 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:22:05' and `end` < '2025-01-15 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:22:19] Production.INFO: count ==4525 [2025-01-15 16:22:21] Production.ERROR: pbx CDR StartTime 2025-01-15 13:22:05 - End Time 2025-01-15 16:22:05 [2025-01-15 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254812', 'tblTempUsageDetail_20' ) start [2025-01-15 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254812', 'tblTempUsageDetail_20' ) end [2025-01-15 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254812', 'tblTempVendorCDR_20' ) start [2025-01-15 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254812', 'tblTempVendorCDR_20' ) end [2025-01-15 16:22:21] Production.INFO: ProcessCDR(1,14254812,1,1,2) [2025-01-15 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254812', 'tblTempUsageDetail_20' ) start [2025-01-15 16:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254812', 'tblTempUsageDetail_20' ) end [2025-01-15 16:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:22:25] Production.INFO: ==31769== Releasing lock... [2025-01-15 16:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:22:25] Production.INFO: 62.25 MB #Memory Used# [2025-01-15 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:23:05 [end_date_ymd] => 2025-01-15 16:23:05 [RateCDR] => 1 ) [2025-01-15 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:23:05' and `end` < '2025-01-15 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:23:18] Production.INFO: count ==4516 [2025-01-15 16:23:20] Production.ERROR: pbx CDR StartTime 2025-01-15 13:23:05 - End Time 2025-01-15 16:23:05 [2025-01-15 16:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254817', 'tblTempUsageDetail_20' ) start [2025-01-15 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254817', 'tblTempUsageDetail_20' ) end [2025-01-15 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254817', 'tblTempVendorCDR_20' ) start [2025-01-15 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254817', 'tblTempVendorCDR_20' ) end [2025-01-15 16:23:20] Production.INFO: ProcessCDR(1,14254817,1,1,2) [2025-01-15 16:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254817', 'tblTempUsageDetail_20' ) start [2025-01-15 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254817', 'tblTempUsageDetail_20' ) end [2025-01-15 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:23:26] Production.INFO: ==31852== Releasing lock... [2025-01-15 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:23:26] Production.INFO: 61.75 MB #Memory Used# [2025-01-15 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:24:05 [end_date_ymd] => 2025-01-15 16:24:05 [RateCDR] => 1 ) [2025-01-15 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:24:05' and `end` < '2025-01-15 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:24:20] Production.INFO: count ==4516 [2025-01-15 16:24:22] Production.ERROR: pbx CDR StartTime 2025-01-15 13:24:05 - End Time 2025-01-15 16:24:05 [2025-01-15 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254822', 'tblTempUsageDetail_20' ) start [2025-01-15 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254822', 'tblTempUsageDetail_20' ) end [2025-01-15 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254822', 'tblTempVendorCDR_20' ) start [2025-01-15 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254822', 'tblTempVendorCDR_20' ) end [2025-01-15 16:24:22] Production.INFO: ProcessCDR(1,14254822,1,1,2) [2025-01-15 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254822', 'tblTempUsageDetail_20' ) start [2025-01-15 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254822', 'tblTempUsageDetail_20' ) end [2025-01-15 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:24:27] Production.INFO: ==31934== Releasing lock... [2025-01-15 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:24:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-15 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:25:05 [end_date_ymd] => 2025-01-15 16:25:05 [RateCDR] => 1 ) [2025-01-15 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:25:05' and `end` < '2025-01-15 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:25:18] Production.INFO: count ==4508 [2025-01-15 16:25:24] Production.ERROR: pbx CDR StartTime 2025-01-15 13:25:05 - End Time 2025-01-15 16:25:05 [2025-01-15 16:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254827', 'tblTempUsageDetail_20' ) start [2025-01-15 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254827', 'tblTempUsageDetail_20' ) end [2025-01-15 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254827', 'tblTempVendorCDR_20' ) start [2025-01-15 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254827', 'tblTempVendorCDR_20' ) end [2025-01-15 16:25:25] Production.INFO: ProcessCDR(1,14254827,1,1,2) [2025-01-15 16:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254827', 'tblTempUsageDetail_20' ) start [2025-01-15 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254827', 'tblTempUsageDetail_20' ) end [2025-01-15 16:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:25:32] Production.INFO: ==32014== Releasing lock... [2025-01-15 16:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:25:32] Production.INFO: 61.75 MB #Memory Used# [2025-01-15 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:26:06 [end_date_ymd] => 2025-01-15 16:26:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 13:26:06' and `end` < '2025-01-15 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-01-15 16:26:26] Production.INFO: count ==4502 [2025-01-15 16:26:28] Production.ERROR: pbx CDR StartTime 2025-01-15 13:26:06 - End Time 2025-01-15 16:26:06 [2025-01-15 16:26:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254832', 'tblTempUsageDetail_20' ) start [2025-01-15 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254832', 'tblTempUsageDetail_20' ) end [2025-01-15 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254832', 'tblTempVendorCDR_20' ) start [2025-01-15 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254832', 'tblTempVendorCDR_20' ) end [2025-01-15 16:26:28] Production.INFO: ProcessCDR(1,14254832,1,1,2) [2025-01-15 16:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254832', 'tblTempUsageDetail_20' ) start [2025-01-15 16:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254832', 'tblTempUsageDetail_20' ) end [2025-01-15 16:26:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:26:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:26:33] Production.INFO: ==32103== Releasing lock... [2025-01-15 16:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:26:33] Production.INFO: 61.75 MB #Memory Used# [2025-01-15 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:27:05 [end_date_ymd] => 2025-01-15 16:27:05 [RateCDR] => 1 ) [2025-01-15 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:27:05' and `end` < '2025-01-15 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:27:22] Production.INFO: count ==4489 [2025-01-15 16:27:24] Production.ERROR: pbx CDR StartTime 2025-01-15 13:27:05 - End Time 2025-01-15 16:27:05 [2025-01-15 16:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254837', 'tblTempUsageDetail_20' ) start [2025-01-15 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254837', 'tblTempUsageDetail_20' ) end [2025-01-15 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254837', 'tblTempVendorCDR_20' ) start [2025-01-15 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254837', 'tblTempVendorCDR_20' ) end [2025-01-15 16:27:24] Production.INFO: ProcessCDR(1,14254837,1,1,2) [2025-01-15 16:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254837', 'tblTempUsageDetail_20' ) start [2025-01-15 16:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254837', 'tblTempUsageDetail_20' ) end [2025-01-15 16:27:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:27:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:27:30] Production.INFO: ==32184== Releasing lock... [2025-01-15 16:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:27:30] Production.INFO: 61.5 MB #Memory Used# [2025-01-15 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:28:06 [end_date_ymd] => 2025-01-15 16:28:06 [RateCDR] => 1 ) [2025-01-15 16:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:28:06' and `end` < '2025-01-15 16:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:28:24] Production.INFO: count ==4478 [2025-01-15 16:28:26] Production.ERROR: pbx CDR StartTime 2025-01-15 13:28:06 - End Time 2025-01-15 16:28:06 [2025-01-15 16:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254842', 'tblTempUsageDetail_20' ) start [2025-01-15 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254842', 'tblTempUsageDetail_20' ) end [2025-01-15 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254842', 'tblTempVendorCDR_20' ) start [2025-01-15 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254842', 'tblTempVendorCDR_20' ) end [2025-01-15 16:28:26] Production.INFO: ProcessCDR(1,14254842,1,1,2) [2025-01-15 16:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254842', 'tblTempUsageDetail_20' ) start [2025-01-15 16:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254842', 'tblTempUsageDetail_20' ) end [2025-01-15 16:28:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:28:31] Production.INFO: ==32268== Releasing lock... [2025-01-15 16:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:28:31] Production.INFO: 61.5 MB #Memory Used# [2025-01-15 16:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:29:04 [end_date_ymd] => 2025-01-15 16:29:04 [RateCDR] => 1 ) [2025-01-15 16:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:29:04' and `end` < '2025-01-15 16:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:29:22] Production.INFO: count ==4482 [2025-01-15 16:29:24] Production.ERROR: pbx CDR StartTime 2025-01-15 13:29:04 - End Time 2025-01-15 16:29:04 [2025-01-15 16:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254847', 'tblTempUsageDetail_20' ) start [2025-01-15 16:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254847', 'tblTempUsageDetail_20' ) end [2025-01-15 16:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254847', 'tblTempVendorCDR_20' ) start [2025-01-15 16:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254847', 'tblTempVendorCDR_20' ) end [2025-01-15 16:29:24] Production.INFO: ProcessCDR(1,14254847,1,1,2) [2025-01-15 16:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254847', 'tblTempUsageDetail_20' ) start [2025-01-15 16:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254847', 'tblTempUsageDetail_20' ) end [2025-01-15 16:29:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:29:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:29:30] Production.INFO: ==32350== Releasing lock... [2025-01-15 16:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:29:30] Production.INFO: 61.5 MB #Memory Used# [2025-01-15 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:30:06 [end_date_ymd] => 2025-01-15 16:30:06 [RateCDR] => 1 ) [2025-01-15 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:30:06' and `end` < '2025-01-15 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:30:25] Production.INFO: count ==4468 [2025-01-15 16:30:27] Production.ERROR: pbx CDR StartTime 2025-01-15 13:30:06 - End Time 2025-01-15 16:30:06 [2025-01-15 16:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254852', 'tblTempUsageDetail_20' ) start [2025-01-15 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254852', 'tblTempUsageDetail_20' ) end [2025-01-15 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254852', 'tblTempVendorCDR_20' ) start [2025-01-15 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254852', 'tblTempVendorCDR_20' ) end [2025-01-15 16:30:27] Production.INFO: ProcessCDR(1,14254852,1,1,2) [2025-01-15 16:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254852', 'tblTempUsageDetail_20' ) start [2025-01-15 16:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254852', 'tblTempUsageDetail_20' ) end [2025-01-15 16:30:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:30:32] Production.INFO: ==32430== Releasing lock... [2025-01-15 16:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:30:32] Production.INFO: 61.5 MB #Memory Used# [2025-01-15 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:31:05 [end_date_ymd] => 2025-01-15 16:31:05 [RateCDR] => 1 ) [2025-01-15 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:31:05' and `end` < '2025-01-15 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:31:21] Production.INFO: count ==4463 [2025-01-15 16:31:23] Production.ERROR: pbx CDR StartTime 2025-01-15 13:31:05 - End Time 2025-01-15 16:31:05 [2025-01-15 16:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254858', 'tblTempUsageDetail_20' ) start [2025-01-15 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254858', 'tblTempUsageDetail_20' ) end [2025-01-15 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254858', 'tblTempVendorCDR_20' ) start [2025-01-15 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254858', 'tblTempVendorCDR_20' ) end [2025-01-15 16:31:23] Production.INFO: ProcessCDR(1,14254858,1,1,2) [2025-01-15 16:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254858', 'tblTempUsageDetail_20' ) start [2025-01-15 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254858', 'tblTempUsageDetail_20' ) end [2025-01-15 16:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:31:28] Production.INFO: ==32506== Releasing lock... [2025-01-15 16:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:31:28] Production.INFO: 61.5 MB #Memory Used# [2025-01-15 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:32:05 [end_date_ymd] => 2025-01-15 16:32:05 [RateCDR] => 1 ) [2025-01-15 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:32:05' and `end` < '2025-01-15 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:32:18] Production.INFO: count ==4454 [2025-01-15 16:32:20] Production.ERROR: pbx CDR StartTime 2025-01-15 13:32:05 - End Time 2025-01-15 16:32:05 [2025-01-15 16:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254863', 'tblTempUsageDetail_20' ) start [2025-01-15 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254863', 'tblTempUsageDetail_20' ) end [2025-01-15 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254863', 'tblTempVendorCDR_20' ) start [2025-01-15 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254863', 'tblTempVendorCDR_20' ) end [2025-01-15 16:32:20] Production.INFO: ProcessCDR(1,14254863,1,1,2) [2025-01-15 16:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254863', 'tblTempUsageDetail_20' ) start [2025-01-15 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254863', 'tblTempUsageDetail_20' ) end [2025-01-15 16:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:32:25] Production.INFO: ==32582== Releasing lock... [2025-01-15 16:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:32:25] Production.INFO: 61.25 MB #Memory Used# [2025-01-15 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:33:05 [end_date_ymd] => 2025-01-15 16:33:05 [RateCDR] => 1 ) [2025-01-15 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:33:05' and `end` < '2025-01-15 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:33:19] Production.INFO: count ==4430 [2025-01-15 16:33:21] Production.ERROR: pbx CDR StartTime 2025-01-15 13:33:05 - End Time 2025-01-15 16:33:05 [2025-01-15 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254868', 'tblTempUsageDetail_20' ) start [2025-01-15 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254868', 'tblTempUsageDetail_20' ) end [2025-01-15 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254868', 'tblTempVendorCDR_20' ) start [2025-01-15 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254868', 'tblTempVendorCDR_20' ) end [2025-01-15 16:33:21] Production.INFO: ProcessCDR(1,14254868,1,1,2) [2025-01-15 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254868', 'tblTempUsageDetail_20' ) start [2025-01-15 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254868', 'tblTempUsageDetail_20' ) end [2025-01-15 16:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:33:26] Production.INFO: ==32655== Releasing lock... [2025-01-15 16:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:33:26] Production.INFO: 61.25 MB #Memory Used# [2025-01-15 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:34:05 [end_date_ymd] => 2025-01-15 16:34:05 [RateCDR] => 1 ) [2025-01-15 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:34:05' and `end` < '2025-01-15 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:34:21] Production.INFO: count ==4441 [2025-01-15 16:34:22] Production.ERROR: pbx CDR StartTime 2025-01-15 13:34:05 - End Time 2025-01-15 16:34:05 [2025-01-15 16:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254873', 'tblTempUsageDetail_20' ) start [2025-01-15 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254873', 'tblTempUsageDetail_20' ) end [2025-01-15 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254873', 'tblTempVendorCDR_20' ) start [2025-01-15 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254873', 'tblTempVendorCDR_20' ) end [2025-01-15 16:34:23] Production.INFO: ProcessCDR(1,14254873,1,1,2) [2025-01-15 16:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254873', 'tblTempUsageDetail_20' ) start [2025-01-15 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254873', 'tblTempUsageDetail_20' ) end [2025-01-15 16:34:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:34:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:34:28] Production.INFO: ==32729== Releasing lock... [2025-01-15 16:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:34:28] Production.INFO: 61.25 MB #Memory Used# [2025-01-15 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:35:05 [end_date_ymd] => 2025-01-15 16:35:05 [RateCDR] => 1 ) [2025-01-15 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:35:05' and `end` < '2025-01-15 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:35:18] Production.INFO: count ==4446 [2025-01-15 16:35:20] Production.ERROR: pbx CDR StartTime 2025-01-15 13:35:05 - End Time 2025-01-15 16:35:05 [2025-01-15 16:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254878', 'tblTempUsageDetail_20' ) start [2025-01-15 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254878', 'tblTempUsageDetail_20' ) end [2025-01-15 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254878', 'tblTempVendorCDR_20' ) start [2025-01-15 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254878', 'tblTempVendorCDR_20' ) end [2025-01-15 16:35:20] Production.INFO: ProcessCDR(1,14254878,1,1,2) [2025-01-15 16:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254878', 'tblTempUsageDetail_20' ) start [2025-01-15 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254878', 'tblTempUsageDetail_20' ) end [2025-01-15 16:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:35:23] Production.INFO: ==353== Releasing lock... [2025-01-15 16:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:35:23] Production.INFO: 61.25 MB #Memory Used# [2025-01-15 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:36:05 [end_date_ymd] => 2025-01-15 16:36:05 [RateCDR] => 1 ) [2025-01-15 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:36:05' and `end` < '2025-01-15 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:36:22] Production.INFO: count ==4445 [2025-01-15 16:36:24] Production.ERROR: pbx CDR StartTime 2025-01-15 13:36:05 - End Time 2025-01-15 16:36:05 [2025-01-15 16:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254883', 'tblTempUsageDetail_20' ) start [2025-01-15 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254883', 'tblTempUsageDetail_20' ) end [2025-01-15 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254883', 'tblTempVendorCDR_20' ) start [2025-01-15 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254883', 'tblTempVendorCDR_20' ) end [2025-01-15 16:36:24] Production.INFO: ProcessCDR(1,14254883,1,1,2) [2025-01-15 16:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254883', 'tblTempUsageDetail_20' ) start [2025-01-15 16:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254883', 'tblTempUsageDetail_20' ) end [2025-01-15 16:36:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:36:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:36:30] Production.INFO: ==423== Releasing lock... [2025-01-15 16:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:36:30] Production.INFO: 61.25 MB #Memory Used# [2025-01-15 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:37:05 [end_date_ymd] => 2025-01-15 16:37:05 [RateCDR] => 1 ) [2025-01-15 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:37:05' and `end` < '2025-01-15 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:37:19] Production.INFO: count ==4427 [2025-01-15 16:37:20] Production.ERROR: pbx CDR StartTime 2025-01-15 13:37:05 - End Time 2025-01-15 16:37:05 [2025-01-15 16:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254888', 'tblTempUsageDetail_20' ) start [2025-01-15 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254888', 'tblTempUsageDetail_20' ) end [2025-01-15 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254888', 'tblTempVendorCDR_20' ) start [2025-01-15 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254888', 'tblTempVendorCDR_20' ) end [2025-01-15 16:37:20] Production.INFO: ProcessCDR(1,14254888,1,1,2) [2025-01-15 16:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254888', 'tblTempUsageDetail_20' ) start [2025-01-15 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254888', 'tblTempUsageDetail_20' ) end [2025-01-15 16:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:37:26] Production.INFO: ==537== Releasing lock... [2025-01-15 16:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:37:26] Production.INFO: 61.25 MB #Memory Used# [2025-01-15 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:38:06 [end_date_ymd] => 2025-01-15 16:38:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 13:38:06' and `end` < '2025-01-15 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-01-15 16:38:24] Production.INFO: count ==4421 [2025-01-15 16:38:26] Production.ERROR: pbx CDR StartTime 2025-01-15 13:38:06 - End Time 2025-01-15 16:38:06 [2025-01-15 16:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254893', 'tblTempUsageDetail_20' ) start [2025-01-15 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254893', 'tblTempUsageDetail_20' ) end [2025-01-15 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254893', 'tblTempVendorCDR_20' ) start [2025-01-15 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254893', 'tblTempVendorCDR_20' ) end [2025-01-15 16:38:26] Production.INFO: ProcessCDR(1,14254893,1,1,2) [2025-01-15 16:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254893', 'tblTempUsageDetail_20' ) start [2025-01-15 16:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254893', 'tblTempUsageDetail_20' ) end [2025-01-15 16:38:31] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:38:31] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:38:31] Production.INFO: ==616== Releasing lock... [2025-01-15 16:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:38:31] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:39:05 [end_date_ymd] => 2025-01-15 16:39:05 [RateCDR] => 1 ) [2025-01-15 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:39:05' and `end` < '2025-01-15 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:39:22] Production.INFO: count ==4409 [2025-01-15 16:39:24] Production.ERROR: pbx CDR StartTime 2025-01-15 13:39:05 - End Time 2025-01-15 16:39:05 [2025-01-15 16:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254898', 'tblTempUsageDetail_20' ) start [2025-01-15 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254898', 'tblTempUsageDetail_20' ) end [2025-01-15 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254898', 'tblTempVendorCDR_20' ) start [2025-01-15 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254898', 'tblTempVendorCDR_20' ) end [2025-01-15 16:39:24] Production.INFO: ProcessCDR(1,14254898,1,1,2) [2025-01-15 16:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254898', 'tblTempUsageDetail_20' ) start [2025-01-15 16:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254898', 'tblTempUsageDetail_20' ) end [2025-01-15 16:39:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:39:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:39:29] Production.INFO: ==711== Releasing lock... [2025-01-15 16:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:39:29] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:40:06 [end_date_ymd] => 2025-01-15 16:40:06 [RateCDR] => 1 ) [2025-01-15 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:40:06' and `end` < '2025-01-15 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:40:33] Production.INFO: count ==4377 [2025-01-15 16:40:35] Production.ERROR: pbx CDR StartTime 2025-01-15 13:40:06 - End Time 2025-01-15 16:40:06 [2025-01-15 16:40:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:40:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254904', 'tblTempUsageDetail_20' ) start [2025-01-15 16:40:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254904', 'tblTempUsageDetail_20' ) end [2025-01-15 16:40:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254904', 'tblTempVendorCDR_20' ) start [2025-01-15 16:40:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254904', 'tblTempVendorCDR_20' ) end [2025-01-15 16:40:35] Production.INFO: ProcessCDR(1,14254904,1,1,2) [2025-01-15 16:40:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:40:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:40:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:40:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:40:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254904', 'tblTempUsageDetail_20' ) start [2025-01-15 16:40:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254904', 'tblTempUsageDetail_20' ) end [2025-01-15 16:40:40] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:40:40] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:40:40] Production.INFO: ==787== Releasing lock... [2025-01-15 16:40:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:40:40] Production.INFO: 60.75 MB #Memory Used# [2025-01-15 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:41:05 [end_date_ymd] => 2025-01-15 16:41:05 [RateCDR] => 1 ) [2025-01-15 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:41:05' and `end` < '2025-01-15 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:41:32] Production.INFO: count ==4400 [2025-01-15 16:41:34] Production.ERROR: pbx CDR StartTime 2025-01-15 13:41:05 - End Time 2025-01-15 16:41:05 [2025-01-15 16:41:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254909', 'tblTempUsageDetail_20' ) start [2025-01-15 16:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254909', 'tblTempUsageDetail_20' ) end [2025-01-15 16:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254909', 'tblTempVendorCDR_20' ) start [2025-01-15 16:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254909', 'tblTempVendorCDR_20' ) end [2025-01-15 16:41:34] Production.INFO: ProcessCDR(1,14254909,1,1,2) [2025-01-15 16:41:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:41:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:41:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:41:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:41:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254909', 'tblTempUsageDetail_20' ) start [2025-01-15 16:41:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254909', 'tblTempUsageDetail_20' ) end [2025-01-15 16:41:39] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:41:39] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:41:39] Production.INFO: ==864== Releasing lock... [2025-01-15 16:41:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:41:39] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:42:05 [end_date_ymd] => 2025-01-15 16:42:05 [RateCDR] => 1 ) [2025-01-15 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:42:05' and `end` < '2025-01-15 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:42:22] Production.INFO: count ==4391 [2025-01-15 16:42:24] Production.ERROR: pbx CDR StartTime 2025-01-15 13:42:05 - End Time 2025-01-15 16:42:05 [2025-01-15 16:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254914', 'tblTempUsageDetail_20' ) start [2025-01-15 16:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254914', 'tblTempUsageDetail_20' ) end [2025-01-15 16:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254914', 'tblTempVendorCDR_20' ) start [2025-01-15 16:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254914', 'tblTempVendorCDR_20' ) end [2025-01-15 16:42:24] Production.INFO: ProcessCDR(1,14254914,1,1,2) [2025-01-15 16:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254914', 'tblTempUsageDetail_20' ) start [2025-01-15 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254914', 'tblTempUsageDetail_20' ) end [2025-01-15 16:42:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:42:29] Production.INFO: ==933== Releasing lock... [2025-01-15 16:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:42:29] Production.INFO: 60.75 MB #Memory Used# [2025-01-15 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:43:05 [end_date_ymd] => 2025-01-15 16:43:05 [RateCDR] => 1 ) [2025-01-15 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:43:05' and `end` < '2025-01-15 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:43:32] Production.INFO: count ==4418 [2025-01-15 16:43:33] Production.ERROR: pbx CDR StartTime 2025-01-15 13:43:05 - End Time 2025-01-15 16:43:05 [2025-01-15 16:43:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254919', 'tblTempUsageDetail_20' ) start [2025-01-15 16:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254919', 'tblTempUsageDetail_20' ) end [2025-01-15 16:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254919', 'tblTempVendorCDR_20' ) start [2025-01-15 16:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254919', 'tblTempVendorCDR_20' ) end [2025-01-15 16:43:34] Production.INFO: ProcessCDR(1,14254919,1,1,2) [2025-01-15 16:43:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:43:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:43:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:43:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:43:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254919', 'tblTempUsageDetail_20' ) start [2025-01-15 16:43:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254919', 'tblTempUsageDetail_20' ) end [2025-01-15 16:43:38] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:43:38] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:43:38] Production.INFO: ==1008== Releasing lock... [2025-01-15 16:43:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:43:38] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:44:04 [end_date_ymd] => 2025-01-15 16:44:04 [RateCDR] => 1 ) [2025-01-15 16:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:44:04' and `end` < '2025-01-15 16:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:44:29] Production.INFO: count ==4419 [2025-01-15 16:44:31] Production.ERROR: pbx CDR StartTime 2025-01-15 13:44:04 - End Time 2025-01-15 16:44:04 [2025-01-15 16:44:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254924', 'tblTempUsageDetail_20' ) start [2025-01-15 16:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254924', 'tblTempUsageDetail_20' ) end [2025-01-15 16:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254924', 'tblTempVendorCDR_20' ) start [2025-01-15 16:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254924', 'tblTempVendorCDR_20' ) end [2025-01-15 16:44:31] Production.INFO: ProcessCDR(1,14254924,1,1,2) [2025-01-15 16:44:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:44:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:44:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:44:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254924', 'tblTempUsageDetail_20' ) start [2025-01-15 16:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254924', 'tblTempUsageDetail_20' ) end [2025-01-15 16:44:36] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:44:36] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:44:36] Production.INFO: ==1080== Releasing lock... [2025-01-15 16:44:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:44:36] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:45:05 [end_date_ymd] => 2025-01-15 16:45:05 [RateCDR] => 1 ) [2025-01-15 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:45:05' and `end` < '2025-01-15 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:45:29] Production.INFO: count ==4420 [2025-01-15 16:45:30] Production.ERROR: pbx CDR StartTime 2025-01-15 13:45:05 - End Time 2025-01-15 16:45:05 [2025-01-15 16:45:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254929', 'tblTempUsageDetail_20' ) start [2025-01-15 16:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254929', 'tblTempUsageDetail_20' ) end [2025-01-15 16:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254929', 'tblTempVendorCDR_20' ) start [2025-01-15 16:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254929', 'tblTempVendorCDR_20' ) end [2025-01-15 16:45:30] Production.INFO: ProcessCDR(1,14254929,1,1,2) [2025-01-15 16:45:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:45:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254929', 'tblTempUsageDetail_20' ) start [2025-01-15 16:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254929', 'tblTempUsageDetail_20' ) end [2025-01-15 16:45:35] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:45:35] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:45:35] Production.INFO: ==1158== Releasing lock... [2025-01-15 16:45:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:45:35] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:46:05 [end_date_ymd] => 2025-01-15 16:46:05 [RateCDR] => 1 ) [2025-01-15 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:46:05' and `end` < '2025-01-15 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:46:22] Production.INFO: count ==4408 [2025-01-15 16:46:24] Production.ERROR: pbx CDR StartTime 2025-01-15 13:46:05 - End Time 2025-01-15 16:46:05 [2025-01-15 16:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254934', 'tblTempUsageDetail_20' ) start [2025-01-15 16:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254934', 'tblTempUsageDetail_20' ) end [2025-01-15 16:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254934', 'tblTempVendorCDR_20' ) start [2025-01-15 16:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254934', 'tblTempVendorCDR_20' ) end [2025-01-15 16:46:24] Production.INFO: ProcessCDR(1,14254934,1,1,2) [2025-01-15 16:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254934', 'tblTempUsageDetail_20' ) start [2025-01-15 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254934', 'tblTempUsageDetail_20' ) end [2025-01-15 16:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:46:28] Production.INFO: ==1232== Releasing lock... [2025-01-15 16:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:46:28] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:47:05 [end_date_ymd] => 2025-01-15 16:47:05 [RateCDR] => 1 ) [2025-01-15 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:47:05' and `end` < '2025-01-15 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:47:18] Production.INFO: count ==4408 [2025-01-15 16:47:20] Production.ERROR: pbx CDR StartTime 2025-01-15 13:47:05 - End Time 2025-01-15 16:47:05 [2025-01-15 16:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254939', 'tblTempUsageDetail_20' ) start [2025-01-15 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254939', 'tblTempUsageDetail_20' ) end [2025-01-15 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254939', 'tblTempVendorCDR_20' ) start [2025-01-15 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254939', 'tblTempVendorCDR_20' ) end [2025-01-15 16:47:20] Production.INFO: ProcessCDR(1,14254939,1,1,2) [2025-01-15 16:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254939', 'tblTempUsageDetail_20' ) start [2025-01-15 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254939', 'tblTempUsageDetail_20' ) end [2025-01-15 16:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:47:25] Production.INFO: ==1314== Releasing lock... [2025-01-15 16:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:47:25] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:48:06 [end_date_ymd] => 2025-01-15 16:48:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 13:48:06' and `end` < '2025-01-15 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-01-15 16:48:22] Production.INFO: count ==4400 [2025-01-15 16:48:24] Production.ERROR: pbx CDR StartTime 2025-01-15 13:48:06 - End Time 2025-01-15 16:48:06 [2025-01-15 16:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254941', 'tblTempUsageDetail_20' ) start [2025-01-15 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254941', 'tblTempUsageDetail_20' ) end [2025-01-15 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254941', 'tblTempVendorCDR_20' ) start [2025-01-15 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254941', 'tblTempVendorCDR_20' ) end [2025-01-15 16:48:24] Production.INFO: ProcessCDR(1,14254941,1,1,2) [2025-01-15 16:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254941', 'tblTempUsageDetail_20' ) start [2025-01-15 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254941', 'tblTempUsageDetail_20' ) end [2025-01-15 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:48:28] Production.INFO: ==1387== Releasing lock... [2025-01-15 16:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:48:28] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:49:04 [end_date_ymd] => 2025-01-15 16:49:04 [RateCDR] => 1 ) [2025-01-15 16:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:49:04' and `end` < '2025-01-15 16:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:49:21] Production.INFO: count ==4399 [2025-01-15 16:49:22] Production.ERROR: pbx CDR StartTime 2025-01-15 13:49:04 - End Time 2025-01-15 16:49:04 [2025-01-15 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254949', 'tblTempUsageDetail_20' ) start [2025-01-15 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254949', 'tblTempUsageDetail_20' ) end [2025-01-15 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254949', 'tblTempVendorCDR_20' ) start [2025-01-15 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254949', 'tblTempVendorCDR_20' ) end [2025-01-15 16:49:22] Production.INFO: ProcessCDR(1,14254949,1,1,2) [2025-01-15 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254949', 'tblTempUsageDetail_20' ) start [2025-01-15 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254949', 'tblTempUsageDetail_20' ) end [2025-01-15 16:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:49:27] Production.INFO: ==1456== Releasing lock... [2025-01-15 16:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:49:27] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:50:06 [end_date_ymd] => 2025-01-15 16:50:06 [RateCDR] => 1 ) [2025-01-15 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:50:06' and `end` < '2025-01-15 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:50:27] Production.INFO: count ==4390 [2025-01-15 16:50:29] Production.ERROR: pbx CDR StartTime 2025-01-15 13:50:06 - End Time 2025-01-15 16:50:06 [2025-01-15 16:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254955', 'tblTempUsageDetail_20' ) start [2025-01-15 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254955', 'tblTempUsageDetail_20' ) end [2025-01-15 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254955', 'tblTempVendorCDR_20' ) start [2025-01-15 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254955', 'tblTempVendorCDR_20' ) end [2025-01-15 16:50:29] Production.INFO: ProcessCDR(1,14254955,1,1,2) [2025-01-15 16:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254955', 'tblTempUsageDetail_20' ) start [2025-01-15 16:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254955', 'tblTempUsageDetail_20' ) end [2025-01-15 16:50:32] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:50:32] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:50:32] Production.INFO: ==1562== Releasing lock... [2025-01-15 16:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:50:32] Production.INFO: 60.75 MB #Memory Used# [2025-01-15 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:51:05 [end_date_ymd] => 2025-01-15 16:51:05 [RateCDR] => 1 ) [2025-01-15 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:51:05' and `end` < '2025-01-15 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:51:22] Production.INFO: count ==4395 [2025-01-15 16:51:24] Production.ERROR: pbx CDR StartTime 2025-01-15 13:51:05 - End Time 2025-01-15 16:51:05 [2025-01-15 16:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254960', 'tblTempUsageDetail_20' ) start [2025-01-15 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254960', 'tblTempUsageDetail_20' ) end [2025-01-15 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254960', 'tblTempVendorCDR_20' ) start [2025-01-15 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254960', 'tblTempVendorCDR_20' ) end [2025-01-15 16:51:24] Production.INFO: ProcessCDR(1,14254960,1,1,2) [2025-01-15 16:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254960', 'tblTempUsageDetail_20' ) start [2025-01-15 16:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254960', 'tblTempUsageDetail_20' ) end [2025-01-15 16:51:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:51:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:51:29] Production.INFO: ==1638== Releasing lock... [2025-01-15 16:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:51:29] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:52:06 [end_date_ymd] => 2025-01-15 16:52:06 [RateCDR] => 1 ) [2025-01-15 16:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:52:06' and `end` < '2025-01-15 16:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:52:22] Production.INFO: count ==4398 [2025-01-15 16:52:24] Production.ERROR: pbx CDR StartTime 2025-01-15 13:52:06 - End Time 2025-01-15 16:52:06 [2025-01-15 16:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254965', 'tblTempUsageDetail_20' ) start [2025-01-15 16:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254965', 'tblTempUsageDetail_20' ) end [2025-01-15 16:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254965', 'tblTempVendorCDR_20' ) start [2025-01-15 16:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254965', 'tblTempVendorCDR_20' ) end [2025-01-15 16:52:24] Production.INFO: ProcessCDR(1,14254965,1,1,2) [2025-01-15 16:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254965', 'tblTempUsageDetail_20' ) start [2025-01-15 16:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254965', 'tblTempUsageDetail_20' ) end [2025-01-15 16:52:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:52:29] Production.INFO: ==1711== Releasing lock... [2025-01-15 16:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:52:29] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:53:04 [end_date_ymd] => 2025-01-15 16:53:04 [RateCDR] => 1 ) [2025-01-15 16:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:53:04' and `end` < '2025-01-15 16:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:53:21] Production.INFO: count ==4408 [2025-01-15 16:53:22] Production.ERROR: pbx CDR StartTime 2025-01-15 13:53:04 - End Time 2025-01-15 16:53:04 [2025-01-15 16:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254970', 'tblTempUsageDetail_20' ) start [2025-01-15 16:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254970', 'tblTempUsageDetail_20' ) end [2025-01-15 16:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254970', 'tblTempVendorCDR_20' ) start [2025-01-15 16:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254970', 'tblTempVendorCDR_20' ) end [2025-01-15 16:53:23] Production.INFO: ProcessCDR(1,14254970,1,1,2) [2025-01-15 16:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254970', 'tblTempUsageDetail_20' ) start [2025-01-15 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254970', 'tblTempUsageDetail_20' ) end [2025-01-15 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:53:27] Production.INFO: ==1822== Releasing lock... [2025-01-15 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:53:27] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:54:05 [end_date_ymd] => 2025-01-15 16:54:05 [RateCDR] => 1 ) [2025-01-15 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:54:05' and `end` < '2025-01-15 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:54:18] Production.INFO: count ==4415 [2025-01-15 16:54:20] Production.ERROR: pbx CDR StartTime 2025-01-15 13:54:05 - End Time 2025-01-15 16:54:05 [2025-01-15 16:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254975', 'tblTempUsageDetail_20' ) start [2025-01-15 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254975', 'tblTempUsageDetail_20' ) end [2025-01-15 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254975', 'tblTempVendorCDR_20' ) start [2025-01-15 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254975', 'tblTempVendorCDR_20' ) end [2025-01-15 16:54:20] Production.INFO: ProcessCDR(1,14254975,1,1,2) [2025-01-15 16:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254975', 'tblTempUsageDetail_20' ) start [2025-01-15 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254975', 'tblTempUsageDetail_20' ) end [2025-01-15 16:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:54:26] Production.INFO: ==1896== Releasing lock... [2025-01-15 16:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:54:26] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:55:05 [end_date_ymd] => 2025-01-15 16:55:05 [RateCDR] => 1 ) [2025-01-15 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:55:05' and `end` < '2025-01-15 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:55:18] Production.INFO: count ==4418 [2025-01-15 16:55:20] Production.ERROR: pbx CDR StartTime 2025-01-15 13:55:05 - End Time 2025-01-15 16:55:05 [2025-01-15 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254980', 'tblTempUsageDetail_20' ) start [2025-01-15 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254980', 'tblTempUsageDetail_20' ) end [2025-01-15 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254980', 'tblTempVendorCDR_20' ) start [2025-01-15 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254980', 'tblTempVendorCDR_20' ) end [2025-01-15 16:55:20] Production.INFO: ProcessCDR(1,14254980,1,1,2) [2025-01-15 16:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254980', 'tblTempUsageDetail_20' ) start [2025-01-15 16:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254980', 'tblTempUsageDetail_20' ) end [2025-01-15 16:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:55:23] Production.INFO: ==1978== Releasing lock... [2025-01-15 16:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:55:23] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:56:05 [end_date_ymd] => 2025-01-15 16:56:05 [RateCDR] => 1 ) [2025-01-15 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:56:05' and `end` < '2025-01-15 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:56:18] Production.INFO: count ==4403 [2025-01-15 16:56:20] Production.ERROR: pbx CDR StartTime 2025-01-15 13:56:05 - End Time 2025-01-15 16:56:05 [2025-01-15 16:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254985', 'tblTempUsageDetail_20' ) start [2025-01-15 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254985', 'tblTempUsageDetail_20' ) end [2025-01-15 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254985', 'tblTempVendorCDR_20' ) start [2025-01-15 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254985', 'tblTempVendorCDR_20' ) end [2025-01-15 16:56:20] Production.INFO: ProcessCDR(1,14254985,1,1,2) [2025-01-15 16:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254985', 'tblTempUsageDetail_20' ) start [2025-01-15 16:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254985', 'tblTempUsageDetail_20' ) end [2025-01-15 16:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:56:24] Production.INFO: ==2086== Releasing lock... [2025-01-15 16:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:56:24] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:57:06 [end_date_ymd] => 2025-01-15 16:57:06 [RateCDR] => 1 ) [2025-01-15 16:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:57:06' and `end` < '2025-01-15 16:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:57:19] Production.INFO: count ==4405 [2025-01-15 16:57:20] Production.ERROR: pbx CDR StartTime 2025-01-15 13:57:06 - End Time 2025-01-15 16:57:06 [2025-01-15 16:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254990', 'tblTempUsageDetail_20' ) start [2025-01-15 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254990', 'tblTempUsageDetail_20' ) end [2025-01-15 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254990', 'tblTempVendorCDR_20' ) start [2025-01-15 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254990', 'tblTempVendorCDR_20' ) end [2025-01-15 16:57:21] Production.INFO: ProcessCDR(1,14254990,1,1,2) [2025-01-15 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254990', 'tblTempUsageDetail_20' ) start [2025-01-15 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254990', 'tblTempUsageDetail_20' ) end [2025-01-15 16:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:57:26] Production.INFO: ==2188== Releasing lock... [2025-01-15 16:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:57:26] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:58:05 [end_date_ymd] => 2025-01-15 16:58:05 [RateCDR] => 1 ) [2025-01-15 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:58:05' and `end` < '2025-01-15 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:58:27] Production.INFO: count ==4411 [2025-01-15 16:58:29] Production.ERROR: pbx CDR StartTime 2025-01-15 13:58:05 - End Time 2025-01-15 16:58:05 [2025-01-15 16:58:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254995', 'tblTempUsageDetail_20' ) start [2025-01-15 16:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14254995', 'tblTempUsageDetail_20' ) end [2025-01-15 16:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254995', 'tblTempVendorCDR_20' ) start [2025-01-15 16:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14254995', 'tblTempVendorCDR_20' ) end [2025-01-15 16:58:29] Production.INFO: ProcessCDR(1,14254995,1,1,2) [2025-01-15 16:58:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14254995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:58:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14254995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:58:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14254995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:58:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14254995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254995', 'tblTempUsageDetail_20' ) start [2025-01-15 16:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14254995', 'tblTempUsageDetail_20' ) end [2025-01-15 16:58:34] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:58:34] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:58:34] Production.INFO: ==2301== Releasing lock... [2025-01-15 16:58:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:58:34] Production.INFO: 61 MB #Memory Used# [2025-01-15 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 13:59:06 [end_date_ymd] => 2025-01-15 16:59:06 [RateCDR] => 1 ) [2025-01-15 16:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 13:59:06' and `end` < '2025-01-15 16:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 16:59:22] Production.INFO: count ==4424 [2025-01-15 16:59:24] Production.ERROR: pbx CDR StartTime 2025-01-15 13:59:06 - End Time 2025-01-15 16:59:06 [2025-01-15 16:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255000', 'tblTempUsageDetail_20' ) start [2025-01-15 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255000', 'tblTempUsageDetail_20' ) end [2025-01-15 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255000', 'tblTempVendorCDR_20' ) start [2025-01-15 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255000', 'tblTempVendorCDR_20' ) end [2025-01-15 16:59:24] Production.INFO: ProcessCDR(1,14255000,1,1,2) [2025-01-15 16:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 16:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 16:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255000', 'tblTempUsageDetail_20' ) start [2025-01-15 16:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255000', 'tblTempUsageDetail_20' ) end [2025-01-15 16:59:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 16:59:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 16:59:29] Production.INFO: ==2407== Releasing lock... [2025-01-15 16:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 16:59:29] Production.INFO: 61 MB #Memory Used# [2025-01-15 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:00:06 [end_date_ymd] => 2025-01-15 17:00:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 14:00:06' and `end` < '2025-01-15 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-01-15 17:00:26] Production.INFO: count ==4419 [2025-01-15 17:00:27] Production.ERROR: pbx CDR StartTime 2025-01-15 14:00:06 - End Time 2025-01-15 17:00:06 [2025-01-15 17:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255006', 'tblTempUsageDetail_20' ) start [2025-01-15 17:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255006', 'tblTempUsageDetail_20' ) end [2025-01-15 17:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255006', 'tblTempVendorCDR_20' ) start [2025-01-15 17:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255006', 'tblTempVendorCDR_20' ) end [2025-01-15 17:00:28] Production.INFO: ProcessCDR(1,14255006,1,1,2) [2025-01-15 17:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255006', 'tblTempUsageDetail_20' ) start [2025-01-15 17:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255006', 'tblTempUsageDetail_20' ) end [2025-01-15 17:00:33] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:00:33] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:00:33] Production.INFO: ==2508== Releasing lock... [2025-01-15 17:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:00:33] Production.INFO: 61 MB #Memory Used# [2025-01-15 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:01:06 [end_date_ymd] => 2025-01-15 17:01:06 [RateCDR] => 1 ) [2025-01-15 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:01:06' and `end` < '2025-01-15 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:01:29] Production.INFO: count ==4416 [2025-01-15 17:01:31] Production.ERROR: pbx CDR StartTime 2025-01-15 14:01:06 - End Time 2025-01-15 17:01:06 [2025-01-15 17:01:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255011', 'tblTempUsageDetail_20' ) start [2025-01-15 17:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255011', 'tblTempUsageDetail_20' ) end [2025-01-15 17:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255011', 'tblTempVendorCDR_20' ) start [2025-01-15 17:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255011', 'tblTempVendorCDR_20' ) end [2025-01-15 17:01:31] Production.INFO: ProcessCDR(1,14255011,1,1,2) [2025-01-15 17:01:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:01:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:01:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:01:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255011', 'tblTempUsageDetail_20' ) start [2025-01-15 17:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255011', 'tblTempUsageDetail_20' ) end [2025-01-15 17:01:36] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:01:36] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:01:36] Production.INFO: ==2617== Releasing lock... [2025-01-15 17:01:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:01:36] Production.INFO: 61 MB #Memory Used# [2025-01-15 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:02:05 [end_date_ymd] => 2025-01-15 17:02:05 [RateCDR] => 1 ) [2025-01-15 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:02:05' and `end` < '2025-01-15 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:02:21] Production.INFO: count ==4408 [2025-01-15 17:02:23] Production.ERROR: pbx CDR StartTime 2025-01-15 14:02:05 - End Time 2025-01-15 17:02:05 [2025-01-15 17:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255015', 'tblTempUsageDetail_20' ) start [2025-01-15 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255015', 'tblTempUsageDetail_20' ) end [2025-01-15 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255015', 'tblTempVendorCDR_20' ) start [2025-01-15 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255015', 'tblTempVendorCDR_20' ) end [2025-01-15 17:02:23] Production.INFO: ProcessCDR(1,14255015,1,1,2) [2025-01-15 17:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255015', 'tblTempUsageDetail_20' ) start [2025-01-15 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255015', 'tblTempUsageDetail_20' ) end [2025-01-15 17:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:02:28] Production.INFO: ==2710== Releasing lock... [2025-01-15 17:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:02:28] Production.INFO: 61 MB #Memory Used# [2025-01-15 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:03:05 [end_date_ymd] => 2025-01-15 17:03:05 [RateCDR] => 1 ) [2025-01-15 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:03:05' and `end` < '2025-01-15 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:03:20] Production.INFO: count ==4395 [2025-01-15 17:03:22] Production.ERROR: pbx CDR StartTime 2025-01-15 14:03:05 - End Time 2025-01-15 17:03:05 [2025-01-15 17:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255021', 'tblTempUsageDetail_20' ) start [2025-01-15 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255021', 'tblTempUsageDetail_20' ) end [2025-01-15 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255021', 'tblTempVendorCDR_20' ) start [2025-01-15 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255021', 'tblTempVendorCDR_20' ) end [2025-01-15 17:03:22] Production.INFO: ProcessCDR(1,14255021,1,1,2) [2025-01-15 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255021', 'tblTempUsageDetail_20' ) start [2025-01-15 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255021', 'tblTempUsageDetail_20' ) end [2025-01-15 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:03:27] Production.INFO: ==2806== Releasing lock... [2025-01-15 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:03:27] Production.INFO: 61 MB #Memory Used# [2025-01-15 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:04:05 [end_date_ymd] => 2025-01-15 17:04:05 [RateCDR] => 1 ) [2025-01-15 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:04:05' and `end` < '2025-01-15 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:04:22] Production.INFO: count ==4392 [2025-01-15 17:04:24] Production.ERROR: pbx CDR StartTime 2025-01-15 14:04:05 - End Time 2025-01-15 17:04:05 [2025-01-15 17:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255026', 'tblTempUsageDetail_20' ) start [2025-01-15 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255026', 'tblTempUsageDetail_20' ) end [2025-01-15 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255026', 'tblTempVendorCDR_20' ) start [2025-01-15 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255026', 'tblTempVendorCDR_20' ) end [2025-01-15 17:04:24] Production.INFO: ProcessCDR(1,14255026,1,1,2) [2025-01-15 17:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255026', 'tblTempUsageDetail_20' ) start [2025-01-15 17:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255026', 'tblTempUsageDetail_20' ) end [2025-01-15 17:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:04:30] Production.INFO: ==2902== Releasing lock... [2025-01-15 17:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:04:30] Production.INFO: 60.75 MB #Memory Used# [2025-01-15 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:05:05 [end_date_ymd] => 2025-01-15 17:05:05 [RateCDR] => 1 ) [2025-01-15 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:05:05' and `end` < '2025-01-15 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:05:18] Production.INFO: count ==4380 [2025-01-15 17:05:20] Production.ERROR: pbx CDR StartTime 2025-01-15 14:05:05 - End Time 2025-01-15 17:05:05 [2025-01-15 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255031', 'tblTempUsageDetail_20' ) start [2025-01-15 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255031', 'tblTempUsageDetail_20' ) end [2025-01-15 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255031', 'tblTempVendorCDR_20' ) start [2025-01-15 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255031', 'tblTempVendorCDR_20' ) end [2025-01-15 17:05:20] Production.INFO: ProcessCDR(1,14255031,1,1,2) [2025-01-15 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255031', 'tblTempUsageDetail_20' ) start [2025-01-15 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255031', 'tblTempUsageDetail_20' ) end [2025-01-15 17:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:05:25] Production.INFO: ==2996== Releasing lock... [2025-01-15 17:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:05:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-15 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:06:05 [end_date_ymd] => 2025-01-15 17:06:05 [RateCDR] => 1 ) [2025-01-15 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:06:05' and `end` < '2025-01-15 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:06:22] Production.INFO: count ==4369 [2025-01-15 17:06:23] Production.ERROR: pbx CDR StartTime 2025-01-15 14:06:05 - End Time 2025-01-15 17:06:05 [2025-01-15 17:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255036', 'tblTempUsageDetail_20' ) start [2025-01-15 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255036', 'tblTempUsageDetail_20' ) end [2025-01-15 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255036', 'tblTempVendorCDR_20' ) start [2025-01-15 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255036', 'tblTempVendorCDR_20' ) end [2025-01-15 17:06:23] Production.INFO: ProcessCDR(1,14255036,1,1,2) [2025-01-15 17:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255036', 'tblTempUsageDetail_20' ) start [2025-01-15 17:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255036', 'tblTempUsageDetail_20' ) end [2025-01-15 17:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:06:29] Production.INFO: ==3092== Releasing lock... [2025-01-15 17:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:06:29] Production.INFO: 60.75 MB #Memory Used# [2025-01-15 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:07:05 [end_date_ymd] => 2025-01-15 17:07:05 [RateCDR] => 1 ) [2025-01-15 17:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:07:05' and `end` < '2025-01-15 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:07:19] Production.INFO: count ==4356 [2025-01-15 17:07:21] Production.ERROR: pbx CDR StartTime 2025-01-15 14:07:05 - End Time 2025-01-15 17:07:05 [2025-01-15 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255041', 'tblTempUsageDetail_20' ) start [2025-01-15 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255041', 'tblTempUsageDetail_20' ) end [2025-01-15 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255041', 'tblTempVendorCDR_20' ) start [2025-01-15 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255041', 'tblTempVendorCDR_20' ) end [2025-01-15 17:07:21] Production.INFO: ProcessCDR(1,14255041,1,1,2) [2025-01-15 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255041', 'tblTempUsageDetail_20' ) start [2025-01-15 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255041', 'tblTempUsageDetail_20' ) end [2025-01-15 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:07:27] Production.INFO: ==3193== Releasing lock... [2025-01-15 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:07:27] Production.INFO: 60.5 MB #Memory Used# [2025-01-15 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:08:05 [end_date_ymd] => 2025-01-15 17:08:05 [RateCDR] => 1 ) [2025-01-15 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:08:05' and `end` < '2025-01-15 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:08:22] Production.INFO: count ==4342 [2025-01-15 17:08:24] Production.ERROR: pbx CDR StartTime 2025-01-15 14:08:05 - End Time 2025-01-15 17:08:05 [2025-01-15 17:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255046', 'tblTempUsageDetail_20' ) start [2025-01-15 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255046', 'tblTempUsageDetail_20' ) end [2025-01-15 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255046', 'tblTempVendorCDR_20' ) start [2025-01-15 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255046', 'tblTempVendorCDR_20' ) end [2025-01-15 17:08:24] Production.INFO: ProcessCDR(1,14255046,1,1,2) [2025-01-15 17:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255046', 'tblTempUsageDetail_20' ) start [2025-01-15 17:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255046', 'tblTempUsageDetail_20' ) end [2025-01-15 17:08:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:08:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:08:29] Production.INFO: ==3340== Releasing lock... [2025-01-15 17:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:08:29] Production.INFO: 60.5 MB #Memory Used# [2025-01-15 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:09:05 [end_date_ymd] => 2025-01-15 17:09:05 [RateCDR] => 1 ) [2025-01-15 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:09:05' and `end` < '2025-01-15 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:09:23] Production.INFO: count ==4337 [2025-01-15 17:09:24] Production.ERROR: pbx CDR StartTime 2025-01-15 14:09:05 - End Time 2025-01-15 17:09:05 [2025-01-15 17:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255051', 'tblTempUsageDetail_20' ) start [2025-01-15 17:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255051', 'tblTempUsageDetail_20' ) end [2025-01-15 17:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255051', 'tblTempVendorCDR_20' ) start [2025-01-15 17:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255051', 'tblTempVendorCDR_20' ) end [2025-01-15 17:09:25] Production.INFO: ProcessCDR(1,14255051,1,1,2) [2025-01-15 17:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255051', 'tblTempUsageDetail_20' ) start [2025-01-15 17:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255051', 'tblTempUsageDetail_20' ) end [2025-01-15 17:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:09:28] Production.INFO: ==3443== Releasing lock... [2025-01-15 17:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:09:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-15 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:10:06 [end_date_ymd] => 2025-01-15 17:10:06 [RateCDR] => 1 ) [2025-01-15 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:10:06' and `end` < '2025-01-15 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:10:20] Production.INFO: count ==4300 [2025-01-15 17:10:22] Production.ERROR: pbx CDR StartTime 2025-01-15 14:10:06 - End Time 2025-01-15 17:10:06 [2025-01-15 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255056', 'tblTempUsageDetail_20' ) start [2025-01-15 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255056', 'tblTempUsageDetail_20' ) end [2025-01-15 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255056', 'tblTempVendorCDR_20' ) start [2025-01-15 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255056', 'tblTempVendorCDR_20' ) end [2025-01-15 17:10:22] Production.INFO: ProcessCDR(1,14255056,1,1,2) [2025-01-15 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255056', 'tblTempUsageDetail_20' ) start [2025-01-15 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255056', 'tblTempUsageDetail_20' ) end [2025-01-15 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:10:27] Production.INFO: ==3551== Releasing lock... [2025-01-15 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:10:27] Production.INFO: 60.25 MB #Memory Used# [2025-01-15 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:11:05 [end_date_ymd] => 2025-01-15 17:11:05 [RateCDR] => 1 ) [2025-01-15 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:11:05' and `end` < '2025-01-15 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:11:22] Production.INFO: count ==4305 [2025-01-15 17:11:23] Production.ERROR: pbx CDR StartTime 2025-01-15 14:11:05 - End Time 2025-01-15 17:11:05 [2025-01-15 17:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255062', 'tblTempUsageDetail_20' ) start [2025-01-15 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255062', 'tblTempUsageDetail_20' ) end [2025-01-15 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255062', 'tblTempVendorCDR_20' ) start [2025-01-15 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255062', 'tblTempVendorCDR_20' ) end [2025-01-15 17:11:23] Production.INFO: ProcessCDR(1,14255062,1,1,2) [2025-01-15 17:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255062', 'tblTempUsageDetail_20' ) start [2025-01-15 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255062', 'tblTempUsageDetail_20' ) end [2025-01-15 17:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:11:28] Production.INFO: ==3660== Releasing lock... [2025-01-15 17:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:11:28] Production.INFO: 60.25 MB #Memory Used# [2025-01-15 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:12:05 [end_date_ymd] => 2025-01-15 17:12:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 14:12:05' and `end` < '2025-01-15 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-01-15 17:12:19] Production.INFO: count ==4307 [2025-01-15 17:12:21] Production.ERROR: pbx CDR StartTime 2025-01-15 14:12:05 - End Time 2025-01-15 17:12:05 [2025-01-15 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255067', 'tblTempUsageDetail_20' ) start [2025-01-15 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255067', 'tblTempUsageDetail_20' ) end [2025-01-15 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255067', 'tblTempVendorCDR_20' ) start [2025-01-15 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255067', 'tblTempVendorCDR_20' ) end [2025-01-15 17:12:21] Production.INFO: ProcessCDR(1,14255067,1,1,2) [2025-01-15 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255067', 'tblTempUsageDetail_20' ) start [2025-01-15 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255067', 'tblTempUsageDetail_20' ) end [2025-01-15 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:12:26] Production.INFO: ==3768== Releasing lock... [2025-01-15 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:12:26] Production.INFO: 60.25 MB #Memory Used# [2025-01-15 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:13:05 [end_date_ymd] => 2025-01-15 17:13:05 [RateCDR] => 1 ) [2025-01-15 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:13:05' and `end` < '2025-01-15 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:13:19] Production.INFO: count ==4283 [2025-01-15 17:13:20] Production.ERROR: pbx CDR StartTime 2025-01-15 14:13:05 - End Time 2025-01-15 17:13:05 [2025-01-15 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255072', 'tblTempUsageDetail_20' ) start [2025-01-15 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255072', 'tblTempUsageDetail_20' ) end [2025-01-15 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255072', 'tblTempVendorCDR_20' ) start [2025-01-15 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255072', 'tblTempVendorCDR_20' ) end [2025-01-15 17:13:20] Production.INFO: ProcessCDR(1,14255072,1,1,2) [2025-01-15 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255072', 'tblTempUsageDetail_20' ) start [2025-01-15 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255072', 'tblTempUsageDetail_20' ) end [2025-01-15 17:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:13:25] Production.INFO: ==3851== Releasing lock... [2025-01-15 17:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:13:25] Production.INFO: 60.25 MB #Memory Used# [2025-01-15 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:14:05 [end_date_ymd] => 2025-01-15 17:14:05 [RateCDR] => 1 ) [2025-01-15 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:14:05' and `end` < '2025-01-15 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:14:20] Production.INFO: count ==4256 [2025-01-15 17:14:21] Production.ERROR: pbx CDR StartTime 2025-01-15 14:14:05 - End Time 2025-01-15 17:14:05 [2025-01-15 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255077', 'tblTempUsageDetail_20' ) start [2025-01-15 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255077', 'tblTempUsageDetail_20' ) end [2025-01-15 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255077', 'tblTempVendorCDR_20' ) start [2025-01-15 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255077', 'tblTempVendorCDR_20' ) end [2025-01-15 17:14:22] Production.INFO: ProcessCDR(1,14255077,1,1,2) [2025-01-15 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255077', 'tblTempUsageDetail_20' ) start [2025-01-15 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255077', 'tblTempUsageDetail_20' ) end [2025-01-15 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:14:26] Production.INFO: ==3935== Releasing lock... [2025-01-15 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:14:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-15 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:15:05 [end_date_ymd] => 2025-01-15 17:15:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 14:15:05' and `end` < '2025-01-15 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-01-15 17:15:19] Production.INFO: count ==4249 [2025-01-15 17:15:20] Production.ERROR: pbx CDR StartTime 2025-01-15 14:15:05 - End Time 2025-01-15 17:15:05 [2025-01-15 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255082', 'tblTempUsageDetail_20' ) start [2025-01-15 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255082', 'tblTempUsageDetail_20' ) end [2025-01-15 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255082', 'tblTempVendorCDR_20' ) start [2025-01-15 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255082', 'tblTempVendorCDR_20' ) end [2025-01-15 17:15:20] Production.INFO: ProcessCDR(1,14255082,1,1,2) [2025-01-15 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255082', 'tblTempUsageDetail_20' ) start [2025-01-15 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255082', 'tblTempUsageDetail_20' ) end [2025-01-15 17:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:15:25] Production.INFO: ==4015== Releasing lock... [2025-01-15 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:15:25] Production.INFO: 59.75 MB #Memory Used# [2025-01-15 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:16:06 [end_date_ymd] => 2025-01-15 17:16:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 14:16:06' and `end` < '2025-01-15 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-01-15 17:16:22] Production.INFO: count ==4239 [2025-01-15 17:16:24] Production.ERROR: pbx CDR StartTime 2025-01-15 14:16:06 - End Time 2025-01-15 17:16:06 [2025-01-15 17:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255087', 'tblTempUsageDetail_20' ) start [2025-01-15 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255087', 'tblTempUsageDetail_20' ) end [2025-01-15 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255087', 'tblTempVendorCDR_20' ) start [2025-01-15 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255087', 'tblTempVendorCDR_20' ) end [2025-01-15 17:16:24] Production.INFO: ProcessCDR(1,14255087,1,1,2) [2025-01-15 17:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255087', 'tblTempUsageDetail_20' ) start [2025-01-15 17:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255087', 'tblTempUsageDetail_20' ) end [2025-01-15 17:16:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:16:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:16:29] Production.INFO: ==4097== Releasing lock... [2025-01-15 17:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:16:29] Production.INFO: 60 MB #Memory Used# [2025-01-15 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:17:05 [end_date_ymd] => 2025-01-15 17:17:05 [RateCDR] => 1 ) [2025-01-15 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:17:05' and `end` < '2025-01-15 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:17:20] Production.INFO: count ==4232 [2025-01-15 17:17:22] Production.ERROR: pbx CDR StartTime 2025-01-15 14:17:05 - End Time 2025-01-15 17:17:05 [2025-01-15 17:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255092', 'tblTempUsageDetail_20' ) start [2025-01-15 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255092', 'tblTempUsageDetail_20' ) end [2025-01-15 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255092', 'tblTempVendorCDR_20' ) start [2025-01-15 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255092', 'tblTempVendorCDR_20' ) end [2025-01-15 17:17:22] Production.INFO: ProcessCDR(1,14255092,1,1,2) [2025-01-15 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255092', 'tblTempUsageDetail_20' ) start [2025-01-15 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255092', 'tblTempUsageDetail_20' ) end [2025-01-15 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:17:27] Production.INFO: ==4179== Releasing lock... [2025-01-15 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:17:27] Production.INFO: 60 MB #Memory Used# [2025-01-15 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:18:05 [end_date_ymd] => 2025-01-15 17:18:05 [RateCDR] => 1 ) [2025-01-15 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:18:05' and `end` < '2025-01-15 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:18:20] Production.INFO: count ==4223 [2025-01-15 17:18:22] Production.ERROR: pbx CDR StartTime 2025-01-15 14:18:05 - End Time 2025-01-15 17:18:05 [2025-01-15 17:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255097', 'tblTempUsageDetail_20' ) start [2025-01-15 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255097', 'tblTempUsageDetail_20' ) end [2025-01-15 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255097', 'tblTempVendorCDR_20' ) start [2025-01-15 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255097', 'tblTempVendorCDR_20' ) end [2025-01-15 17:18:22] Production.INFO: ProcessCDR(1,14255097,1,1,2) [2025-01-15 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255097', 'tblTempUsageDetail_20' ) start [2025-01-15 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255097', 'tblTempUsageDetail_20' ) end [2025-01-15 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:18:26] Production.INFO: ==4262== Releasing lock... [2025-01-15 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:18:26] Production.INFO: 59.5 MB #Memory Used# [2025-01-15 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:19:05 [end_date_ymd] => 2025-01-15 17:19:05 [RateCDR] => 1 ) [2025-01-15 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:19:05' and `end` < '2025-01-15 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:19:19] Production.INFO: count ==4206 [2025-01-15 17:19:20] Production.ERROR: pbx CDR StartTime 2025-01-15 14:19:05 - End Time 2025-01-15 17:19:05 [2025-01-15 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255102', 'tblTempUsageDetail_20' ) start [2025-01-15 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255102', 'tblTempUsageDetail_20' ) end [2025-01-15 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255102', 'tblTempVendorCDR_20' ) start [2025-01-15 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255102', 'tblTempVendorCDR_20' ) end [2025-01-15 17:19:20] Production.INFO: ProcessCDR(1,14255102,1,1,2) [2025-01-15 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255102', 'tblTempUsageDetail_20' ) start [2025-01-15 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255102', 'tblTempUsageDetail_20' ) end [2025-01-15 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:19:26] Production.INFO: ==4339== Releasing lock... [2025-01-15 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:19:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-15 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:20:06 [end_date_ymd] => 2025-01-15 17:20:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 14:20:06' and `end` < '2025-01-15 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-01-15 17:20:19] Production.INFO: count ==4174 [2025-01-15 17:20:21] Production.ERROR: pbx CDR StartTime 2025-01-15 14:20:06 - End Time 2025-01-15 17:20:06 [2025-01-15 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255107', 'tblTempUsageDetail_20' ) start [2025-01-15 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255107', 'tblTempUsageDetail_20' ) end [2025-01-15 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255107', 'tblTempVendorCDR_20' ) start [2025-01-15 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255107', 'tblTempVendorCDR_20' ) end [2025-01-15 17:20:21] Production.INFO: ProcessCDR(1,14255107,1,1,2) [2025-01-15 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255107', 'tblTempUsageDetail_20' ) start [2025-01-15 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255107', 'tblTempUsageDetail_20' ) end [2025-01-15 17:20:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:20:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:20:26] Production.INFO: ==4425== Releasing lock... [2025-01-15 17:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:20:26] Production.INFO: 59.5 MB #Memory Used# [2025-01-15 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:21:05 [end_date_ymd] => 2025-01-15 17:21:05 [RateCDR] => 1 ) [2025-01-15 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:21:05' and `end` < '2025-01-15 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:21:20] Production.INFO: count ==4138 [2025-01-15 17:21:22] Production.ERROR: pbx CDR StartTime 2025-01-15 14:21:05 - End Time 2025-01-15 17:21:05 [2025-01-15 17:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255113', 'tblTempUsageDetail_20' ) start [2025-01-15 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255113', 'tblTempUsageDetail_20' ) end [2025-01-15 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255113', 'tblTempVendorCDR_20' ) start [2025-01-15 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255113', 'tblTempVendorCDR_20' ) end [2025-01-15 17:21:22] Production.INFO: ProcessCDR(1,14255113,1,1,2) [2025-01-15 17:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255113', 'tblTempUsageDetail_20' ) start [2025-01-15 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255113', 'tblTempUsageDetail_20' ) end [2025-01-15 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:21:27] Production.INFO: ==4511== Releasing lock... [2025-01-15 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:21:27] Production.INFO: 59 MB #Memory Used# [2025-01-15 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:22:06 [end_date_ymd] => 2025-01-15 17:22:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 14:22:06' and `end` < '2025-01-15 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-01-15 17:22:20] Production.INFO: count ==4130 [2025-01-15 17:22:21] Production.ERROR: pbx CDR StartTime 2025-01-15 14:22:06 - End Time 2025-01-15 17:22:06 [2025-01-15 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255118', 'tblTempUsageDetail_20' ) start [2025-01-15 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255118', 'tblTempUsageDetail_20' ) end [2025-01-15 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255118', 'tblTempVendorCDR_20' ) start [2025-01-15 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255118', 'tblTempVendorCDR_20' ) end [2025-01-15 17:22:22] Production.INFO: ProcessCDR(1,14255118,1,1,2) [2025-01-15 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255118', 'tblTempUsageDetail_20' ) start [2025-01-15 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255118', 'tblTempUsageDetail_20' ) end [2025-01-15 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:22:27] Production.INFO: ==4601== Releasing lock... [2025-01-15 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:22:27] Production.INFO: 59 MB #Memory Used# [2025-01-15 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:23:05 [end_date_ymd] => 2025-01-15 17:23:05 [RateCDR] => 1 ) [2025-01-15 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:23:05' and `end` < '2025-01-15 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:23:20] Production.INFO: count ==4125 [2025-01-15 17:23:22] Production.ERROR: pbx CDR StartTime 2025-01-15 14:23:05 - End Time 2025-01-15 17:23:05 [2025-01-15 17:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255123', 'tblTempUsageDetail_20' ) start [2025-01-15 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255123', 'tblTempUsageDetail_20' ) end [2025-01-15 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255123', 'tblTempVendorCDR_20' ) start [2025-01-15 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255123', 'tblTempVendorCDR_20' ) end [2025-01-15 17:23:22] Production.INFO: ProcessCDR(1,14255123,1,1,2) [2025-01-15 17:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255123', 'tblTempUsageDetail_20' ) start [2025-01-15 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255123', 'tblTempUsageDetail_20' ) end [2025-01-15 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:23:27] Production.INFO: ==4681== Releasing lock... [2025-01-15 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:23:27] Production.INFO: 58.75 MB #Memory Used# [2025-01-15 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:24:05 [end_date_ymd] => 2025-01-15 17:24:05 [RateCDR] => 1 ) [2025-01-15 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:24:05' and `end` < '2025-01-15 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:24:18] Production.INFO: count ==4111 [2025-01-15 17:24:20] Production.ERROR: pbx CDR StartTime 2025-01-15 14:24:05 - End Time 2025-01-15 17:24:05 [2025-01-15 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255128', 'tblTempUsageDetail_20' ) start [2025-01-15 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255128', 'tblTempUsageDetail_20' ) end [2025-01-15 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255128', 'tblTempVendorCDR_20' ) start [2025-01-15 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255128', 'tblTempVendorCDR_20' ) end [2025-01-15 17:24:20] Production.INFO: ProcessCDR(1,14255128,1,1,2) [2025-01-15 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255128', 'tblTempUsageDetail_20' ) start [2025-01-15 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255128', 'tblTempUsageDetail_20' ) end [2025-01-15 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:24:25] Production.INFO: ==4803== Releasing lock... [2025-01-15 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:24:25] Production.INFO: 58.75 MB #Memory Used# [2025-01-15 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:25:05 [end_date_ymd] => 2025-01-15 17:25:05 [RateCDR] => 1 ) [2025-01-15 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:25:05' and `end` < '2025-01-15 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:25:18] Production.INFO: count ==4101 [2025-01-15 17:25:20] Production.ERROR: pbx CDR StartTime 2025-01-15 14:25:05 - End Time 2025-01-15 17:25:05 [2025-01-15 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255133', 'tblTempUsageDetail_20' ) start [2025-01-15 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255133', 'tblTempUsageDetail_20' ) end [2025-01-15 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255133', 'tblTempVendorCDR_20' ) start [2025-01-15 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255133', 'tblTempVendorCDR_20' ) end [2025-01-15 17:25:20] Production.INFO: ProcessCDR(1,14255133,1,1,2) [2025-01-15 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255133', 'tblTempUsageDetail_20' ) start [2025-01-15 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255133', 'tblTempUsageDetail_20' ) end [2025-01-15 17:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:25:24] Production.INFO: ==4888== Releasing lock... [2025-01-15 17:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:25:24] Production.INFO: 58.75 MB #Memory Used# [2025-01-15 17:26:20] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:26:20 [end_date_ymd] => 2025-01-15 17:26:20 [RateCDR] => 1 ) [2025-01-15 17:26:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:26:20' and `end` < '2025-01-15 17:26:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:26:33] Production.INFO: count ==4071 [2025-01-15 17:27:38] Production.ERROR: pbx CDR StartTime 2025-01-15 14:26:20 - End Time 2025-01-15 17:26:20 [2025-01-15 17:27:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:27:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255138', 'tblTempUsageDetail_20' ) start [2025-01-15 17:27:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255138', 'tblTempUsageDetail_20' ) end [2025-01-15 17:27:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255138', 'tblTempVendorCDR_20' ) start [2025-01-15 17:27:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255138', 'tblTempVendorCDR_20' ) end [2025-01-15 17:27:45] Production.INFO: ProcessCDR(1,14255138,1,1,2) [2025-01-15 17:27:45] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:27:51] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:27:51] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:28:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:28:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255138', 'tblTempUsageDetail_20' ) start [2025-01-15 17:28:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255138', 'tblTempUsageDetail_20' ) end [2025-01-15 17:28:18] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:28:18] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:28:20] Production.INFO: ==4972== Releasing lock... [2025-01-15 17:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:28:20] Production.INFO: 58.5 MB #Memory Used# [2025-01-15 17:29:19] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:29:19 [end_date_ymd] => 2025-01-15 17:29:19 [RateCDR] => 1 ) [2025-01-15 17:29:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:29:19' and `end` < '2025-01-15 17:29:19' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:29:33] Production.INFO: count ==4031 [2025-01-15 17:30:06] Production.ERROR: pbx CDR StartTime 2025-01-15 14:29:19 - End Time 2025-01-15 17:29:19 [2025-01-15 17:30:06] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:30:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255149', 'tblTempUsageDetail_20' ) start [2025-01-15 17:30:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255149', 'tblTempUsageDetail_20' ) end [2025-01-15 17:30:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255149', 'tblTempVendorCDR_20' ) start [2025-01-15 17:30:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255149', 'tblTempVendorCDR_20' ) end [2025-01-15 17:30:16] Production.INFO: ProcessCDR(1,14255149,1,1,2) [2025-01-15 17:30:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:30:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255149', 'tblTempUsageDetail_20' ) start [2025-01-15 17:30:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255149', 'tblTempUsageDetail_20' ) end [2025-01-15 17:30:42] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:30:43] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:30:47] Production.INFO: ==5202== Releasing lock... [2025-01-15 17:30:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:30:47] Production.INFO: 58 MB #Memory Used# [2025-01-15 17:31:15] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:31:15 [end_date_ymd] => 2025-01-15 17:31:15 [RateCDR] => 1 ) [2025-01-15 17:31:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:31:15' and `end` < '2025-01-15 17:31:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:31:29] Production.INFO: count ==3961 [2025-01-15 17:31:51] Production.ERROR: pbx CDR StartTime 2025-01-15 14:31:15 - End Time 2025-01-15 17:31:15 [2025-01-15 17:31:51] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:31:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255158', 'tblTempUsageDetail_20' ) start [2025-01-15 17:31:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255158', 'tblTempUsageDetail_20' ) end [2025-01-15 17:31:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255158', 'tblTempVendorCDR_20' ) start [2025-01-15 17:31:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255158', 'tblTempVendorCDR_20' ) end [2025-01-15 17:31:51] Production.INFO: ProcessCDR(1,14255158,1,1,2) [2025-01-15 17:31:51] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:31:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:31:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:31:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:31:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255158', 'tblTempUsageDetail_20' ) start [2025-01-15 17:31:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255158', 'tblTempUsageDetail_20' ) end [2025-01-15 17:31:58] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:31:58] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:31:58] Production.INFO: ==5352== Releasing lock... [2025-01-15 17:31:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:31:58] Production.INFO: 57.5 MB #Memory Used# [2025-01-15 17:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:32:04 [end_date_ymd] => 2025-01-15 17:32:04 [RateCDR] => 1 ) [2025-01-15 17:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:32:04' and `end` < '2025-01-15 17:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:32:17] Production.INFO: count ==3949 [2025-01-15 17:32:19] Production.ERROR: pbx CDR StartTime 2025-01-15 14:32:04 - End Time 2025-01-15 17:32:04 [2025-01-15 17:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255163', 'tblTempUsageDetail_20' ) start [2025-01-15 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255163', 'tblTempUsageDetail_20' ) end [2025-01-15 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255163', 'tblTempVendorCDR_20' ) start [2025-01-15 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255163', 'tblTempVendorCDR_20' ) end [2025-01-15 17:32:19] Production.INFO: ProcessCDR(1,14255163,1,1,2) [2025-01-15 17:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255163', 'tblTempUsageDetail_20' ) start [2025-01-15 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255163', 'tblTempUsageDetail_20' ) end [2025-01-15 17:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:32:24] Production.INFO: ==5431== Releasing lock... [2025-01-15 17:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:32:24] Production.INFO: 57.5 MB #Memory Used# [2025-01-15 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:33:05 [end_date_ymd] => 2025-01-15 17:33:05 [RateCDR] => 1 ) [2025-01-15 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:33:05' and `end` < '2025-01-15 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:33:18] Production.INFO: count ==3946 [2025-01-15 17:33:20] Production.ERROR: pbx CDR StartTime 2025-01-15 14:33:05 - End Time 2025-01-15 17:33:05 [2025-01-15 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255168', 'tblTempUsageDetail_20' ) start [2025-01-15 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255168', 'tblTempUsageDetail_20' ) end [2025-01-15 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255168', 'tblTempVendorCDR_20' ) start [2025-01-15 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255168', 'tblTempVendorCDR_20' ) end [2025-01-15 17:33:20] Production.INFO: ProcessCDR(1,14255168,1,1,2) [2025-01-15 17:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255168', 'tblTempUsageDetail_20' ) start [2025-01-15 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255168', 'tblTempUsageDetail_20' ) end [2025-01-15 17:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:33:23] Production.INFO: ==5506== Releasing lock... [2025-01-15 17:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:33:23] Production.INFO: 57.75 MB #Memory Used# [2025-01-15 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:34:05 [end_date_ymd] => 2025-01-15 17:34:05 [RateCDR] => 1 ) [2025-01-15 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:34:05' and `end` < '2025-01-15 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:34:18] Production.INFO: count ==3946 [2025-01-15 17:34:19] Production.ERROR: pbx CDR StartTime 2025-01-15 14:34:05 - End Time 2025-01-15 17:34:05 [2025-01-15 17:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255173', 'tblTempUsageDetail_20' ) start [2025-01-15 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255173', 'tblTempUsageDetail_20' ) end [2025-01-15 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255173', 'tblTempVendorCDR_20' ) start [2025-01-15 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255173', 'tblTempVendorCDR_20' ) end [2025-01-15 17:34:19] Production.INFO: ProcessCDR(1,14255173,1,1,2) [2025-01-15 17:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255173', 'tblTempUsageDetail_20' ) start [2025-01-15 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255173', 'tblTempUsageDetail_20' ) end [2025-01-15 17:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:34:23] Production.INFO: ==5581== Releasing lock... [2025-01-15 17:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:34:23] Production.INFO: 57.5 MB #Memory Used# [2025-01-15 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:35:05 [end_date_ymd] => 2025-01-15 17:35:05 [RateCDR] => 1 ) [2025-01-15 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:35:05' and `end` < '2025-01-15 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:35:18] Production.INFO: count ==3941 [2025-01-15 17:35:19] Production.ERROR: pbx CDR StartTime 2025-01-15 14:35:05 - End Time 2025-01-15 17:35:05 [2025-01-15 17:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255178', 'tblTempUsageDetail_20' ) start [2025-01-15 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255178', 'tblTempUsageDetail_20' ) end [2025-01-15 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255178', 'tblTempVendorCDR_20' ) start [2025-01-15 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255178', 'tblTempVendorCDR_20' ) end [2025-01-15 17:35:19] Production.INFO: ProcessCDR(1,14255178,1,1,2) [2025-01-15 17:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255178', 'tblTempUsageDetail_20' ) start [2025-01-15 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255178', 'tblTempUsageDetail_20' ) end [2025-01-15 17:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:35:24] Production.INFO: ==5652== Releasing lock... [2025-01-15 17:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:35:24] Production.INFO: 57.75 MB #Memory Used# [2025-01-15 17:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:36:04 [end_date_ymd] => 2025-01-15 17:36:04 [RateCDR] => 1 ) [2025-01-15 17:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:36:04' and `end` < '2025-01-15 17:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:36:21] Production.INFO: count ==3921 [2025-01-15 17:36:23] Production.ERROR: pbx CDR StartTime 2025-01-15 14:36:04 - End Time 2025-01-15 17:36:04 [2025-01-15 17:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255183', 'tblTempUsageDetail_20' ) start [2025-01-15 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255183', 'tblTempUsageDetail_20' ) end [2025-01-15 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255183', 'tblTempVendorCDR_20' ) start [2025-01-15 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255183', 'tblTempVendorCDR_20' ) end [2025-01-15 17:36:23] Production.INFO: ProcessCDR(1,14255183,1,1,2) [2025-01-15 17:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255183', 'tblTempUsageDetail_20' ) start [2025-01-15 17:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255183', 'tblTempUsageDetail_20' ) end [2025-01-15 17:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:36:28] Production.INFO: ==5723== Releasing lock... [2025-01-15 17:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:36:28] Production.INFO: 57.25 MB #Memory Used# [2025-01-15 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:37:05 [end_date_ymd] => 2025-01-15 17:37:05 [RateCDR] => 1 ) [2025-01-15 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:37:05' and `end` < '2025-01-15 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:37:20] Production.INFO: count ==3901 [2025-01-15 17:37:22] Production.ERROR: pbx CDR StartTime 2025-01-15 14:37:05 - End Time 2025-01-15 17:37:05 [2025-01-15 17:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255188', 'tblTempUsageDetail_20' ) start [2025-01-15 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255188', 'tblTempUsageDetail_20' ) end [2025-01-15 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255188', 'tblTempVendorCDR_20' ) start [2025-01-15 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255188', 'tblTempVendorCDR_20' ) end [2025-01-15 17:37:22] Production.INFO: ProcessCDR(1,14255188,1,1,2) [2025-01-15 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255188', 'tblTempUsageDetail_20' ) start [2025-01-15 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255188', 'tblTempUsageDetail_20' ) end [2025-01-15 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:37:26] Production.INFO: ==5795== Releasing lock... [2025-01-15 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:37:26] Production.INFO: 57.25 MB #Memory Used# [2025-01-15 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:38:05 [end_date_ymd] => 2025-01-15 17:38:05 [RateCDR] => 1 ) [2025-01-15 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:38:05' and `end` < '2025-01-15 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:38:19] Production.INFO: count ==3875 [2025-01-15 17:38:20] Production.ERROR: pbx CDR StartTime 2025-01-15 14:38:05 - End Time 2025-01-15 17:38:05 [2025-01-15 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255193', 'tblTempUsageDetail_20' ) start [2025-01-15 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255193', 'tblTempUsageDetail_20' ) end [2025-01-15 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255193', 'tblTempVendorCDR_20' ) start [2025-01-15 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255193', 'tblTempVendorCDR_20' ) end [2025-01-15 17:38:21] Production.INFO: ProcessCDR(1,14255193,1,1,2) [2025-01-15 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255193', 'tblTempUsageDetail_20' ) start [2025-01-15 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255193', 'tblTempUsageDetail_20' ) end [2025-01-15 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:38:25] Production.INFO: ==5866== Releasing lock... [2025-01-15 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:38:25] Production.INFO: 57.5 MB #Memory Used# [2025-01-15 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:39:05 [end_date_ymd] => 2025-01-15 17:39:05 [RateCDR] => 1 ) [2025-01-15 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:39:05' and `end` < '2025-01-15 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:39:18] Production.INFO: count ==3866 [2025-01-15 17:39:19] Production.ERROR: pbx CDR StartTime 2025-01-15 14:39:05 - End Time 2025-01-15 17:39:05 [2025-01-15 17:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255198', 'tblTempUsageDetail_20' ) start [2025-01-15 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255198', 'tblTempUsageDetail_20' ) end [2025-01-15 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255198', 'tblTempVendorCDR_20' ) start [2025-01-15 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255198', 'tblTempVendorCDR_20' ) end [2025-01-15 17:39:19] Production.INFO: ProcessCDR(1,14255198,1,1,2) [2025-01-15 17:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255198', 'tblTempUsageDetail_20' ) start [2025-01-15 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255198', 'tblTempUsageDetail_20' ) end [2025-01-15 17:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:39:24] Production.INFO: ==5942== Releasing lock... [2025-01-15 17:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:39:24] Production.INFO: 57.5 MB #Memory Used# [2025-01-15 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:40:06 [end_date_ymd] => 2025-01-15 17:40:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 14:40:06' and `end` < '2025-01-15 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-01-15 17:40:19] Production.INFO: count ==3861 [2025-01-15 17:40:20] Production.ERROR: pbx CDR StartTime 2025-01-15 14:40:06 - End Time 2025-01-15 17:40:06 [2025-01-15 17:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255204', 'tblTempUsageDetail_20' ) start [2025-01-15 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255204', 'tblTempUsageDetail_20' ) end [2025-01-15 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255204', 'tblTempVendorCDR_20' ) start [2025-01-15 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255204', 'tblTempVendorCDR_20' ) end [2025-01-15 17:40:20] Production.INFO: ProcessCDR(1,14255204,1,1,2) [2025-01-15 17:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255204', 'tblTempUsageDetail_20' ) start [2025-01-15 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255204', 'tblTempUsageDetail_20' ) end [2025-01-15 17:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:40:24] Production.INFO: ==6056== Releasing lock... [2025-01-15 17:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:40:24] Production.INFO: 57 MB #Memory Used# [2025-01-15 17:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:41:04 [end_date_ymd] => 2025-01-15 17:41:04 [RateCDR] => 1 ) [2025-01-15 17:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:41:04' and `end` < '2025-01-15 17:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:41:18] Production.INFO: count ==3827 [2025-01-15 17:41:20] Production.ERROR: pbx CDR StartTime 2025-01-15 14:41:04 - End Time 2025-01-15 17:41:04 [2025-01-15 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255209', 'tblTempUsageDetail_20' ) start [2025-01-15 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255209', 'tblTempUsageDetail_20' ) end [2025-01-15 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255209', 'tblTempVendorCDR_20' ) start [2025-01-15 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255209', 'tblTempVendorCDR_20' ) end [2025-01-15 17:41:20] Production.INFO: ProcessCDR(1,14255209,1,1,2) [2025-01-15 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255209', 'tblTempUsageDetail_20' ) start [2025-01-15 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255209', 'tblTempUsageDetail_20' ) end [2025-01-15 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:41:25] Production.INFO: ==6129== Releasing lock... [2025-01-15 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:41:25] Production.INFO: 57.25 MB #Memory Used# [2025-01-15 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:42:05 [end_date_ymd] => 2025-01-15 17:42:05 [RateCDR] => 1 ) [2025-01-15 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:42:05' and `end` < '2025-01-15 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:42:18] Production.INFO: count ==3806 [2025-01-15 17:42:19] Production.ERROR: pbx CDR StartTime 2025-01-15 14:42:05 - End Time 2025-01-15 17:42:05 [2025-01-15 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255214', 'tblTempUsageDetail_20' ) start [2025-01-15 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255214', 'tblTempUsageDetail_20' ) end [2025-01-15 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255214', 'tblTempVendorCDR_20' ) start [2025-01-15 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255214', 'tblTempVendorCDR_20' ) end [2025-01-15 17:42:19] Production.INFO: ProcessCDR(1,14255214,1,1,2) [2025-01-15 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255214', 'tblTempUsageDetail_20' ) start [2025-01-15 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255214', 'tblTempUsageDetail_20' ) end [2025-01-15 17:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:42:24] Production.INFO: ==6198== Releasing lock... [2025-01-15 17:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:42:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-15 17:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:43:04 [end_date_ymd] => 2025-01-15 17:43:04 [RateCDR] => 1 ) [2025-01-15 17:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:43:04' and `end` < '2025-01-15 17:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:43:17] Production.INFO: count ==3782 [2025-01-15 17:43:18] Production.ERROR: pbx CDR StartTime 2025-01-15 14:43:04 - End Time 2025-01-15 17:43:04 [2025-01-15 17:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255219', 'tblTempUsageDetail_20' ) start [2025-01-15 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255219', 'tblTempUsageDetail_20' ) end [2025-01-15 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255219', 'tblTempVendorCDR_20' ) start [2025-01-15 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255219', 'tblTempVendorCDR_20' ) end [2025-01-15 17:43:19] Production.INFO: ProcessCDR(1,14255219,1,1,2) [2025-01-15 17:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255219', 'tblTempUsageDetail_20' ) start [2025-01-15 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255219', 'tblTempUsageDetail_20' ) end [2025-01-15 17:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:43:23] Production.INFO: ==6268== Releasing lock... [2025-01-15 17:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:43:23] Production.INFO: 56.5 MB #Memory Used# [2025-01-15 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:44:05 [end_date_ymd] => 2025-01-15 17:44:05 [RateCDR] => 1 ) [2025-01-15 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:44:05' and `end` < '2025-01-15 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:44:18] Production.INFO: count ==3754 [2025-01-15 17:44:19] Production.ERROR: pbx CDR StartTime 2025-01-15 14:44:05 - End Time 2025-01-15 17:44:05 [2025-01-15 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255224', 'tblTempUsageDetail_20' ) start [2025-01-15 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255224', 'tblTempUsageDetail_20' ) end [2025-01-15 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255224', 'tblTempVendorCDR_20' ) start [2025-01-15 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255224', 'tblTempVendorCDR_20' ) end [2025-01-15 17:44:20] Production.INFO: ProcessCDR(1,14255224,1,1,2) [2025-01-15 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255224', 'tblTempUsageDetail_20' ) start [2025-01-15 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255224', 'tblTempUsageDetail_20' ) end [2025-01-15 17:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:44:23] Production.INFO: ==6340== Releasing lock... [2025-01-15 17:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:44:23] Production.INFO: 57 MB #Memory Used# [2025-01-15 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:45:05 [end_date_ymd] => 2025-01-15 17:45:05 [RateCDR] => 1 ) [2025-01-15 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:45:05' and `end` < '2025-01-15 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:45:18] Production.INFO: count ==3744 [2025-01-15 17:45:19] Production.ERROR: pbx CDR StartTime 2025-01-15 14:45:05 - End Time 2025-01-15 17:45:05 [2025-01-15 17:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255229', 'tblTempUsageDetail_20' ) start [2025-01-15 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255229', 'tblTempUsageDetail_20' ) end [2025-01-15 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255229', 'tblTempVendorCDR_20' ) start [2025-01-15 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255229', 'tblTempVendorCDR_20' ) end [2025-01-15 17:45:19] Production.INFO: ProcessCDR(1,14255229,1,1,2) [2025-01-15 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255229', 'tblTempUsageDetail_20' ) start [2025-01-15 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255229', 'tblTempUsageDetail_20' ) end [2025-01-15 17:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:45:24] Production.INFO: ==6410== Releasing lock... [2025-01-15 17:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:45:24] Production.INFO: 57 MB #Memory Used# [2025-01-15 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:46:05 [end_date_ymd] => 2025-01-15 17:46:05 [RateCDR] => 1 ) [2025-01-15 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:46:05' and `end` < '2025-01-15 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:46:18] Production.INFO: count ==3726 [2025-01-15 17:46:19] Production.ERROR: pbx CDR StartTime 2025-01-15 14:46:05 - End Time 2025-01-15 17:46:05 [2025-01-15 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255234', 'tblTempUsageDetail_20' ) start [2025-01-15 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255234', 'tblTempUsageDetail_20' ) end [2025-01-15 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255234', 'tblTempVendorCDR_20' ) start [2025-01-15 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255234', 'tblTempVendorCDR_20' ) end [2025-01-15 17:46:19] Production.INFO: ProcessCDR(1,14255234,1,1,2) [2025-01-15 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255234', 'tblTempUsageDetail_20' ) start [2025-01-15 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255234', 'tblTempUsageDetail_20' ) end [2025-01-15 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:46:24] Production.INFO: ==6479== Releasing lock... [2025-01-15 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:46:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-15 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:47:05 [end_date_ymd] => 2025-01-15 17:47:05 [RateCDR] => 1 ) [2025-01-15 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:47:05' and `end` < '2025-01-15 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:47:18] Production.INFO: count ==3721 [2025-01-15 17:47:20] Production.ERROR: pbx CDR StartTime 2025-01-15 14:47:05 - End Time 2025-01-15 17:47:05 [2025-01-15 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255239', 'tblTempUsageDetail_20' ) start [2025-01-15 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255239', 'tblTempUsageDetail_20' ) end [2025-01-15 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255239', 'tblTempVendorCDR_20' ) start [2025-01-15 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255239', 'tblTempVendorCDR_20' ) end [2025-01-15 17:47:20] Production.INFO: ProcessCDR(1,14255239,1,1,2) [2025-01-15 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255239', 'tblTempUsageDetail_20' ) start [2025-01-15 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255239', 'tblTempUsageDetail_20' ) end [2025-01-15 17:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:47:25] Production.INFO: ==6553== Releasing lock... [2025-01-15 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:47:25] Production.INFO: 55.75 MB #Memory Used# [2025-01-15 17:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:48:04 [end_date_ymd] => 2025-01-15 17:48:04 [RateCDR] => 1 ) [2025-01-15 17:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:48:04' and `end` < '2025-01-15 17:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:48:17] Production.INFO: count ==3712 [2025-01-15 17:48:19] Production.ERROR: pbx CDR StartTime 2025-01-15 14:48:04 - End Time 2025-01-15 17:48:04 [2025-01-15 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255244', 'tblTempUsageDetail_20' ) start [2025-01-15 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255244', 'tblTempUsageDetail_20' ) end [2025-01-15 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255244', 'tblTempVendorCDR_20' ) start [2025-01-15 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255244', 'tblTempVendorCDR_20' ) end [2025-01-15 17:48:19] Production.INFO: ProcessCDR(1,14255244,1,1,2) [2025-01-15 17:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255244', 'tblTempUsageDetail_20' ) start [2025-01-15 17:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255244', 'tblTempUsageDetail_20' ) end [2025-01-15 17:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:48:22] Production.INFO: ==6625== Releasing lock... [2025-01-15 17:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:48:22] Production.INFO: 55.75 MB #Memory Used# [2025-01-15 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:49:05 [end_date_ymd] => 2025-01-15 17:49:05 [RateCDR] => 1 ) [2025-01-15 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:49:05' and `end` < '2025-01-15 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:49:19] Production.INFO: count ==3699 [2025-01-15 17:49:21] Production.ERROR: pbx CDR StartTime 2025-01-15 14:49:05 - End Time 2025-01-15 17:49:05 [2025-01-15 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255249', 'tblTempUsageDetail_20' ) start [2025-01-15 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255249', 'tblTempUsageDetail_20' ) end [2025-01-15 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255249', 'tblTempVendorCDR_20' ) start [2025-01-15 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255249', 'tblTempVendorCDR_20' ) end [2025-01-15 17:49:21] Production.INFO: ProcessCDR(1,14255249,1,1,2) [2025-01-15 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255249', 'tblTempUsageDetail_20' ) start [2025-01-15 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255249', 'tblTempUsageDetail_20' ) end [2025-01-15 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:49:26] Production.INFO: ==6694== Releasing lock... [2025-01-15 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:49:26] Production.INFO: 55.75 MB #Memory Used# [2025-01-15 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:50:06 [end_date_ymd] => 2025-01-15 17:50:06 [RateCDR] => 1 ) [2025-01-15 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:50:06' and `end` < '2025-01-15 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:50:19] Production.INFO: count ==3700 [2025-01-15 17:50:20] Production.ERROR: pbx CDR StartTime 2025-01-15 14:50:06 - End Time 2025-01-15 17:50:06 [2025-01-15 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255255', 'tblTempUsageDetail_20' ) start [2025-01-15 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255255', 'tblTempUsageDetail_20' ) end [2025-01-15 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255255', 'tblTempVendorCDR_20' ) start [2025-01-15 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255255', 'tblTempVendorCDR_20' ) end [2025-01-15 17:50:20] Production.INFO: ProcessCDR(1,14255255,1,1,2) [2025-01-15 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255255', 'tblTempUsageDetail_20' ) start [2025-01-15 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255255', 'tblTempUsageDetail_20' ) end [2025-01-15 17:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:50:23] Production.INFO: ==6768== Releasing lock... [2025-01-15 17:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:50:23] Production.INFO: 55.75 MB #Memory Used# [2025-01-15 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:51:05 [end_date_ymd] => 2025-01-15 17:51:05 [RateCDR] => 1 ) [2025-01-15 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:51:05' and `end` < '2025-01-15 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:51:18] Production.INFO: count ==3648 [2025-01-15 17:51:19] Production.ERROR: pbx CDR StartTime 2025-01-15 14:51:05 - End Time 2025-01-15 17:51:05 [2025-01-15 17:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255260', 'tblTempUsageDetail_20' ) start [2025-01-15 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255260', 'tblTempUsageDetail_20' ) end [2025-01-15 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255260', 'tblTempVendorCDR_20' ) start [2025-01-15 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255260', 'tblTempVendorCDR_20' ) end [2025-01-15 17:51:19] Production.INFO: ProcessCDR(1,14255260,1,1,2) [2025-01-15 17:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255260', 'tblTempUsageDetail_20' ) start [2025-01-15 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255260', 'tblTempUsageDetail_20' ) end [2025-01-15 17:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:51:23] Production.INFO: ==6840== Releasing lock... [2025-01-15 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:51:23] Production.INFO: 56 MB #Memory Used# [2025-01-15 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:52:05 [end_date_ymd] => 2025-01-15 17:52:05 [RateCDR] => 1 ) [2025-01-15 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:52:05' and `end` < '2025-01-15 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:52:18] Production.INFO: count ==3634 [2025-01-15 17:52:19] Production.ERROR: pbx CDR StartTime 2025-01-15 14:52:05 - End Time 2025-01-15 17:52:05 [2025-01-15 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255265', 'tblTempUsageDetail_20' ) start [2025-01-15 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255265', 'tblTempUsageDetail_20' ) end [2025-01-15 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255265', 'tblTempVendorCDR_20' ) start [2025-01-15 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255265', 'tblTempVendorCDR_20' ) end [2025-01-15 17:52:19] Production.INFO: ProcessCDR(1,14255265,1,1,2) [2025-01-15 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255265', 'tblTempUsageDetail_20' ) start [2025-01-15 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255265', 'tblTempUsageDetail_20' ) end [2025-01-15 17:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:52:23] Production.INFO: ==6911== Releasing lock... [2025-01-15 17:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:52:23] Production.INFO: 55.25 MB #Memory Used# [2025-01-15 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:53:05 [end_date_ymd] => 2025-01-15 17:53:05 [RateCDR] => 1 ) [2025-01-15 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:53:05' and `end` < '2025-01-15 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:53:18] Production.INFO: count ==3625 [2025-01-15 17:53:19] Production.ERROR: pbx CDR StartTime 2025-01-15 14:53:05 - End Time 2025-01-15 17:53:05 [2025-01-15 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255270', 'tblTempUsageDetail_20' ) start [2025-01-15 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255270', 'tblTempUsageDetail_20' ) end [2025-01-15 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255270', 'tblTempVendorCDR_20' ) start [2025-01-15 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255270', 'tblTempVendorCDR_20' ) end [2025-01-15 17:53:19] Production.INFO: ProcessCDR(1,14255270,1,1,2) [2025-01-15 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255270', 'tblTempUsageDetail_20' ) start [2025-01-15 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255270', 'tblTempUsageDetail_20' ) end [2025-01-15 17:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:53:22] Production.INFO: ==6989== Releasing lock... [2025-01-15 17:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:53:22] Production.INFO: 55.5 MB #Memory Used# [2025-01-15 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:54:05 [end_date_ymd] => 2025-01-15 17:54:05 [RateCDR] => 1 ) [2025-01-15 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:54:05' and `end` < '2025-01-15 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:54:18] Production.INFO: count ==3618 [2025-01-15 17:54:19] Production.ERROR: pbx CDR StartTime 2025-01-15 14:54:05 - End Time 2025-01-15 17:54:05 [2025-01-15 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255275', 'tblTempUsageDetail_20' ) start [2025-01-15 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255275', 'tblTempUsageDetail_20' ) end [2025-01-15 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255275', 'tblTempVendorCDR_20' ) start [2025-01-15 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255275', 'tblTempVendorCDR_20' ) end [2025-01-15 17:54:19] Production.INFO: ProcessCDR(1,14255275,1,1,2) [2025-01-15 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255275', 'tblTempUsageDetail_20' ) start [2025-01-15 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255275', 'tblTempUsageDetail_20' ) end [2025-01-15 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:54:22] Production.INFO: ==7059== Releasing lock... [2025-01-15 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:54:22] Production.INFO: 55.5 MB #Memory Used# [2025-01-15 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:55:05 [end_date_ymd] => 2025-01-15 17:55:05 [RateCDR] => 1 ) [2025-01-15 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:55:05' and `end` < '2025-01-15 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:55:18] Production.INFO: count ==3624 [2025-01-15 17:55:19] Production.ERROR: pbx CDR StartTime 2025-01-15 14:55:05 - End Time 2025-01-15 17:55:05 [2025-01-15 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255280', 'tblTempUsageDetail_20' ) start [2025-01-15 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255280', 'tblTempUsageDetail_20' ) end [2025-01-15 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255280', 'tblTempVendorCDR_20' ) start [2025-01-15 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255280', 'tblTempVendorCDR_20' ) end [2025-01-15 17:55:20] Production.INFO: ProcessCDR(1,14255280,1,1,2) [2025-01-15 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255280', 'tblTempUsageDetail_20' ) start [2025-01-15 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255280', 'tblTempUsageDetail_20' ) end [2025-01-15 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:55:25] Production.INFO: ==7168== Releasing lock... [2025-01-15 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:55:25] Production.INFO: 55.25 MB #Memory Used# [2025-01-15 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:56:05 [end_date_ymd] => 2025-01-15 17:56:05 [RateCDR] => 1 ) [2025-01-15 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:56:05' and `end` < '2025-01-15 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:56:18] Production.INFO: count ==3618 [2025-01-15 17:56:19] Production.ERROR: pbx CDR StartTime 2025-01-15 14:56:05 - End Time 2025-01-15 17:56:05 [2025-01-15 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255285', 'tblTempUsageDetail_20' ) start [2025-01-15 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255285', 'tblTempUsageDetail_20' ) end [2025-01-15 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255285', 'tblTempVendorCDR_20' ) start [2025-01-15 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255285', 'tblTempVendorCDR_20' ) end [2025-01-15 17:56:19] Production.INFO: ProcessCDR(1,14255285,1,1,2) [2025-01-15 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255285', 'tblTempUsageDetail_20' ) start [2025-01-15 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255285', 'tblTempUsageDetail_20' ) end [2025-01-15 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:56:24] Production.INFO: ==7241== Releasing lock... [2025-01-15 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:56:24] Production.INFO: 56 MB #Memory Used# [2025-01-15 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:57:05 [end_date_ymd] => 2025-01-15 17:57:05 [RateCDR] => 1 ) [2025-01-15 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:57:05' and `end` < '2025-01-15 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:57:18] Production.INFO: count ==3606 [2025-01-15 17:57:19] Production.ERROR: pbx CDR StartTime 2025-01-15 14:57:05 - End Time 2025-01-15 17:57:05 [2025-01-15 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255290', 'tblTempUsageDetail_20' ) start [2025-01-15 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255290', 'tblTempUsageDetail_20' ) end [2025-01-15 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255290', 'tblTempVendorCDR_20' ) start [2025-01-15 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255290', 'tblTempVendorCDR_20' ) end [2025-01-15 17:57:19] Production.INFO: ProcessCDR(1,14255290,1,1,2) [2025-01-15 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255290', 'tblTempUsageDetail_20' ) start [2025-01-15 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255290', 'tblTempUsageDetail_20' ) end [2025-01-15 17:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:57:24] Production.INFO: ==7344== Releasing lock... [2025-01-15 17:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:57:24] Production.INFO: 56 MB #Memory Used# [2025-01-15 17:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:58:04 [end_date_ymd] => 2025-01-15 17:58:04 [RateCDR] => 1 ) [2025-01-15 17:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 14:58:04' and `end` < '2025-01-15 17:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 17:58:18] Production.INFO: count ==3604 [2025-01-15 17:58:20] Production.ERROR: pbx CDR StartTime 2025-01-15 14:58:04 - End Time 2025-01-15 17:58:04 [2025-01-15 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255295', 'tblTempUsageDetail_20' ) start [2025-01-15 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255295', 'tblTempUsageDetail_20' ) end [2025-01-15 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255295', 'tblTempVendorCDR_20' ) start [2025-01-15 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255295', 'tblTempVendorCDR_20' ) end [2025-01-15 17:58:20] Production.INFO: ProcessCDR(1,14255295,1,1,2) [2025-01-15 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255295', 'tblTempUsageDetail_20' ) start [2025-01-15 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255295', 'tblTempUsageDetail_20' ) end [2025-01-15 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:58:25] Production.INFO: ==7458== Releasing lock... [2025-01-15 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:58:25] Production.INFO: 55.75 MB #Memory Used# [2025-01-15 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 14:59:06 [end_date_ymd] => 2025-01-15 17:59:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 14:59:06' and `end` < '2025-01-15 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-01-15 17:59:18] Production.INFO: count ==3581 [2025-01-15 17:59:20] Production.ERROR: pbx CDR StartTime 2025-01-15 14:59:06 - End Time 2025-01-15 17:59:06 [2025-01-15 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255298', 'tblTempUsageDetail_20' ) start [2025-01-15 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255298', 'tblTempUsageDetail_20' ) end [2025-01-15 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255298', 'tblTempVendorCDR_20' ) start [2025-01-15 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255298', 'tblTempVendorCDR_20' ) end [2025-01-15 17:59:20] Production.INFO: ProcessCDR(1,14255298,1,1,2) [2025-01-15 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255298', 'tblTempUsageDetail_20' ) start [2025-01-15 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255298', 'tblTempUsageDetail_20' ) end [2025-01-15 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 17:59:24] Production.INFO: ==7579== Releasing lock... [2025-01-15 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 17:59:24] Production.INFO: 55 MB #Memory Used# [2025-01-15 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:00:06 [end_date_ymd] => 2025-01-15 18:00:06 [RateCDR] => 1 ) [2025-01-15 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:00:06' and `end` < '2025-01-15 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:00:20] Production.INFO: count ==3576 [2025-01-15 18:00:22] Production.ERROR: pbx CDR StartTime 2025-01-15 15:00:06 - End Time 2025-01-15 18:00:06 [2025-01-15 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255305', 'tblTempUsageDetail_20' ) start [2025-01-15 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255305', 'tblTempUsageDetail_20' ) end [2025-01-15 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255305', 'tblTempVendorCDR_20' ) start [2025-01-15 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255305', 'tblTempVendorCDR_20' ) end [2025-01-15 18:00:22] Production.INFO: ProcessCDR(1,14255305,1,1,2) [2025-01-15 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255305', 'tblTempUsageDetail_20' ) start [2025-01-15 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255305', 'tblTempUsageDetail_20' ) end [2025-01-15 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:00:27] Production.INFO: ==7696== Releasing lock... [2025-01-15 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:00:27] Production.INFO: 56 MB #Memory Used# [2025-01-15 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:01:05 [end_date_ymd] => 2025-01-15 18:01:05 [RateCDR] => 1 ) [2025-01-15 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:01:05' and `end` < '2025-01-15 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:01:19] Production.INFO: count ==3519 [2025-01-15 18:01:20] Production.ERROR: pbx CDR StartTime 2025-01-15 15:01:05 - End Time 2025-01-15 18:01:05 [2025-01-15 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255311', 'tblTempUsageDetail_20' ) start [2025-01-15 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255311', 'tblTempUsageDetail_20' ) end [2025-01-15 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255311', 'tblTempVendorCDR_20' ) start [2025-01-15 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255311', 'tblTempVendorCDR_20' ) end [2025-01-15 18:01:20] Production.INFO: ProcessCDR(1,14255311,1,1,2) [2025-01-15 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255311', 'tblTempUsageDetail_20' ) start [2025-01-15 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255311', 'tblTempUsageDetail_20' ) end [2025-01-15 18:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:01:23] Production.INFO: ==7824== Releasing lock... [2025-01-15 18:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:01:23] Production.INFO: 55 MB #Memory Used# [2025-01-15 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:02:05 [end_date_ymd] => 2025-01-15 18:02:05 [RateCDR] => 1 ) [2025-01-15 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:02:05' and `end` < '2025-01-15 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:02:18] Production.INFO: count ==3518 [2025-01-15 18:02:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:02:05 - End Time 2025-01-15 18:02:05 [2025-01-15 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255314', 'tblTempUsageDetail_20' ) start [2025-01-15 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255314', 'tblTempUsageDetail_20' ) end [2025-01-15 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255314', 'tblTempVendorCDR_20' ) start [2025-01-15 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255314', 'tblTempVendorCDR_20' ) end [2025-01-15 18:02:19] Production.INFO: ProcessCDR(1,14255314,1,1,2) [2025-01-15 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255314', 'tblTempUsageDetail_20' ) start [2025-01-15 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255314', 'tblTempUsageDetail_20' ) end [2025-01-15 18:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:02:24] Production.INFO: ==7943== Releasing lock... [2025-01-15 18:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:02:24] Production.INFO: 54.75 MB #Memory Used# [2025-01-15 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:03:04 [end_date_ymd] => 2025-01-15 18:03:04 [RateCDR] => 1 ) [2025-01-15 18:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:03:04' and `end` < '2025-01-15 18:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:03:21] Production.INFO: count ==3497 [2025-01-15 18:03:22] Production.ERROR: pbx CDR StartTime 2025-01-15 15:03:04 - End Time 2025-01-15 18:03:04 [2025-01-15 18:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255321', 'tblTempUsageDetail_20' ) start [2025-01-15 18:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255321', 'tblTempUsageDetail_20' ) end [2025-01-15 18:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255321', 'tblTempVendorCDR_20' ) start [2025-01-15 18:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255321', 'tblTempVendorCDR_20' ) end [2025-01-15 18:03:23] Production.INFO: ProcessCDR(1,14255321,1,1,2) [2025-01-15 18:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255321', 'tblTempUsageDetail_20' ) start [2025-01-15 18:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255321', 'tblTempUsageDetail_20' ) end [2025-01-15 18:03:28] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:03:28] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:03:28] Production.INFO: ==8050== Releasing lock... [2025-01-15 18:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:03:28] Production.INFO: 54.25 MB #Memory Used# [2025-01-15 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:04:05 [end_date_ymd] => 2025-01-15 18:04:05 [RateCDR] => 1 ) [2025-01-15 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:04:05' and `end` < '2025-01-15 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:04:18] Production.INFO: count ==3488 [2025-01-15 18:04:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:04:05 - End Time 2025-01-15 18:04:05 [2025-01-15 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255326', 'tblTempUsageDetail_20' ) start [2025-01-15 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255326', 'tblTempUsageDetail_20' ) end [2025-01-15 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255326', 'tblTempVendorCDR_20' ) start [2025-01-15 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255326', 'tblTempVendorCDR_20' ) end [2025-01-15 18:04:19] Production.INFO: ProcessCDR(1,14255326,1,1,2) [2025-01-15 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255326', 'tblTempUsageDetail_20' ) start [2025-01-15 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255326', 'tblTempUsageDetail_20' ) end [2025-01-15 18:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:04:24] Production.INFO: ==8169== Releasing lock... [2025-01-15 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:04:24] Production.INFO: 54.25 MB #Memory Used# [2025-01-15 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:05:05 [end_date_ymd] => 2025-01-15 18:05:05 [RateCDR] => 1 ) [2025-01-15 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:05:05' and `end` < '2025-01-15 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:05:18] Production.INFO: count ==3476 [2025-01-15 18:05:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:05:05 - End Time 2025-01-15 18:05:05 [2025-01-15 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255331', 'tblTempUsageDetail_20' ) start [2025-01-15 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255331', 'tblTempUsageDetail_20' ) end [2025-01-15 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255331', 'tblTempVendorCDR_20' ) start [2025-01-15 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255331', 'tblTempVendorCDR_20' ) end [2025-01-15 18:05:20] Production.INFO: ProcessCDR(1,14255331,1,1,2) [2025-01-15 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255331', 'tblTempUsageDetail_20' ) start [2025-01-15 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255331', 'tblTempUsageDetail_20' ) end [2025-01-15 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:05:25] Production.INFO: ==8289== Releasing lock... [2025-01-15 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:05:25] Production.INFO: 54.75 MB #Memory Used# [2025-01-15 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:06:05 [end_date_ymd] => 2025-01-15 18:06:05 [RateCDR] => 1 ) [2025-01-15 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:06:05' and `end` < '2025-01-15 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:06:18] Production.INFO: count ==3445 [2025-01-15 18:06:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:06:05 - End Time 2025-01-15 18:06:05 [2025-01-15 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255336', 'tblTempUsageDetail_20' ) start [2025-01-15 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255336', 'tblTempUsageDetail_20' ) end [2025-01-15 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255336', 'tblTempVendorCDR_20' ) start [2025-01-15 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255336', 'tblTempVendorCDR_20' ) end [2025-01-15 18:06:19] Production.INFO: ProcessCDR(1,14255336,1,1,2) [2025-01-15 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255336', 'tblTempUsageDetail_20' ) start [2025-01-15 18:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255336', 'tblTempUsageDetail_20' ) end [2025-01-15 18:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:06:22] Production.INFO: ==8406== Releasing lock... [2025-01-15 18:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:06:22] Production.INFO: 54.25 MB #Memory Used# [2025-01-15 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:07:06 [end_date_ymd] => 2025-01-15 18:07:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 15:07:06' and `end` < '2025-01-15 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-01-15 18:07:18] Production.INFO: count ==3423 [2025-01-15 18:07:20] Production.ERROR: pbx CDR StartTime 2025-01-15 15:07:06 - End Time 2025-01-15 18:07:06 [2025-01-15 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255341', 'tblTempUsageDetail_20' ) start [2025-01-15 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255341', 'tblTempUsageDetail_20' ) end [2025-01-15 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255341', 'tblTempVendorCDR_20' ) start [2025-01-15 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255341', 'tblTempVendorCDR_20' ) end [2025-01-15 18:07:20] Production.INFO: ProcessCDR(1,14255341,1,1,2) [2025-01-15 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255341', 'tblTempUsageDetail_20' ) start [2025-01-15 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255341', 'tblTempUsageDetail_20' ) end [2025-01-15 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:07:25] Production.INFO: ==8529== Releasing lock... [2025-01-15 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:07:25] Production.INFO: 53.75 MB #Memory Used# [2025-01-15 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:08:05 [end_date_ymd] => 2025-01-15 18:08:05 [RateCDR] => 1 ) [2025-01-15 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:08:05' and `end` < '2025-01-15 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:08:18] Production.INFO: count ==3403 [2025-01-15 18:08:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:08:05 - End Time 2025-01-15 18:08:05 [2025-01-15 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255346', 'tblTempUsageDetail_20' ) start [2025-01-15 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255346', 'tblTempUsageDetail_20' ) end [2025-01-15 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255346', 'tblTempVendorCDR_20' ) start [2025-01-15 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255346', 'tblTempVendorCDR_20' ) end [2025-01-15 18:08:19] Production.INFO: ProcessCDR(1,14255346,1,1,2) [2025-01-15 18:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255346', 'tblTempUsageDetail_20' ) start [2025-01-15 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255346', 'tblTempUsageDetail_20' ) end [2025-01-15 18:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:08:22] Production.INFO: ==8647== Releasing lock... [2025-01-15 18:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:08:22] Production.INFO: 54 MB #Memory Used# [2025-01-15 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:09:05 [end_date_ymd] => 2025-01-15 18:09:05 [RateCDR] => 1 ) [2025-01-15 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:09:05' and `end` < '2025-01-15 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:09:18] Production.INFO: count ==3392 [2025-01-15 18:09:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:09:05 - End Time 2025-01-15 18:09:05 [2025-01-15 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255351', 'tblTempUsageDetail_20' ) start [2025-01-15 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255351', 'tblTempUsageDetail_20' ) end [2025-01-15 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255351', 'tblTempVendorCDR_20' ) start [2025-01-15 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255351', 'tblTempVendorCDR_20' ) end [2025-01-15 18:09:19] Production.INFO: ProcessCDR(1,14255351,1,1,2) [2025-01-15 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255351', 'tblTempUsageDetail_20' ) start [2025-01-15 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255351', 'tblTempUsageDetail_20' ) end [2025-01-15 18:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:09:22] Production.INFO: ==8761== Releasing lock... [2025-01-15 18:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:09:22] Production.INFO: 53.25 MB #Memory Used# [2025-01-15 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:10:06 [end_date_ymd] => 2025-01-15 18:10:06 [RateCDR] => 1 ) [2025-01-15 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:10:06' and `end` < '2025-01-15 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:10:19] Production.INFO: count ==3369 [2025-01-15 18:10:20] Production.ERROR: pbx CDR StartTime 2025-01-15 15:10:06 - End Time 2025-01-15 18:10:06 [2025-01-15 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255356', 'tblTempUsageDetail_20' ) start [2025-01-15 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255356', 'tblTempUsageDetail_20' ) end [2025-01-15 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255356', 'tblTempVendorCDR_20' ) start [2025-01-15 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255356', 'tblTempVendorCDR_20' ) end [2025-01-15 18:10:20] Production.INFO: ProcessCDR(1,14255356,1,1,2) [2025-01-15 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255356', 'tblTempUsageDetail_20' ) start [2025-01-15 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255356', 'tblTempUsageDetail_20' ) end [2025-01-15 18:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:10:25] Production.INFO: ==8875== Releasing lock... [2025-01-15 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:10:25] Production.INFO: 53.75 MB #Memory Used# [2025-01-15 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:11:05 [end_date_ymd] => 2025-01-15 18:11:05 [RateCDR] => 1 ) [2025-01-15 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:11:05' and `end` < '2025-01-15 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:11:20] Production.INFO: count ==3330 [2025-01-15 18:11:21] Production.ERROR: pbx CDR StartTime 2025-01-15 15:11:05 - End Time 2025-01-15 18:11:05 [2025-01-15 18:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255362', 'tblTempUsageDetail_20' ) start [2025-01-15 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255362', 'tblTempUsageDetail_20' ) end [2025-01-15 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255362', 'tblTempVendorCDR_20' ) start [2025-01-15 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255362', 'tblTempVendorCDR_20' ) end [2025-01-15 18:11:21] Production.INFO: ProcessCDR(1,14255362,1,1,2) [2025-01-15 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255362', 'tblTempUsageDetail_20' ) start [2025-01-15 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255362', 'tblTempUsageDetail_20' ) end [2025-01-15 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:11:24] Production.INFO: ==9027== Releasing lock... [2025-01-15 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:11:24] Production.INFO: 53 MB #Memory Used# [2025-01-15 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:12:05 [end_date_ymd] => 2025-01-15 18:12:05 [RateCDR] => 1 ) [2025-01-15 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:12:05' and `end` < '2025-01-15 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:12:19] Production.INFO: count ==3320 [2025-01-15 18:12:20] Production.ERROR: pbx CDR StartTime 2025-01-15 15:12:05 - End Time 2025-01-15 18:12:05 [2025-01-15 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255367', 'tblTempUsageDetail_20' ) start [2025-01-15 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255367', 'tblTempUsageDetail_20' ) end [2025-01-15 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255367', 'tblTempVendorCDR_20' ) start [2025-01-15 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255367', 'tblTempVendorCDR_20' ) end [2025-01-15 18:12:20] Production.INFO: ProcessCDR(1,14255367,1,1,2) [2025-01-15 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255367', 'tblTempUsageDetail_20' ) start [2025-01-15 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255367', 'tblTempUsageDetail_20' ) end [2025-01-15 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:12:25] Production.INFO: ==9144== Releasing lock... [2025-01-15 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:12:25] Production.INFO: 52.75 MB #Memory Used# [2025-01-15 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:13:05 [end_date_ymd] => 2025-01-15 18:13:05 [RateCDR] => 1 ) [2025-01-15 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:13:05' and `end` < '2025-01-15 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:13:19] Production.INFO: count ==3296 [2025-01-15 18:13:20] Production.ERROR: pbx CDR StartTime 2025-01-15 15:13:05 - End Time 2025-01-15 18:13:05 [2025-01-15 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255372', 'tblTempUsageDetail_20' ) start [2025-01-15 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255372', 'tblTempUsageDetail_20' ) end [2025-01-15 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255372', 'tblTempVendorCDR_20' ) start [2025-01-15 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255372', 'tblTempVendorCDR_20' ) end [2025-01-15 18:13:20] Production.INFO: ProcessCDR(1,14255372,1,1,2) [2025-01-15 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255372', 'tblTempUsageDetail_20' ) start [2025-01-15 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255372', 'tblTempUsageDetail_20' ) end [2025-01-15 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:13:25] Production.INFO: ==9258== Releasing lock... [2025-01-15 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:13:25] Production.INFO: 52.75 MB #Memory Used# [2025-01-15 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:14:05 [end_date_ymd] => 2025-01-15 18:14:05 [RateCDR] => 1 ) [2025-01-15 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:14:05' and `end` < '2025-01-15 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:14:19] Production.INFO: count ==3295 [2025-01-15 18:14:20] Production.ERROR: pbx CDR StartTime 2025-01-15 15:14:05 - End Time 2025-01-15 18:14:05 [2025-01-15 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255377', 'tblTempUsageDetail_20' ) start [2025-01-15 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255377', 'tblTempUsageDetail_20' ) end [2025-01-15 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255377', 'tblTempVendorCDR_20' ) start [2025-01-15 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255377', 'tblTempVendorCDR_20' ) end [2025-01-15 18:14:20] Production.INFO: ProcessCDR(1,14255377,1,1,2) [2025-01-15 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255377', 'tblTempUsageDetail_20' ) start [2025-01-15 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255377', 'tblTempUsageDetail_20' ) end [2025-01-15 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:14:25] Production.INFO: ==9371== Releasing lock... [2025-01-15 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:14:25] Production.INFO: 52.5 MB #Memory Used# [2025-01-15 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:15:05 [end_date_ymd] => 2025-01-15 18:15:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 15:15:05' and `end` < '2025-01-15 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-01-15 18:15:24] Production.INFO: count ==3296 [2025-01-15 18:15:25] Production.ERROR: pbx CDR StartTime 2025-01-15 15:15:05 - End Time 2025-01-15 18:15:05 [2025-01-15 18:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255382', 'tblTempUsageDetail_20' ) start [2025-01-15 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255382', 'tblTempUsageDetail_20' ) end [2025-01-15 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255382', 'tblTempVendorCDR_20' ) start [2025-01-15 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255382', 'tblTempVendorCDR_20' ) end [2025-01-15 18:15:25] Production.INFO: ProcessCDR(1,14255382,1,1,2) [2025-01-15 18:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255382', 'tblTempUsageDetail_20' ) start [2025-01-15 18:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255382', 'tblTempUsageDetail_20' ) end [2025-01-15 18:15:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:15:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:15:30] Production.INFO: ==9487== Releasing lock... [2025-01-15 18:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:15:30] Production.INFO: 52.5 MB #Memory Used# [2025-01-15 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:16:05 [end_date_ymd] => 2025-01-15 18:16:05 [RateCDR] => 1 ) [2025-01-15 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:16:05' and `end` < '2025-01-15 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:16:18] Production.INFO: count ==3282 [2025-01-15 18:16:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:16:05 - End Time 2025-01-15 18:16:05 [2025-01-15 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255387', 'tblTempUsageDetail_20' ) start [2025-01-15 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255387', 'tblTempUsageDetail_20' ) end [2025-01-15 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255387', 'tblTempVendorCDR_20' ) start [2025-01-15 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255387', 'tblTempVendorCDR_20' ) end [2025-01-15 18:16:19] Production.INFO: ProcessCDR(1,14255387,1,1,2) [2025-01-15 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255387', 'tblTempUsageDetail_20' ) start [2025-01-15 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255387', 'tblTempUsageDetail_20' ) end [2025-01-15 18:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:16:23] Production.INFO: ==9566== Releasing lock... [2025-01-15 18:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:16:23] Production.INFO: 53.5 MB #Memory Used# [2025-01-15 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:17:05 [end_date_ymd] => 2025-01-15 18:17:05 [RateCDR] => 1 ) [2025-01-15 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:17:05' and `end` < '2025-01-15 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:17:20] Production.INFO: count ==3289 [2025-01-15 18:17:21] Production.ERROR: pbx CDR StartTime 2025-01-15 15:17:05 - End Time 2025-01-15 18:17:05 [2025-01-15 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255392', 'tblTempUsageDetail_20' ) start [2025-01-15 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255392', 'tblTempUsageDetail_20' ) end [2025-01-15 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255392', 'tblTempVendorCDR_20' ) start [2025-01-15 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255392', 'tblTempVendorCDR_20' ) end [2025-01-15 18:17:21] Production.INFO: ProcessCDR(1,14255392,1,1,2) [2025-01-15 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255392', 'tblTempUsageDetail_20' ) start [2025-01-15 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255392', 'tblTempUsageDetail_20' ) end [2025-01-15 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:17:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:17:26] Production.INFO: ==9637== Releasing lock... [2025-01-15 18:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:17:26] Production.INFO: 53.5 MB #Memory Used# [2025-01-15 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:18:06 [end_date_ymd] => 2025-01-15 18:18:06 [RateCDR] => 1 ) [2025-01-15 18:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:18:06' and `end` < '2025-01-15 18:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:18:21] Production.INFO: count ==3279 [2025-01-15 18:18:22] Production.ERROR: pbx CDR StartTime 2025-01-15 15:18:06 - End Time 2025-01-15 18:18:06 [2025-01-15 18:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255397', 'tblTempUsageDetail_20' ) start [2025-01-15 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255397', 'tblTempUsageDetail_20' ) end [2025-01-15 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255397', 'tblTempVendorCDR_20' ) start [2025-01-15 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255397', 'tblTempVendorCDR_20' ) end [2025-01-15 18:18:22] Production.INFO: ProcessCDR(1,14255397,1,1,2) [2025-01-15 18:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255397', 'tblTempUsageDetail_20' ) start [2025-01-15 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255397', 'tblTempUsageDetail_20' ) end [2025-01-15 18:18:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:18:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:18:27] Production.INFO: ==9706== Releasing lock... [2025-01-15 18:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:18:27] Production.INFO: 53.5 MB #Memory Used# [2025-01-15 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:19:05 [end_date_ymd] => 2025-01-15 18:19:05 [RateCDR] => 1 ) [2025-01-15 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:19:05' and `end` < '2025-01-15 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:19:17] Production.INFO: count ==3275 [2025-01-15 18:19:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:19:05 - End Time 2025-01-15 18:19:05 [2025-01-15 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255402', 'tblTempUsageDetail_20' ) start [2025-01-15 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255402', 'tblTempUsageDetail_20' ) end [2025-01-15 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255402', 'tblTempVendorCDR_20' ) start [2025-01-15 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255402', 'tblTempVendorCDR_20' ) end [2025-01-15 18:19:19] Production.INFO: ProcessCDR(1,14255402,1,1,2) [2025-01-15 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255402', 'tblTempUsageDetail_20' ) start [2025-01-15 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255402', 'tblTempUsageDetail_20' ) end [2025-01-15 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:19:23] Production.INFO: ==9777== Releasing lock... [2025-01-15 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:19:23] Production.INFO: 52.5 MB #Memory Used# [2025-01-15 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:20:05 [end_date_ymd] => 2025-01-15 18:20:05 [RateCDR] => 1 ) [2025-01-15 18:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:20:05' and `end` < '2025-01-15 18:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:20:24] Production.INFO: count ==3272 [2025-01-15 18:20:25] Production.ERROR: pbx CDR StartTime 2025-01-15 15:20:05 - End Time 2025-01-15 18:20:05 [2025-01-15 18:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255408', 'tblTempUsageDetail_20' ) start [2025-01-15 18:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255408', 'tblTempUsageDetail_20' ) end [2025-01-15 18:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255408', 'tblTempVendorCDR_20' ) start [2025-01-15 18:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255408', 'tblTempVendorCDR_20' ) end [2025-01-15 18:20:25] Production.INFO: ProcessCDR(1,14255408,1,1,2) [2025-01-15 18:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255408', 'tblTempUsageDetail_20' ) start [2025-01-15 18:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255408', 'tblTempUsageDetail_20' ) end [2025-01-15 18:20:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:20:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:20:30] Production.INFO: ==9850== Releasing lock... [2025-01-15 18:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:20:30] Production.INFO: 52.5 MB #Memory Used# [2025-01-15 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:21:05 [end_date_ymd] => 2025-01-15 18:21:05 [RateCDR] => 1 ) [2025-01-15 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:21:05' and `end` < '2025-01-15 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:21:18] Production.INFO: count ==3282 [2025-01-15 18:21:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:21:05 - End Time 2025-01-15 18:21:05 [2025-01-15 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255413', 'tblTempUsageDetail_20' ) start [2025-01-15 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255413', 'tblTempUsageDetail_20' ) end [2025-01-15 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255413', 'tblTempVendorCDR_20' ) start [2025-01-15 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255413', 'tblTempVendorCDR_20' ) end [2025-01-15 18:21:19] Production.INFO: ProcessCDR(1,14255413,1,1,2) [2025-01-15 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255413', 'tblTempUsageDetail_20' ) start [2025-01-15 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255413', 'tblTempUsageDetail_20' ) end [2025-01-15 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:21:24] Production.INFO: ==9928== Releasing lock... [2025-01-15 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:21:24] Production.INFO: 52.5 MB #Memory Used# [2025-01-15 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:22:06 [end_date_ymd] => 2025-01-15 18:22:06 [RateCDR] => 1 ) [2025-01-15 18:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:22:06' and `end` < '2025-01-15 18:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:22:19] Production.INFO: count ==3278 [2025-01-15 18:22:20] Production.ERROR: pbx CDR StartTime 2025-01-15 15:22:06 - End Time 2025-01-15 18:22:06 [2025-01-15 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255418', 'tblTempUsageDetail_20' ) start [2025-01-15 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255418', 'tblTempUsageDetail_20' ) end [2025-01-15 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255418', 'tblTempVendorCDR_20' ) start [2025-01-15 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255418', 'tblTempVendorCDR_20' ) end [2025-01-15 18:22:20] Production.INFO: ProcessCDR(1,14255418,1,1,2) [2025-01-15 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255418', 'tblTempUsageDetail_20' ) start [2025-01-15 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255418', 'tblTempUsageDetail_20' ) end [2025-01-15 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:22:25] Production.INFO: ==9998== Releasing lock... [2025-01-15 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:22:25] Production.INFO: 53.5 MB #Memory Used# [2025-01-15 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:23:05 [end_date_ymd] => 2025-01-15 18:23:05 [RateCDR] => 1 ) [2025-01-15 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:23:05' and `end` < '2025-01-15 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:23:17] Production.INFO: count ==3243 [2025-01-15 18:23:18] Production.ERROR: pbx CDR StartTime 2025-01-15 15:23:05 - End Time 2025-01-15 18:23:05 [2025-01-15 18:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255423', 'tblTempUsageDetail_20' ) start [2025-01-15 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255423', 'tblTempUsageDetail_20' ) end [2025-01-15 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255423', 'tblTempVendorCDR_20' ) start [2025-01-15 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255423', 'tblTempVendorCDR_20' ) end [2025-01-15 18:23:19] Production.INFO: ProcessCDR(1,14255423,1,1,2) [2025-01-15 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255423', 'tblTempUsageDetail_20' ) start [2025-01-15 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255423', 'tblTempUsageDetail_20' ) end [2025-01-15 18:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:23:22] Production.INFO: ==10068== Releasing lock... [2025-01-15 18:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:23:22] Production.INFO: 52.75 MB #Memory Used# [2025-01-15 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:24:05 [end_date_ymd] => 2025-01-15 18:24:05 [RateCDR] => 1 ) [2025-01-15 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:24:05' and `end` < '2025-01-15 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:24:19] Production.INFO: count ==3236 [2025-01-15 18:24:20] Production.ERROR: pbx CDR StartTime 2025-01-15 15:24:05 - End Time 2025-01-15 18:24:05 [2025-01-15 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255428', 'tblTempUsageDetail_20' ) start [2025-01-15 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255428', 'tblTempUsageDetail_20' ) end [2025-01-15 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255428', 'tblTempVendorCDR_20' ) start [2025-01-15 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255428', 'tblTempVendorCDR_20' ) end [2025-01-15 18:24:20] Production.INFO: ProcessCDR(1,14255428,1,1,2) [2025-01-15 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255428', 'tblTempUsageDetail_20' ) start [2025-01-15 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255428', 'tblTempUsageDetail_20' ) end [2025-01-15 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:24:25] Production.INFO: ==10139== Releasing lock... [2025-01-15 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:24:25] Production.INFO: 52.25 MB #Memory Used# [2025-01-15 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:25:04 [end_date_ymd] => 2025-01-15 18:25:04 [RateCDR] => 1 ) [2025-01-15 18:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:25:04' and `end` < '2025-01-15 18:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:25:18] Production.INFO: count ==3221 [2025-01-15 18:25:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:25:04 - End Time 2025-01-15 18:25:04 [2025-01-15 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255433', 'tblTempUsageDetail_20' ) start [2025-01-15 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255433', 'tblTempUsageDetail_20' ) end [2025-01-15 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255433', 'tblTempVendorCDR_20' ) start [2025-01-15 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255433', 'tblTempVendorCDR_20' ) end [2025-01-15 18:25:19] Production.INFO: ProcessCDR(1,14255433,1,1,2) [2025-01-15 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255433', 'tblTempUsageDetail_20' ) start [2025-01-15 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255433', 'tblTempUsageDetail_20' ) end [2025-01-15 18:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:25:23] Production.INFO: ==10210== Releasing lock... [2025-01-15 18:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:25:23] Production.INFO: 52 MB #Memory Used# [2025-01-15 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:26:05 [end_date_ymd] => 2025-01-15 18:26:05 [RateCDR] => 1 ) [2025-01-15 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:26:05' and `end` < '2025-01-15 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:26:18] Production.INFO: count ==3209 [2025-01-15 18:26:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:26:05 - End Time 2025-01-15 18:26:05 [2025-01-15 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255438', 'tblTempUsageDetail_20' ) start [2025-01-15 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255438', 'tblTempUsageDetail_20' ) end [2025-01-15 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255438', 'tblTempVendorCDR_20' ) start [2025-01-15 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255438', 'tblTempVendorCDR_20' ) end [2025-01-15 18:26:19] Production.INFO: ProcessCDR(1,14255438,1,1,2) [2025-01-15 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255438', 'tblTempUsageDetail_20' ) start [2025-01-15 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255438', 'tblTempUsageDetail_20' ) end [2025-01-15 18:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:26:23] Production.INFO: ==10320== Releasing lock... [2025-01-15 18:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:26:23] Production.INFO: 52 MB #Memory Used# [2025-01-15 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:27:05 [end_date_ymd] => 2025-01-15 18:27:05 [RateCDR] => 1 ) [2025-01-15 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:27:05' and `end` < '2025-01-15 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:27:24] Production.INFO: count ==3210 [2025-01-15 18:27:25] Production.ERROR: pbx CDR StartTime 2025-01-15 15:27:05 - End Time 2025-01-15 18:27:05 [2025-01-15 18:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255443', 'tblTempUsageDetail_20' ) start [2025-01-15 18:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255443', 'tblTempUsageDetail_20' ) end [2025-01-15 18:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255443', 'tblTempVendorCDR_20' ) start [2025-01-15 18:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255443', 'tblTempVendorCDR_20' ) end [2025-01-15 18:27:25] Production.INFO: ProcessCDR(1,14255443,1,1,2) [2025-01-15 18:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255443', 'tblTempUsageDetail_20' ) start [2025-01-15 18:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255443', 'tblTempUsageDetail_20' ) end [2025-01-15 18:27:30] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:27:30] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:27:30] Production.INFO: ==10389== Releasing lock... [2025-01-15 18:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:27:30] Production.INFO: 52.5 MB #Memory Used# [2025-01-15 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:28:05 [end_date_ymd] => 2025-01-15 18:28:05 [RateCDR] => 1 ) [2025-01-15 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:28:05' and `end` < '2025-01-15 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:28:19] Production.INFO: count ==3204 [2025-01-15 18:28:20] Production.ERROR: pbx CDR StartTime 2025-01-15 15:28:05 - End Time 2025-01-15 18:28:05 [2025-01-15 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255448', 'tblTempUsageDetail_20' ) start [2025-01-15 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255448', 'tblTempUsageDetail_20' ) end [2025-01-15 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255448', 'tblTempVendorCDR_20' ) start [2025-01-15 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255448', 'tblTempVendorCDR_20' ) end [2025-01-15 18:28:20] Production.INFO: ProcessCDR(1,14255448,1,1,2) [2025-01-15 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255448', 'tblTempUsageDetail_20' ) start [2025-01-15 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255448', 'tblTempUsageDetail_20' ) end [2025-01-15 18:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:28:25] Production.INFO: ==10459== Releasing lock... [2025-01-15 18:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:28:25] Production.INFO: 52.75 MB #Memory Used# [2025-01-15 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:29:05 [end_date_ymd] => 2025-01-15 18:29:05 [RateCDR] => 1 ) [2025-01-15 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:29:05' and `end` < '2025-01-15 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:29:18] Production.INFO: count ==3203 [2025-01-15 18:29:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:29:05 - End Time 2025-01-15 18:29:05 [2025-01-15 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255453', 'tblTempUsageDetail_20' ) start [2025-01-15 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255453', 'tblTempUsageDetail_20' ) end [2025-01-15 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255453', 'tblTempVendorCDR_20' ) start [2025-01-15 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255453', 'tblTempVendorCDR_20' ) end [2025-01-15 18:29:19] Production.INFO: ProcessCDR(1,14255453,1,1,2) [2025-01-15 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255453', 'tblTempUsageDetail_20' ) start [2025-01-15 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255453', 'tblTempUsageDetail_20' ) end [2025-01-15 18:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:29:24] Production.INFO: ==10529== Releasing lock... [2025-01-15 18:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:29:24] Production.INFO: 52 MB #Memory Used# [2025-01-15 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:30:06 [end_date_ymd] => 2025-01-15 18:30:06 [RateCDR] => 1 ) [2025-01-15 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:30:06' and `end` < '2025-01-15 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:30:18] Production.INFO: count ==3194 [2025-01-15 18:30:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:30:06 - End Time 2025-01-15 18:30:06 [2025-01-15 18:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255459', 'tblTempUsageDetail_20' ) start [2025-01-15 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255459', 'tblTempUsageDetail_20' ) end [2025-01-15 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255459', 'tblTempVendorCDR_20' ) start [2025-01-15 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255459', 'tblTempVendorCDR_20' ) end [2025-01-15 18:30:19] Production.INFO: ProcessCDR(1,14255459,1,1,2) [2025-01-15 18:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255459', 'tblTempUsageDetail_20' ) start [2025-01-15 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255459', 'tblTempUsageDetail_20' ) end [2025-01-15 18:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:30:23] Production.INFO: ==10601== Releasing lock... [2025-01-15 18:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:30:23] Production.INFO: 52 MB #Memory Used# [2025-01-15 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:31:05 [end_date_ymd] => 2025-01-15 18:31:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 15:31:05' and `end` < '2025-01-15 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-01-15 18:31:18] Production.INFO: count ==3143 [2025-01-15 18:31:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:31:05 - End Time 2025-01-15 18:31:05 [2025-01-15 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255464', 'tblTempUsageDetail_20' ) start [2025-01-15 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255464', 'tblTempUsageDetail_20' ) end [2025-01-15 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255464', 'tblTempVendorCDR_20' ) start [2025-01-15 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255464', 'tblTempVendorCDR_20' ) end [2025-01-15 18:31:19] Production.INFO: ProcessCDR(1,14255464,1,1,2) [2025-01-15 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255464', 'tblTempUsageDetail_20' ) start [2025-01-15 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255464', 'tblTempUsageDetail_20' ) end [2025-01-15 18:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:31:22] Production.INFO: ==10673== Releasing lock... [2025-01-15 18:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:31:22] Production.INFO: 51.5 MB #Memory Used# [2025-01-15 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:32:05 [end_date_ymd] => 2025-01-15 18:32:05 [RateCDR] => 1 ) [2025-01-15 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:32:05' and `end` < '2025-01-15 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:32:18] Production.INFO: count ==3124 [2025-01-15 18:32:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:32:05 - End Time 2025-01-15 18:32:05 [2025-01-15 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255469', 'tblTempUsageDetail_20' ) start [2025-01-15 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255469', 'tblTempUsageDetail_20' ) end [2025-01-15 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255469', 'tblTempVendorCDR_20' ) start [2025-01-15 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255469', 'tblTempVendorCDR_20' ) end [2025-01-15 18:32:19] Production.INFO: ProcessCDR(1,14255469,1,1,2) [2025-01-15 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255469', 'tblTempUsageDetail_20' ) start [2025-01-15 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255469', 'tblTempUsageDetail_20' ) end [2025-01-15 18:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:32:22] Production.INFO: ==10745== Releasing lock... [2025-01-15 18:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:32:22] Production.INFO: 52.25 MB #Memory Used# [2025-01-15 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:33:05 [end_date_ymd] => 2025-01-15 18:33:05 [RateCDR] => 1 ) [2025-01-15 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:33:05' and `end` < '2025-01-15 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:33:18] Production.INFO: count ==3112 [2025-01-15 18:33:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:33:05 - End Time 2025-01-15 18:33:05 [2025-01-15 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255474', 'tblTempUsageDetail_20' ) start [2025-01-15 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255474', 'tblTempUsageDetail_20' ) end [2025-01-15 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255474', 'tblTempVendorCDR_20' ) start [2025-01-15 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255474', 'tblTempVendorCDR_20' ) end [2025-01-15 18:33:19] Production.INFO: ProcessCDR(1,14255474,1,1,2) [2025-01-15 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255474', 'tblTempUsageDetail_20' ) start [2025-01-15 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255474', 'tblTempUsageDetail_20' ) end [2025-01-15 18:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:33:22] Production.INFO: ==10816== Releasing lock... [2025-01-15 18:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:33:22] Production.INFO: 51.5 MB #Memory Used# [2025-01-15 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:34:05 [end_date_ymd] => 2025-01-15 18:34:05 [RateCDR] => 1 ) [2025-01-15 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:34:05' and `end` < '2025-01-15 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:34:18] Production.INFO: count ==3101 [2025-01-15 18:34:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:34:05 - End Time 2025-01-15 18:34:05 [2025-01-15 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255479', 'tblTempUsageDetail_20' ) start [2025-01-15 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255479', 'tblTempUsageDetail_20' ) end [2025-01-15 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255479', 'tblTempVendorCDR_20' ) start [2025-01-15 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255479', 'tblTempVendorCDR_20' ) end [2025-01-15 18:34:19] Production.INFO: ProcessCDR(1,14255479,1,1,2) [2025-01-15 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255479', 'tblTempUsageDetail_20' ) start [2025-01-15 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255479', 'tblTempUsageDetail_20' ) end [2025-01-15 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:34:23] Production.INFO: ==10887== Releasing lock... [2025-01-15 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:34:23] Production.INFO: 51.25 MB #Memory Used# [2025-01-15 18:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:35:04 [end_date_ymd] => 2025-01-15 18:35:04 [RateCDR] => 1 ) [2025-01-15 18:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:35:04' and `end` < '2025-01-15 18:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:35:17] Production.INFO: count ==3095 [2025-01-15 18:35:18] Production.ERROR: pbx CDR StartTime 2025-01-15 15:35:04 - End Time 2025-01-15 18:35:04 [2025-01-15 18:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255484', 'tblTempUsageDetail_20' ) start [2025-01-15 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255484', 'tblTempUsageDetail_20' ) end [2025-01-15 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255484', 'tblTempVendorCDR_20' ) start [2025-01-15 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255484', 'tblTempVendorCDR_20' ) end [2025-01-15 18:35:18] Production.INFO: ProcessCDR(1,14255484,1,1,2) [2025-01-15 18:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255484', 'tblTempUsageDetail_20' ) start [2025-01-15 18:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255484', 'tblTempUsageDetail_20' ) end [2025-01-15 18:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:35:21] Production.INFO: ==10964== Releasing lock... [2025-01-15 18:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:35:21] Production.INFO: 51 MB #Memory Used# [2025-01-15 18:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:36:06 [end_date_ymd] => 2025-01-15 18:36:06 [RateCDR] => 1 ) [2025-01-15 18:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:36:06' and `end` < '2025-01-15 18:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:36:18] Production.INFO: count ==3088 [2025-01-15 18:36:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:36:06 - End Time 2025-01-15 18:36:06 [2025-01-15 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255489', 'tblTempUsageDetail_20' ) start [2025-01-15 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255489', 'tblTempUsageDetail_20' ) end [2025-01-15 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255489', 'tblTempVendorCDR_20' ) start [2025-01-15 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255489', 'tblTempVendorCDR_20' ) end [2025-01-15 18:36:20] Production.INFO: ProcessCDR(1,14255489,1,1,2) [2025-01-15 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255489', 'tblTempUsageDetail_20' ) start [2025-01-15 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255489', 'tblTempUsageDetail_20' ) end [2025-01-15 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:36:25] Production.INFO: ==11037== Releasing lock... [2025-01-15 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:36:25] Production.INFO: 51 MB #Memory Used# [2025-01-15 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:37:05 [end_date_ymd] => 2025-01-15 18:37:05 [RateCDR] => 1 ) [2025-01-15 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:37:05' and `end` < '2025-01-15 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:37:18] Production.INFO: count ==3065 [2025-01-15 18:37:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:37:05 - End Time 2025-01-15 18:37:05 [2025-01-15 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255494', 'tblTempUsageDetail_20' ) start [2025-01-15 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255494', 'tblTempUsageDetail_20' ) end [2025-01-15 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255494', 'tblTempVendorCDR_20' ) start [2025-01-15 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255494', 'tblTempVendorCDR_20' ) end [2025-01-15 18:37:19] Production.INFO: ProcessCDR(1,14255494,1,1,2) [2025-01-15 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255494', 'tblTempUsageDetail_20' ) start [2025-01-15 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255494', 'tblTempUsageDetail_20' ) end [2025-01-15 18:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:37:22] Production.INFO: ==11107== Releasing lock... [2025-01-15 18:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:37:22] Production.INFO: 50.75 MB #Memory Used# [2025-01-15 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:38:06 [end_date_ymd] => 2025-01-15 18:38:06 [RateCDR] => 1 ) [2025-01-15 18:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:38:06' and `end` < '2025-01-15 18:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:38:19] Production.INFO: count ==3062 [2025-01-15 18:38:20] Production.ERROR: pbx CDR StartTime 2025-01-15 15:38:06 - End Time 2025-01-15 18:38:06 [2025-01-15 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255499', 'tblTempUsageDetail_20' ) start [2025-01-15 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255499', 'tblTempUsageDetail_20' ) end [2025-01-15 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255499', 'tblTempVendorCDR_20' ) start [2025-01-15 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255499', 'tblTempVendorCDR_20' ) end [2025-01-15 18:38:20] Production.INFO: ProcessCDR(1,14255499,1,1,2) [2025-01-15 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255499', 'tblTempUsageDetail_20' ) start [2025-01-15 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255499', 'tblTempUsageDetail_20' ) end [2025-01-15 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:38:23] Production.INFO: ==11179== Releasing lock... [2025-01-15 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:38:23] Production.INFO: 50.75 MB #Memory Used# [2025-01-15 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:39:05 [end_date_ymd] => 2025-01-15 18:39:05 [RateCDR] => 1 ) [2025-01-15 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:39:05' and `end` < '2025-01-15 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:39:17] Production.INFO: count ==3053 [2025-01-15 18:39:18] Production.ERROR: pbx CDR StartTime 2025-01-15 15:39:05 - End Time 2025-01-15 18:39:05 [2025-01-15 18:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255504', 'tblTempUsageDetail_20' ) start [2025-01-15 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255504', 'tblTempUsageDetail_20' ) end [2025-01-15 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255504', 'tblTempVendorCDR_20' ) start [2025-01-15 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255504', 'tblTempVendorCDR_20' ) end [2025-01-15 18:39:18] Production.INFO: ProcessCDR(1,14255504,1,1,2) [2025-01-15 18:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255504', 'tblTempUsageDetail_20' ) start [2025-01-15 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255504', 'tblTempUsageDetail_20' ) end [2025-01-15 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:39:22] Production.INFO: ==11249== Releasing lock... [2025-01-15 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:39:22] Production.INFO: 50.75 MB #Memory Used# [2025-01-15 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:40:06 [end_date_ymd] => 2025-01-15 18:40:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 15:40:06' and `end` < '2025-01-15 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-01-15 18:40:18] Production.INFO: count ==3042 [2025-01-15 18:40:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:40:06 - End Time 2025-01-15 18:40:06 [2025-01-15 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255510', 'tblTempUsageDetail_20' ) start [2025-01-15 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255510', 'tblTempUsageDetail_20' ) end [2025-01-15 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255510', 'tblTempVendorCDR_20' ) start [2025-01-15 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255510', 'tblTempVendorCDR_20' ) end [2025-01-15 18:40:19] Production.INFO: ProcessCDR(1,14255510,1,1,2) [2025-01-15 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255510', 'tblTempUsageDetail_20' ) start [2025-01-15 18:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255510', 'tblTempUsageDetail_20' ) end [2025-01-15 18:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:40:22] Production.INFO: ==11321== Releasing lock... [2025-01-15 18:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:40:22] Production.INFO: 50.75 MB #Memory Used# [2025-01-15 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:41:05 [end_date_ymd] => 2025-01-15 18:41:05 [RateCDR] => 1 ) [2025-01-15 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:41:05' and `end` < '2025-01-15 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:41:18] Production.INFO: count ==3050 [2025-01-15 18:41:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:41:05 - End Time 2025-01-15 18:41:05 [2025-01-15 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255515', 'tblTempUsageDetail_20' ) start [2025-01-15 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255515', 'tblTempUsageDetail_20' ) end [2025-01-15 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255515', 'tblTempVendorCDR_20' ) start [2025-01-15 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255515', 'tblTempVendorCDR_20' ) end [2025-01-15 18:41:19] Production.INFO: ProcessCDR(1,14255515,1,1,2) [2025-01-15 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255515', 'tblTempUsageDetail_20' ) start [2025-01-15 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255515', 'tblTempUsageDetail_20' ) end [2025-01-15 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:41:23] Production.INFO: ==11394== Releasing lock... [2025-01-15 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:41:23] Production.INFO: 51.25 MB #Memory Used# [2025-01-15 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:42:05 [end_date_ymd] => 2025-01-15 18:42:05 [RateCDR] => 1 ) [2025-01-15 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:42:05' and `end` < '2025-01-15 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:42:18] Production.INFO: count ==3040 [2025-01-15 18:42:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:42:05 - End Time 2025-01-15 18:42:05 [2025-01-15 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255520', 'tblTempUsageDetail_20' ) start [2025-01-15 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255520', 'tblTempUsageDetail_20' ) end [2025-01-15 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255520', 'tblTempVendorCDR_20' ) start [2025-01-15 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255520', 'tblTempVendorCDR_20' ) end [2025-01-15 18:42:19] Production.INFO: ProcessCDR(1,14255520,1,1,2) [2025-01-15 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255520', 'tblTempUsageDetail_20' ) start [2025-01-15 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255520', 'tblTempUsageDetail_20' ) end [2025-01-15 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:42:24] Production.INFO: ==11505== Releasing lock... [2025-01-15 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:42:24] Production.INFO: 50.75 MB #Memory Used# [2025-01-15 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:43:05 [end_date_ymd] => 2025-01-15 18:43:05 [RateCDR] => 1 ) [2025-01-15 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:43:05' and `end` < '2025-01-15 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:43:20] Production.INFO: count ==3038 [2025-01-15 18:43:21] Production.ERROR: pbx CDR StartTime 2025-01-15 15:43:05 - End Time 2025-01-15 18:43:05 [2025-01-15 18:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255525', 'tblTempUsageDetail_20' ) start [2025-01-15 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255525', 'tblTempUsageDetail_20' ) end [2025-01-15 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255525', 'tblTempVendorCDR_20' ) start [2025-01-15 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255525', 'tblTempVendorCDR_20' ) end [2025-01-15 18:43:21] Production.INFO: ProcessCDR(1,14255525,1,1,2) [2025-01-15 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255525', 'tblTempUsageDetail_20' ) start [2025-01-15 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255525', 'tblTempUsageDetail_20' ) end [2025-01-15 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:43:24] Production.INFO: ==11579== Releasing lock... [2025-01-15 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:43:24] Production.INFO: 50.75 MB #Memory Used# [2025-01-15 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:44:05 [end_date_ymd] => 2025-01-15 18:44:05 [RateCDR] => 1 ) [2025-01-15 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:44:05' and `end` < '2025-01-15 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:44:18] Production.INFO: count ==3028 [2025-01-15 18:44:18] Production.ERROR: pbx CDR StartTime 2025-01-15 15:44:05 - End Time 2025-01-15 18:44:05 [2025-01-15 18:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255530', 'tblTempUsageDetail_20' ) start [2025-01-15 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255530', 'tblTempUsageDetail_20' ) end [2025-01-15 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255530', 'tblTempVendorCDR_20' ) start [2025-01-15 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255530', 'tblTempVendorCDR_20' ) end [2025-01-15 18:44:19] Production.INFO: ProcessCDR(1,14255530,1,1,2) [2025-01-15 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255530', 'tblTempUsageDetail_20' ) start [2025-01-15 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255530', 'tblTempUsageDetail_20' ) end [2025-01-15 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:44:23] Production.INFO: ==11649== Releasing lock... [2025-01-15 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:44:23] Production.INFO: 50.5 MB #Memory Used# [2025-01-15 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:45:05 [end_date_ymd] => 2025-01-15 18:45:05 [RateCDR] => 1 ) [2025-01-15 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:45:05' and `end` < '2025-01-15 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:45:25] Production.INFO: count ==2992 [2025-01-15 18:45:25] Production.ERROR: pbx CDR StartTime 2025-01-15 15:45:05 - End Time 2025-01-15 18:45:05 [2025-01-15 18:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255535', 'tblTempUsageDetail_20' ) start [2025-01-15 18:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255535', 'tblTempUsageDetail_20' ) end [2025-01-15 18:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255535', 'tblTempVendorCDR_20' ) start [2025-01-15 18:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255535', 'tblTempVendorCDR_20' ) end [2025-01-15 18:45:25] Production.INFO: ProcessCDR(1,14255535,1,1,2) [2025-01-15 18:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255535', 'tblTempUsageDetail_20' ) start [2025-01-15 18:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255535', 'tblTempUsageDetail_20' ) end [2025-01-15 18:45:29] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:45:29] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:45:29] Production.INFO: ==11720== Releasing lock... [2025-01-15 18:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:45:29] Production.INFO: 50.25 MB #Memory Used# [2025-01-15 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:46:05 [end_date_ymd] => 2025-01-15 18:46:05 [RateCDR] => 1 ) [2025-01-15 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:46:05' and `end` < '2025-01-15 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:46:19] Production.INFO: count ==2952 [2025-01-15 18:46:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:46:05 - End Time 2025-01-15 18:46:05 [2025-01-15 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255540', 'tblTempUsageDetail_20' ) start [2025-01-15 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255540', 'tblTempUsageDetail_20' ) end [2025-01-15 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255540', 'tblTempVendorCDR_20' ) start [2025-01-15 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255540', 'tblTempVendorCDR_20' ) end [2025-01-15 18:46:19] Production.INFO: ProcessCDR(1,14255540,1,1,2) [2025-01-15 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255540', 'tblTempUsageDetail_20' ) start [2025-01-15 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255540', 'tblTempUsageDetail_20' ) end [2025-01-15 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:46:24] Production.INFO: ==11790== Releasing lock... [2025-01-15 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:46:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-15 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:47:05 [end_date_ymd] => 2025-01-15 18:47:05 [RateCDR] => 1 ) [2025-01-15 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:47:05' and `end` < '2025-01-15 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:47:22] Production.INFO: count ==2937 [2025-01-15 18:47:22] Production.ERROR: pbx CDR StartTime 2025-01-15 15:47:05 - End Time 2025-01-15 18:47:05 [2025-01-15 18:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255545', 'tblTempUsageDetail_20' ) start [2025-01-15 18:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255545', 'tblTempUsageDetail_20' ) end [2025-01-15 18:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255545', 'tblTempVendorCDR_20' ) start [2025-01-15 18:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255545', 'tblTempVendorCDR_20' ) end [2025-01-15 18:47:23] Production.INFO: ProcessCDR(1,14255545,1,1,2) [2025-01-15 18:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255545', 'tblTempUsageDetail_20' ) start [2025-01-15 18:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255545', 'tblTempUsageDetail_20' ) end [2025-01-15 18:47:27] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:47:27] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:47:27] Production.INFO: ==11861== Releasing lock... [2025-01-15 18:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:47:27] Production.INFO: 50.75 MB #Memory Used# [2025-01-15 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:48:05 [end_date_ymd] => 2025-01-15 18:48:05 [RateCDR] => 1 ) [2025-01-15 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:48:05' and `end` < '2025-01-15 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:48:20] Production.INFO: count ==2930 [2025-01-15 18:48:21] Production.ERROR: pbx CDR StartTime 2025-01-15 15:48:05 - End Time 2025-01-15 18:48:05 [2025-01-15 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255550', 'tblTempUsageDetail_20' ) start [2025-01-15 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255550', 'tblTempUsageDetail_20' ) end [2025-01-15 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255550', 'tblTempVendorCDR_20' ) start [2025-01-15 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255550', 'tblTempVendorCDR_20' ) end [2025-01-15 18:48:21] Production.INFO: ProcessCDR(1,14255550,1,1,2) [2025-01-15 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255550', 'tblTempUsageDetail_20' ) start [2025-01-15 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255550', 'tblTempUsageDetail_20' ) end [2025-01-15 18:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:48:26] Production.INFO: ==11932== Releasing lock... [2025-01-15 18:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:48:26] Production.INFO: 49.75 MB #Memory Used# [2025-01-15 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:49:05 [end_date_ymd] => 2025-01-15 18:49:05 [RateCDR] => 1 ) [2025-01-15 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:49:05' and `end` < '2025-01-15 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:49:18] Production.INFO: count ==2910 [2025-01-15 18:49:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:49:05 - End Time 2025-01-15 18:49:05 [2025-01-15 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255555', 'tblTempUsageDetail_20' ) start [2025-01-15 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255555', 'tblTempUsageDetail_20' ) end [2025-01-15 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255555', 'tblTempVendorCDR_20' ) start [2025-01-15 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255555', 'tblTempVendorCDR_20' ) end [2025-01-15 18:49:19] Production.INFO: ProcessCDR(1,14255555,1,1,2) [2025-01-15 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255555', 'tblTempUsageDetail_20' ) start [2025-01-15 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255555', 'tblTempUsageDetail_20' ) end [2025-01-15 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:49:24] Production.INFO: ==12008== Releasing lock... [2025-01-15 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:49:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-15 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:50:05 [end_date_ymd] => 2025-01-15 18:50:05 [RateCDR] => 1 ) [2025-01-15 18:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:50:05' and `end` < '2025-01-15 18:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:50:18] Production.INFO: count ==2896 [2025-01-15 18:50:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:50:05 - End Time 2025-01-15 18:50:05 [2025-01-15 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255561', 'tblTempUsageDetail_20' ) start [2025-01-15 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255561', 'tblTempUsageDetail_20' ) end [2025-01-15 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255561', 'tblTempVendorCDR_20' ) start [2025-01-15 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255561', 'tblTempVendorCDR_20' ) end [2025-01-15 18:50:19] Production.INFO: ProcessCDR(1,14255561,1,1,2) [2025-01-15 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255561', 'tblTempUsageDetail_20' ) start [2025-01-15 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255561', 'tblTempUsageDetail_20' ) end [2025-01-15 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:50:24] Production.INFO: ==12079== Releasing lock... [2025-01-15 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:50:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-15 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:51:05 [end_date_ymd] => 2025-01-15 18:51:05 [RateCDR] => 1 ) [2025-01-15 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:51:05' and `end` < '2025-01-15 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:51:18] Production.INFO: count ==2795 [2025-01-15 18:51:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:51:05 - End Time 2025-01-15 18:51:05 [2025-01-15 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255566', 'tblTempUsageDetail_20' ) start [2025-01-15 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255566', 'tblTempUsageDetail_20' ) end [2025-01-15 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255566', 'tblTempVendorCDR_20' ) start [2025-01-15 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255566', 'tblTempVendorCDR_20' ) end [2025-01-15 18:51:19] Production.INFO: ProcessCDR(1,14255566,1,1,2) [2025-01-15 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255566', 'tblTempUsageDetail_20' ) start [2025-01-15 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255566', 'tblTempUsageDetail_20' ) end [2025-01-15 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:51:24] Production.INFO: ==12154== Releasing lock... [2025-01-15 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:51:24] Production.INFO: 49 MB #Memory Used# [2025-01-15 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:52:05 [end_date_ymd] => 2025-01-15 18:52:05 [RateCDR] => 1 ) [2025-01-15 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:52:05' and `end` < '2025-01-15 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:52:19] Production.INFO: count ==2772 [2025-01-15 18:52:20] Production.ERROR: pbx CDR StartTime 2025-01-15 15:52:05 - End Time 2025-01-15 18:52:05 [2025-01-15 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255571', 'tblTempUsageDetail_20' ) start [2025-01-15 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255571', 'tblTempUsageDetail_20' ) end [2025-01-15 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255571', 'tblTempVendorCDR_20' ) start [2025-01-15 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255571', 'tblTempVendorCDR_20' ) end [2025-01-15 18:52:20] Production.INFO: ProcessCDR(1,14255571,1,1,2) [2025-01-15 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255571', 'tblTempUsageDetail_20' ) start [2025-01-15 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255571', 'tblTempUsageDetail_20' ) end [2025-01-15 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:52:25] Production.INFO: ==12225== Releasing lock... [2025-01-15 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:52:25] Production.INFO: 49 MB #Memory Used# [2025-01-15 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:53:05 [end_date_ymd] => 2025-01-15 18:53:05 [RateCDR] => 1 ) [2025-01-15 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:53:05' and `end` < '2025-01-15 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:53:17] Production.INFO: count ==2768 [2025-01-15 18:53:18] Production.ERROR: pbx CDR StartTime 2025-01-15 15:53:05 - End Time 2025-01-15 18:53:05 [2025-01-15 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255576', 'tblTempUsageDetail_20' ) start [2025-01-15 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255576', 'tblTempUsageDetail_20' ) end [2025-01-15 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255576', 'tblTempVendorCDR_20' ) start [2025-01-15 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255576', 'tblTempVendorCDR_20' ) end [2025-01-15 18:53:18] Production.INFO: ProcessCDR(1,14255576,1,1,2) [2025-01-15 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255576', 'tblTempUsageDetail_20' ) start [2025-01-15 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255576', 'tblTempUsageDetail_20' ) end [2025-01-15 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:53:23] Production.INFO: ==12294== Releasing lock... [2025-01-15 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:53:23] Production.INFO: 48.75 MB #Memory Used# [2025-01-15 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:54:05 [end_date_ymd] => 2025-01-15 18:54:05 [RateCDR] => 1 ) [2025-01-15 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:54:05' and `end` < '2025-01-15 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:54:18] Production.INFO: count ==2765 [2025-01-15 18:54:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:54:05 - End Time 2025-01-15 18:54:05 [2025-01-15 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255581', 'tblTempUsageDetail_20' ) start [2025-01-15 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255581', 'tblTempUsageDetail_20' ) end [2025-01-15 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255581', 'tblTempVendorCDR_20' ) start [2025-01-15 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255581', 'tblTempVendorCDR_20' ) end [2025-01-15 18:54:19] Production.INFO: ProcessCDR(1,14255581,1,1,2) [2025-01-15 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255581', 'tblTempUsageDetail_20' ) start [2025-01-15 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255581', 'tblTempUsageDetail_20' ) end [2025-01-15 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:54:24] Production.INFO: ==12363== Releasing lock... [2025-01-15 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:54:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-15 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:55:05 [end_date_ymd] => 2025-01-15 18:55:05 [RateCDR] => 1 ) [2025-01-15 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:55:05' and `end` < '2025-01-15 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:55:17] Production.INFO: count ==2768 [2025-01-15 18:55:18] Production.ERROR: pbx CDR StartTime 2025-01-15 15:55:05 - End Time 2025-01-15 18:55:05 [2025-01-15 18:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255586', 'tblTempUsageDetail_20' ) start [2025-01-15 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255586', 'tblTempUsageDetail_20' ) end [2025-01-15 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255586', 'tblTempVendorCDR_20' ) start [2025-01-15 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255586', 'tblTempVendorCDR_20' ) end [2025-01-15 18:55:18] Production.INFO: ProcessCDR(1,14255586,1,1,2) [2025-01-15 18:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255586', 'tblTempUsageDetail_20' ) start [2025-01-15 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255586', 'tblTempUsageDetail_20' ) end [2025-01-15 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:55:23] Production.INFO: ==12436== Releasing lock... [2025-01-15 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:55:23] Production.INFO: 48.75 MB #Memory Used# [2025-01-15 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:56:06 [end_date_ymd] => 2025-01-15 18:56:06 [RateCDR] => 1 ) [2025-01-15 18:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:56:06' and `end` < '2025-01-15 18:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:56:20] Production.INFO: count ==2764 [2025-01-15 18:56:21] Production.ERROR: pbx CDR StartTime 2025-01-15 15:56:06 - End Time 2025-01-15 18:56:06 [2025-01-15 18:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255591', 'tblTempUsageDetail_20' ) start [2025-01-15 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255591', 'tblTempUsageDetail_20' ) end [2025-01-15 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255591', 'tblTempVendorCDR_20' ) start [2025-01-15 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255591', 'tblTempVendorCDR_20' ) end [2025-01-15 18:56:21] Production.INFO: ProcessCDR(1,14255591,1,1,2) [2025-01-15 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255591', 'tblTempUsageDetail_20' ) start [2025-01-15 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255591', 'tblTempUsageDetail_20' ) end [2025-01-15 18:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:56:26] Production.INFO: ==12507== Releasing lock... [2025-01-15 18:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:56:26] Production.INFO: 48.75 MB #Memory Used# [2025-01-15 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:57:05 [end_date_ymd] => 2025-01-15 18:57:05 [RateCDR] => 1 ) [2025-01-15 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:57:05' and `end` < '2025-01-15 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:57:18] Production.INFO: count ==2753 [2025-01-15 18:57:18] Production.ERROR: pbx CDR StartTime 2025-01-15 15:57:05 - End Time 2025-01-15 18:57:05 [2025-01-15 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255596', 'tblTempUsageDetail_20' ) start [2025-01-15 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255596', 'tblTempUsageDetail_20' ) end [2025-01-15 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255596', 'tblTempVendorCDR_20' ) start [2025-01-15 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255596', 'tblTempVendorCDR_20' ) end [2025-01-15 18:57:18] Production.INFO: ProcessCDR(1,14255596,1,1,2) [2025-01-15 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255596', 'tblTempUsageDetail_20' ) start [2025-01-15 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255596', 'tblTempUsageDetail_20' ) end [2025-01-15 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:57:23] Production.INFO: ==12593== Releasing lock... [2025-01-15 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:57:23] Production.INFO: 48.75 MB #Memory Used# [2025-01-15 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:58:05 [end_date_ymd] => 2025-01-15 18:58:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 15:58:05' and `end` < '2025-01-15 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-01-15 18:58:18] Production.INFO: count ==2752 [2025-01-15 18:58:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:58:05 - End Time 2025-01-15 18:58:05 [2025-01-15 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255601', 'tblTempUsageDetail_20' ) start [2025-01-15 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255601', 'tblTempUsageDetail_20' ) end [2025-01-15 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255601', 'tblTempVendorCDR_20' ) start [2025-01-15 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255601', 'tblTempVendorCDR_20' ) end [2025-01-15 18:58:19] Production.INFO: ProcessCDR(1,14255601,1,1,2) [2025-01-15 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255601', 'tblTempUsageDetail_20' ) start [2025-01-15 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255601', 'tblTempUsageDetail_20' ) end [2025-01-15 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:58:24] Production.INFO: ==12721== Releasing lock... [2025-01-15 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:58:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-15 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 15:59:05 [end_date_ymd] => 2025-01-15 18:59:05 [RateCDR] => 1 ) [2025-01-15 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 15:59:05' and `end` < '2025-01-15 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 18:59:18] Production.INFO: count ==2730 [2025-01-15 18:59:19] Production.ERROR: pbx CDR StartTime 2025-01-15 15:59:05 - End Time 2025-01-15 18:59:05 [2025-01-15 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255606', 'tblTempUsageDetail_20' ) start [2025-01-15 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255606', 'tblTempUsageDetail_20' ) end [2025-01-15 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255606', 'tblTempVendorCDR_20' ) start [2025-01-15 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255606', 'tblTempVendorCDR_20' ) end [2025-01-15 18:59:19] Production.INFO: ProcessCDR(1,14255606,1,1,2) [2025-01-15 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255606', 'tblTempUsageDetail_20' ) start [2025-01-15 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255606', 'tblTempUsageDetail_20' ) end [2025-01-15 18:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 18:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 18:59:22] Production.INFO: ==12799== Releasing lock... [2025-01-15 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 18:59:22] Production.INFO: 48.5 MB #Memory Used# [2025-01-15 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:00:06 [end_date_ymd] => 2025-01-15 19:00:06 [RateCDR] => 1 ) [2025-01-15 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:00:06' and `end` < '2025-01-15 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:00:19] Production.INFO: count ==2717 [2025-01-15 19:00:20] Production.ERROR: pbx CDR StartTime 2025-01-15 16:00:06 - End Time 2025-01-15 19:00:06 [2025-01-15 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255612', 'tblTempUsageDetail_20' ) start [2025-01-15 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255612', 'tblTempUsageDetail_20' ) end [2025-01-15 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255612', 'tblTempVendorCDR_20' ) start [2025-01-15 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255612', 'tblTempVendorCDR_20' ) end [2025-01-15 19:00:20] Production.INFO: ProcessCDR(1,14255612,1,1,2) [2025-01-15 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255612', 'tblTempUsageDetail_20' ) start [2025-01-15 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255612', 'tblTempUsageDetail_20' ) end [2025-01-15 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:00:25] Production.INFO: ==12890== Releasing lock... [2025-01-15 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:00:25] Production.INFO: 48.5 MB #Memory Used# [2025-01-15 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:01:05 [end_date_ymd] => 2025-01-15 19:01:05 [RateCDR] => 1 ) [2025-01-15 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:01:05' and `end` < '2025-01-15 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:01:17] Production.INFO: count ==2624 [2025-01-15 19:01:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:01:05 - End Time 2025-01-15 19:01:05 [2025-01-15 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255617', 'tblTempUsageDetail_20' ) start [2025-01-15 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255617', 'tblTempUsageDetail_20' ) end [2025-01-15 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255617', 'tblTempVendorCDR_20' ) start [2025-01-15 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255617', 'tblTempVendorCDR_20' ) end [2025-01-15 19:01:18] Production.INFO: ProcessCDR(1,14255617,1,1,2) [2025-01-15 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255617', 'tblTempUsageDetail_20' ) start [2025-01-15 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255617', 'tblTempUsageDetail_20' ) end [2025-01-15 19:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:01:22] Production.INFO: ==13023== Releasing lock... [2025-01-15 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:01:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-15 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:02:05 [end_date_ymd] => 2025-01-15 19:02:05 [RateCDR] => 1 ) [2025-01-15 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:02:05' and `end` < '2025-01-15 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:02:18] Production.INFO: count ==2608 [2025-01-15 19:02:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:02:05 - End Time 2025-01-15 19:02:05 [2025-01-15 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255622', 'tblTempUsageDetail_20' ) start [2025-01-15 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255622', 'tblTempUsageDetail_20' ) end [2025-01-15 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255622', 'tblTempVendorCDR_20' ) start [2025-01-15 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255622', 'tblTempVendorCDR_20' ) end [2025-01-15 19:02:19] Production.INFO: ProcessCDR(1,14255622,1,1,2) [2025-01-15 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255622', 'tblTempUsageDetail_20' ) start [2025-01-15 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255622', 'tblTempUsageDetail_20' ) end [2025-01-15 19:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:02:22] Production.INFO: ==13159== Releasing lock... [2025-01-15 19:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:02:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-15 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:03:05 [end_date_ymd] => 2025-01-15 19:03:05 [RateCDR] => 1 ) [2025-01-15 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:03:05' and `end` < '2025-01-15 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:03:17] Production.INFO: count ==2592 [2025-01-15 19:03:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:03:05 - End Time 2025-01-15 19:03:05 [2025-01-15 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255627', 'tblTempUsageDetail_20' ) start [2025-01-15 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255627', 'tblTempUsageDetail_20' ) end [2025-01-15 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255627', 'tblTempVendorCDR_20' ) start [2025-01-15 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255627', 'tblTempVendorCDR_20' ) end [2025-01-15 19:03:18] Production.INFO: ProcessCDR(1,14255627,1,1,2) [2025-01-15 19:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255627', 'tblTempUsageDetail_20' ) start [2025-01-15 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255627', 'tblTempUsageDetail_20' ) end [2025-01-15 19:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:03:22] Production.INFO: ==13240== Releasing lock... [2025-01-15 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:03:22] Production.INFO: 47.5 MB #Memory Used# [2025-01-15 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:04:06 [end_date_ymd] => 2025-01-15 19:04:06 [RateCDR] => 1 ) [2025-01-15 19:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:04:06' and `end` < '2025-01-15 19:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:04:18] Production.INFO: count ==2582 [2025-01-15 19:04:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:04:06 - End Time 2025-01-15 19:04:06 [2025-01-15 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255632', 'tblTempUsageDetail_20' ) start [2025-01-15 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255632', 'tblTempUsageDetail_20' ) end [2025-01-15 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255632', 'tblTempVendorCDR_20' ) start [2025-01-15 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255632', 'tblTempVendorCDR_20' ) end [2025-01-15 19:04:19] Production.INFO: ProcessCDR(1,14255632,1,1,2) [2025-01-15 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255632', 'tblTempUsageDetail_20' ) start [2025-01-15 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255632', 'tblTempUsageDetail_20' ) end [2025-01-15 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:04:24] Production.INFO: ==13335== Releasing lock... [2025-01-15 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:04:24] Production.INFO: 47.5 MB #Memory Used# [2025-01-15 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:05:05 [end_date_ymd] => 2025-01-15 19:05:05 [RateCDR] => 1 ) [2025-01-15 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:05:05' and `end` < '2025-01-15 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:05:18] Production.INFO: count ==2553 [2025-01-15 19:05:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:05:05 - End Time 2025-01-15 19:05:05 [2025-01-15 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255637', 'tblTempUsageDetail_20' ) start [2025-01-15 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255637', 'tblTempUsageDetail_20' ) end [2025-01-15 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255637', 'tblTempVendorCDR_20' ) start [2025-01-15 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255637', 'tblTempVendorCDR_20' ) end [2025-01-15 19:05:19] Production.INFO: ProcessCDR(1,14255637,1,1,2) [2025-01-15 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255637', 'tblTempUsageDetail_20' ) start [2025-01-15 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255637', 'tblTempUsageDetail_20' ) end [2025-01-15 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:05:23] Production.INFO: ==13491== Releasing lock... [2025-01-15 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:05:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-15 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:06:05 [end_date_ymd] => 2025-01-15 19:06:05 [RateCDR] => 1 ) [2025-01-15 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:06:05' and `end` < '2025-01-15 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:06:18] Production.INFO: count ==2550 [2025-01-15 19:06:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:06:05 - End Time 2025-01-15 19:06:05 [2025-01-15 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255642', 'tblTempUsageDetail_20' ) start [2025-01-15 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255642', 'tblTempUsageDetail_20' ) end [2025-01-15 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255642', 'tblTempVendorCDR_20' ) start [2025-01-15 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255642', 'tblTempVendorCDR_20' ) end [2025-01-15 19:06:19] Production.INFO: ProcessCDR(1,14255642,1,1,2) [2025-01-15 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255642', 'tblTempUsageDetail_20' ) start [2025-01-15 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255642', 'tblTempUsageDetail_20' ) end [2025-01-15 19:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:06:22] Production.INFO: ==13581== Releasing lock... [2025-01-15 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:06:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-15 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:07:05 [end_date_ymd] => 2025-01-15 19:07:05 [RateCDR] => 1 ) [2025-01-15 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:07:05' and `end` < '2025-01-15 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:07:19] Production.INFO: count ==2534 [2025-01-15 19:07:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:07:05 - End Time 2025-01-15 19:07:05 [2025-01-15 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255647', 'tblTempUsageDetail_20' ) start [2025-01-15 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255647', 'tblTempUsageDetail_20' ) end [2025-01-15 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255647', 'tblTempVendorCDR_20' ) start [2025-01-15 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255647', 'tblTempVendorCDR_20' ) end [2025-01-15 19:07:19] Production.INFO: ProcessCDR(1,14255647,1,1,2) [2025-01-15 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255647', 'tblTempUsageDetail_20' ) start [2025-01-15 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255647', 'tblTempUsageDetail_20' ) end [2025-01-15 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:07:24] Production.INFO: ==13652== Releasing lock... [2025-01-15 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:07:24] Production.INFO: 47 MB #Memory Used# [2025-01-15 19:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:08:04 [end_date_ymd] => 2025-01-15 19:08:04 [RateCDR] => 1 ) [2025-01-15 19:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:08:04' and `end` < '2025-01-15 19:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:08:17] Production.INFO: count ==2514 [2025-01-15 19:08:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:08:04 - End Time 2025-01-15 19:08:04 [2025-01-15 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255652', 'tblTempUsageDetail_20' ) start [2025-01-15 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255652', 'tblTempUsageDetail_20' ) end [2025-01-15 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255652', 'tblTempVendorCDR_20' ) start [2025-01-15 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255652', 'tblTempVendorCDR_20' ) end [2025-01-15 19:08:18] Production.INFO: ProcessCDR(1,14255652,1,1,2) [2025-01-15 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255652', 'tblTempUsageDetail_20' ) start [2025-01-15 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255652', 'tblTempUsageDetail_20' ) end [2025-01-15 19:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:08:21] Production.INFO: ==13830== Releasing lock... [2025-01-15 19:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:08:21] Production.INFO: 47 MB #Memory Used# [2025-01-15 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:09:05 [end_date_ymd] => 2025-01-15 19:09:05 [RateCDR] => 1 ) [2025-01-15 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:09:05' and `end` < '2025-01-15 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:09:18] Production.INFO: count ==2489 [2025-01-15 19:09:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:09:05 - End Time 2025-01-15 19:09:05 [2025-01-15 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255657', 'tblTempUsageDetail_20' ) start [2025-01-15 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255657', 'tblTempUsageDetail_20' ) end [2025-01-15 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255657', 'tblTempVendorCDR_20' ) start [2025-01-15 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255657', 'tblTempVendorCDR_20' ) end [2025-01-15 19:09:19] Production.INFO: ProcessCDR(1,14255657,1,1,2) [2025-01-15 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255657', 'tblTempUsageDetail_20' ) start [2025-01-15 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255657', 'tblTempUsageDetail_20' ) end [2025-01-15 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:09:24] Production.INFO: ==13903== Releasing lock... [2025-01-15 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:09:24] Production.INFO: 46.75 MB #Memory Used# [2025-01-15 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:10:05 [end_date_ymd] => 2025-01-15 19:10:05 [RateCDR] => 1 ) [2025-01-15 19:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:10:05' and `end` < '2025-01-15 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:10:19] Production.INFO: count ==2481 [2025-01-15 19:10:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:10:05 - End Time 2025-01-15 19:10:05 [2025-01-15 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255663', 'tblTempUsageDetail_20' ) start [2025-01-15 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255663', 'tblTempUsageDetail_20' ) end [2025-01-15 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255663', 'tblTempVendorCDR_20' ) start [2025-01-15 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255663', 'tblTempVendorCDR_20' ) end [2025-01-15 19:10:19] Production.INFO: ProcessCDR(1,14255663,1,1,2) [2025-01-15 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255663', 'tblTempUsageDetail_20' ) start [2025-01-15 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255663', 'tblTempUsageDetail_20' ) end [2025-01-15 19:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:10:25] Production.INFO: ==14010== Releasing lock... [2025-01-15 19:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:10:25] Production.INFO: 46.75 MB #Memory Used# [2025-01-15 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:11:05 [end_date_ymd] => 2025-01-15 19:11:05 [RateCDR] => 1 ) [2025-01-15 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:11:05' and `end` < '2025-01-15 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:11:18] Production.INFO: count ==2453 [2025-01-15 19:11:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:11:05 - End Time 2025-01-15 19:11:05 [2025-01-15 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255668', 'tblTempUsageDetail_20' ) start [2025-01-15 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255668', 'tblTempUsageDetail_20' ) end [2025-01-15 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255668', 'tblTempVendorCDR_20' ) start [2025-01-15 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255668', 'tblTempVendorCDR_20' ) end [2025-01-15 19:11:19] Production.INFO: ProcessCDR(1,14255668,1,1,2) [2025-01-15 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255668', 'tblTempUsageDetail_20' ) start [2025-01-15 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255668', 'tblTempUsageDetail_20' ) end [2025-01-15 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:11:24] Production.INFO: ==14083== Releasing lock... [2025-01-15 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:11:24] Production.INFO: 46.5 MB #Memory Used# [2025-01-15 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:12:05 [end_date_ymd] => 2025-01-15 19:12:05 [RateCDR] => 1 ) [2025-01-15 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:12:05' and `end` < '2025-01-15 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:12:17] Production.INFO: count ==2437 [2025-01-15 19:12:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:12:05 - End Time 2025-01-15 19:12:05 [2025-01-15 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255673', 'tblTempUsageDetail_20' ) start [2025-01-15 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255673', 'tblTempUsageDetail_20' ) end [2025-01-15 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255673', 'tblTempVendorCDR_20' ) start [2025-01-15 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255673', 'tblTempVendorCDR_20' ) end [2025-01-15 19:12:18] Production.INFO: ProcessCDR(1,14255673,1,1,2) [2025-01-15 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255673', 'tblTempUsageDetail_20' ) start [2025-01-15 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255673', 'tblTempUsageDetail_20' ) end [2025-01-15 19:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:12:21] Production.INFO: ==14265== Releasing lock... [2025-01-15 19:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:12:21] Production.INFO: 46.25 MB #Memory Used# [2025-01-15 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:13:05 [end_date_ymd] => 2025-01-15 19:13:05 [RateCDR] => 1 ) [2025-01-15 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:13:05' and `end` < '2025-01-15 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:13:19] Production.INFO: count ==2421 [2025-01-15 19:13:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:13:05 - End Time 2025-01-15 19:13:05 [2025-01-15 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255678', 'tblTempUsageDetail_20' ) start [2025-01-15 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255678', 'tblTempUsageDetail_20' ) end [2025-01-15 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255678', 'tblTempVendorCDR_20' ) start [2025-01-15 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255678', 'tblTempVendorCDR_20' ) end [2025-01-15 19:13:19] Production.INFO: ProcessCDR(1,14255678,1,1,2) [2025-01-15 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255678', 'tblTempUsageDetail_20' ) start [2025-01-15 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255678', 'tblTempUsageDetail_20' ) end [2025-01-15 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:13:24] Production.INFO: ==14377== Releasing lock... [2025-01-15 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:13:24] Production.INFO: 46.5 MB #Memory Used# [2025-01-15 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:14:06 [end_date_ymd] => 2025-01-15 19:14:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 16:14:06' and `end` < '2025-01-15 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-01-15 19:14:19] Production.INFO: count ==2417 [2025-01-15 19:14:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:14:06 - End Time 2025-01-15 19:14:06 [2025-01-15 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255683', 'tblTempUsageDetail_20' ) start [2025-01-15 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255683', 'tblTempUsageDetail_20' ) end [2025-01-15 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255683', 'tblTempVendorCDR_20' ) start [2025-01-15 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255683', 'tblTempVendorCDR_20' ) end [2025-01-15 19:14:19] Production.INFO: ProcessCDR(1,14255683,1,1,2) [2025-01-15 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255683', 'tblTempUsageDetail_20' ) start [2025-01-15 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255683', 'tblTempUsageDetail_20' ) end [2025-01-15 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:14:24] Production.INFO: ==14446== Releasing lock... [2025-01-15 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:14:24] Production.INFO: 46.25 MB #Memory Used# [2025-01-15 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:15:05 [end_date_ymd] => 2025-01-15 19:15:05 [RateCDR] => 1 ) [2025-01-15 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:15:05' and `end` < '2025-01-15 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:15:17] Production.INFO: count ==2412 [2025-01-15 19:15:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:15:05 - End Time 2025-01-15 19:15:05 [2025-01-15 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255688', 'tblTempUsageDetail_20' ) start [2025-01-15 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255688', 'tblTempUsageDetail_20' ) end [2025-01-15 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255688', 'tblTempVendorCDR_20' ) start [2025-01-15 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255688', 'tblTempVendorCDR_20' ) end [2025-01-15 19:15:18] Production.INFO: ProcessCDR(1,14255688,1,1,2) [2025-01-15 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255688', 'tblTempUsageDetail_20' ) start [2025-01-15 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255688', 'tblTempUsageDetail_20' ) end [2025-01-15 19:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:15:21] Production.INFO: ==14594== Releasing lock... [2025-01-15 19:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:15:21] Production.INFO: 46.5 MB #Memory Used# [2025-01-15 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:16:05 [end_date_ymd] => 2025-01-15 19:16:05 [RateCDR] => 1 ) [2025-01-15 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:16:05' and `end` < '2025-01-15 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:16:18] Production.INFO: count ==2403 [2025-01-15 19:16:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:16:05 - End Time 2025-01-15 19:16:05 [2025-01-15 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255693', 'tblTempUsageDetail_20' ) start [2025-01-15 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255693', 'tblTempUsageDetail_20' ) end [2025-01-15 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255693', 'tblTempVendorCDR_20' ) start [2025-01-15 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255693', 'tblTempVendorCDR_20' ) end [2025-01-15 19:16:18] Production.INFO: ProcessCDR(1,14255693,1,1,2) [2025-01-15 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255693', 'tblTempUsageDetail_20' ) start [2025-01-15 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255693', 'tblTempUsageDetail_20' ) end [2025-01-15 19:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:16:22] Production.INFO: ==14667== Releasing lock... [2025-01-15 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:16:22] Production.INFO: 46 MB #Memory Used# [2025-01-15 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:17:05 [end_date_ymd] => 2025-01-15 19:17:05 [RateCDR] => 1 ) [2025-01-15 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:17:05' and `end` < '2025-01-15 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:17:18] Production.INFO: count ==2395 [2025-01-15 19:17:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:17:05 - End Time 2025-01-15 19:17:05 [2025-01-15 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255698', 'tblTempUsageDetail_20' ) start [2025-01-15 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255698', 'tblTempUsageDetail_20' ) end [2025-01-15 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255698', 'tblTempVendorCDR_20' ) start [2025-01-15 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255698', 'tblTempVendorCDR_20' ) end [2025-01-15 19:17:18] Production.INFO: ProcessCDR(1,14255698,1,1,2) [2025-01-15 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255698', 'tblTempUsageDetail_20' ) start [2025-01-15 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255698', 'tblTempUsageDetail_20' ) end [2025-01-15 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:17:24] Production.INFO: ==14740== Releasing lock... [2025-01-15 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:17:24] Production.INFO: 46 MB #Memory Used# [2025-01-15 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:18:05 [end_date_ymd] => 2025-01-15 19:18:05 [RateCDR] => 1 ) [2025-01-15 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:18:05' and `end` < '2025-01-15 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:18:18] Production.INFO: count ==2390 [2025-01-15 19:18:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:18:05 - End Time 2025-01-15 19:18:05 [2025-01-15 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255703', 'tblTempUsageDetail_20' ) start [2025-01-15 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255703', 'tblTempUsageDetail_20' ) end [2025-01-15 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255703', 'tblTempVendorCDR_20' ) start [2025-01-15 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255703', 'tblTempVendorCDR_20' ) end [2025-01-15 19:18:18] Production.INFO: ProcessCDR(1,14255703,1,1,2) [2025-01-15 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255703', 'tblTempUsageDetail_20' ) start [2025-01-15 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255703', 'tblTempUsageDetail_20' ) end [2025-01-15 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:18:24] Production.INFO: ==14809== Releasing lock... [2025-01-15 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:18:24] Production.INFO: 46 MB #Memory Used# [2025-01-15 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:19:05 [end_date_ymd] => 2025-01-15 19:19:05 [RateCDR] => 1 ) [2025-01-15 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:19:05' and `end` < '2025-01-15 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:19:20] Production.INFO: count ==2363 [2025-01-15 19:19:20] Production.ERROR: pbx CDR StartTime 2025-01-15 16:19:05 - End Time 2025-01-15 19:19:05 [2025-01-15 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255708', 'tblTempUsageDetail_20' ) start [2025-01-15 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255708', 'tblTempUsageDetail_20' ) end [2025-01-15 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255708', 'tblTempVendorCDR_20' ) start [2025-01-15 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255708', 'tblTempVendorCDR_20' ) end [2025-01-15 19:19:20] Production.INFO: ProcessCDR(1,14255708,1,1,2) [2025-01-15 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255708', 'tblTempUsageDetail_20' ) start [2025-01-15 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255708', 'tblTempUsageDetail_20' ) end [2025-01-15 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:19:24] Production.INFO: ==14880== Releasing lock... [2025-01-15 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:19:24] Production.INFO: 46 MB #Memory Used# [2025-01-15 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:20:06 [end_date_ymd] => 2025-01-15 19:20:06 [RateCDR] => 1 ) [2025-01-15 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:20:06' and `end` < '2025-01-15 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:20:19] Production.INFO: count ==2363 [2025-01-15 19:20:20] Production.ERROR: pbx CDR StartTime 2025-01-15 16:20:06 - End Time 2025-01-15 19:20:06 [2025-01-15 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255714', 'tblTempUsageDetail_20' ) start [2025-01-15 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255714', 'tblTempUsageDetail_20' ) end [2025-01-15 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255714', 'tblTempVendorCDR_20' ) start [2025-01-15 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255714', 'tblTempVendorCDR_20' ) end [2025-01-15 19:20:20] Production.INFO: ProcessCDR(1,14255714,1,1,2) [2025-01-15 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255714', 'tblTempUsageDetail_20' ) start [2025-01-15 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255714', 'tblTempUsageDetail_20' ) end [2025-01-15 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:20:25] Production.INFO: ==14952== Releasing lock... [2025-01-15 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:20:25] Production.INFO: 46.5 MB #Memory Used# [2025-01-15 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:21:05 [end_date_ymd] => 2025-01-15 19:21:05 [RateCDR] => 1 ) [2025-01-15 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:21:05' and `end` < '2025-01-15 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:21:18] Production.INFO: count ==2291 [2025-01-15 19:21:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:21:05 - End Time 2025-01-15 19:21:05 [2025-01-15 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255719', 'tblTempUsageDetail_20' ) start [2025-01-15 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255719', 'tblTempUsageDetail_20' ) end [2025-01-15 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255719', 'tblTempVendorCDR_20' ) start [2025-01-15 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255719', 'tblTempVendorCDR_20' ) end [2025-01-15 19:21:19] Production.INFO: ProcessCDR(1,14255719,1,1,2) [2025-01-15 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255719', 'tblTempUsageDetail_20' ) start [2025-01-15 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255719', 'tblTempUsageDetail_20' ) end [2025-01-15 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:21:22] Production.INFO: ==15025== Releasing lock... [2025-01-15 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:21:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-15 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:22:05 [end_date_ymd] => 2025-01-15 19:22:05 [RateCDR] => 1 ) [2025-01-15 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:22:05' and `end` < '2025-01-15 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:22:18] Production.INFO: count ==2274 [2025-01-15 19:22:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:22:05 - End Time 2025-01-15 19:22:05 [2025-01-15 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255724', 'tblTempUsageDetail_20' ) start [2025-01-15 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255724', 'tblTempUsageDetail_20' ) end [2025-01-15 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255724', 'tblTempVendorCDR_20' ) start [2025-01-15 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255724', 'tblTempVendorCDR_20' ) end [2025-01-15 19:22:18] Production.INFO: ProcessCDR(1,14255724,1,1,2) [2025-01-15 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255724', 'tblTempUsageDetail_20' ) start [2025-01-15 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255724', 'tblTempUsageDetail_20' ) end [2025-01-15 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:22:22] Production.INFO: ==15096== Releasing lock... [2025-01-15 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:22:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-15 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:23:05 [end_date_ymd] => 2025-01-15 19:23:05 [RateCDR] => 1 ) [2025-01-15 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:23:05' and `end` < '2025-01-15 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:23:17] Production.INFO: count ==2259 [2025-01-15 19:23:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:23:05 - End Time 2025-01-15 19:23:05 [2025-01-15 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255729', 'tblTempUsageDetail_20' ) start [2025-01-15 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255729', 'tblTempUsageDetail_20' ) end [2025-01-15 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255729', 'tblTempVendorCDR_20' ) start [2025-01-15 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255729', 'tblTempVendorCDR_20' ) end [2025-01-15 19:23:18] Production.INFO: ProcessCDR(1,14255729,1,1,2) [2025-01-15 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255729', 'tblTempUsageDetail_20' ) start [2025-01-15 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255729', 'tblTempUsageDetail_20' ) end [2025-01-15 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:23:23] Production.INFO: ==15167== Releasing lock... [2025-01-15 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:23:23] Production.INFO: 45 MB #Memory Used# [2025-01-15 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:24:05 [end_date_ymd] => 2025-01-15 19:24:05 [RateCDR] => 1 ) [2025-01-15 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:24:05' and `end` < '2025-01-15 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:24:18] Production.INFO: count ==2260 [2025-01-15 19:24:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:24:05 - End Time 2025-01-15 19:24:05 [2025-01-15 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255734', 'tblTempUsageDetail_20' ) start [2025-01-15 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255734', 'tblTempUsageDetail_20' ) end [2025-01-15 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255734', 'tblTempVendorCDR_20' ) start [2025-01-15 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255734', 'tblTempVendorCDR_20' ) end [2025-01-15 19:24:19] Production.INFO: ProcessCDR(1,14255734,1,1,2) [2025-01-15 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255734', 'tblTempUsageDetail_20' ) start [2025-01-15 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255734', 'tblTempUsageDetail_20' ) end [2025-01-15 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:24:23] Production.INFO: ==15238== Releasing lock... [2025-01-15 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:24:23] Production.INFO: 45 MB #Memory Used# [2025-01-15 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:25:05 [end_date_ymd] => 2025-01-15 19:25:05 [RateCDR] => 1 ) [2025-01-15 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:25:05' and `end` < '2025-01-15 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:25:18] Production.INFO: count ==2256 [2025-01-15 19:25:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:25:05 - End Time 2025-01-15 19:25:05 [2025-01-15 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255739', 'tblTempUsageDetail_20' ) start [2025-01-15 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255739', 'tblTempUsageDetail_20' ) end [2025-01-15 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255739', 'tblTempVendorCDR_20' ) start [2025-01-15 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255739', 'tblTempVendorCDR_20' ) end [2025-01-15 19:25:19] Production.INFO: ProcessCDR(1,14255739,1,1,2) [2025-01-15 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255739', 'tblTempUsageDetail_20' ) start [2025-01-15 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255739', 'tblTempUsageDetail_20' ) end [2025-01-15 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:25:23] Production.INFO: ==15308== Releasing lock... [2025-01-15 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:25:23] Production.INFO: 45 MB #Memory Used# [2025-01-15 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:26:05 [end_date_ymd] => 2025-01-15 19:26:05 [RateCDR] => 1 ) [2025-01-15 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:26:05' and `end` < '2025-01-15 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:26:17] Production.INFO: count ==2234 [2025-01-15 19:26:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:26:05 - End Time 2025-01-15 19:26:05 [2025-01-15 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255744', 'tblTempUsageDetail_20' ) start [2025-01-15 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255744', 'tblTempUsageDetail_20' ) end [2025-01-15 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255744', 'tblTempVendorCDR_20' ) start [2025-01-15 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255744', 'tblTempVendorCDR_20' ) end [2025-01-15 19:26:18] Production.INFO: ProcessCDR(1,14255744,1,1,2) [2025-01-15 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255744', 'tblTempUsageDetail_20' ) start [2025-01-15 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255744', 'tblTempUsageDetail_20' ) end [2025-01-15 19:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:26:21] Production.INFO: ==15378== Releasing lock... [2025-01-15 19:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:26:21] Production.INFO: 44.75 MB #Memory Used# [2025-01-15 19:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:27:04 [end_date_ymd] => 2025-01-15 19:27:04 [RateCDR] => 1 ) [2025-01-15 19:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:27:04' and `end` < '2025-01-15 19:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:27:17] Production.INFO: count ==2236 [2025-01-15 19:27:17] Production.ERROR: pbx CDR StartTime 2025-01-15 16:27:04 - End Time 2025-01-15 19:27:04 [2025-01-15 19:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255749', 'tblTempUsageDetail_20' ) start [2025-01-15 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255749', 'tblTempUsageDetail_20' ) end [2025-01-15 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255749', 'tblTempVendorCDR_20' ) start [2025-01-15 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255749', 'tblTempVendorCDR_20' ) end [2025-01-15 19:27:18] Production.INFO: ProcessCDR(1,14255749,1,1,2) [2025-01-15 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255749', 'tblTempUsageDetail_20' ) start [2025-01-15 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255749', 'tblTempUsageDetail_20' ) end [2025-01-15 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:27:22] Production.INFO: ==15447== Releasing lock... [2025-01-15 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:27:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-15 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:28:05 [end_date_ymd] => 2025-01-15 19:28:05 [RateCDR] => 1 ) [2025-01-15 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:28:05' and `end` < '2025-01-15 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:28:18] Production.INFO: count ==2234 [2025-01-15 19:28:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:28:05 - End Time 2025-01-15 19:28:05 [2025-01-15 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255754', 'tblTempUsageDetail_20' ) start [2025-01-15 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255754', 'tblTempUsageDetail_20' ) end [2025-01-15 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255754', 'tblTempVendorCDR_20' ) start [2025-01-15 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255754', 'tblTempVendorCDR_20' ) end [2025-01-15 19:28:18] Production.INFO: ProcessCDR(1,14255754,1,1,2) [2025-01-15 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255754', 'tblTempUsageDetail_20' ) start [2025-01-15 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255754', 'tblTempUsageDetail_20' ) end [2025-01-15 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:28:22] Production.INFO: ==15520== Releasing lock... [2025-01-15 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:28:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-15 19:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:29:04 [end_date_ymd] => 2025-01-15 19:29:04 [RateCDR] => 1 ) [2025-01-15 19:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:29:04' and `end` < '2025-01-15 19:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:29:17] Production.INFO: count ==2228 [2025-01-15 19:29:17] Production.ERROR: pbx CDR StartTime 2025-01-15 16:29:04 - End Time 2025-01-15 19:29:04 [2025-01-15 19:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255759', 'tblTempUsageDetail_20' ) start [2025-01-15 19:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255759', 'tblTempUsageDetail_20' ) end [2025-01-15 19:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255759', 'tblTempVendorCDR_20' ) start [2025-01-15 19:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255759', 'tblTempVendorCDR_20' ) end [2025-01-15 19:29:17] Production.INFO: ProcessCDR(1,14255759,1,1,2) [2025-01-15 19:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255759', 'tblTempUsageDetail_20' ) start [2025-01-15 19:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255759', 'tblTempUsageDetail_20' ) end [2025-01-15 19:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:29:20] Production.INFO: ==15630== Releasing lock... [2025-01-15 19:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:29:20] Production.INFO: 44.5 MB #Memory Used# [2025-01-15 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:30:05 [end_date_ymd] => 2025-01-15 19:30:05 [RateCDR] => 1 ) [2025-01-15 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:30:05' and `end` < '2025-01-15 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:30:18] Production.INFO: count ==2219 [2025-01-15 19:30:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:30:05 - End Time 2025-01-15 19:30:05 [2025-01-15 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255765', 'tblTempUsageDetail_20' ) start [2025-01-15 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255765', 'tblTempUsageDetail_20' ) end [2025-01-15 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255765', 'tblTempVendorCDR_20' ) start [2025-01-15 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255765', 'tblTempVendorCDR_20' ) end [2025-01-15 19:30:19] Production.INFO: ProcessCDR(1,14255765,1,1,2) [2025-01-15 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255765', 'tblTempUsageDetail_20' ) start [2025-01-15 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255765', 'tblTempUsageDetail_20' ) end [2025-01-15 19:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:30:22] Production.INFO: ==15707== Releasing lock... [2025-01-15 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:30:22] Production.INFO: 45 MB #Memory Used# [2025-01-15 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:31:05 [end_date_ymd] => 2025-01-15 19:31:05 [RateCDR] => 1 ) [2025-01-15 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:31:05' and `end` < '2025-01-15 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:31:18] Production.INFO: count ==2162 [2025-01-15 19:31:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:31:05 - End Time 2025-01-15 19:31:05 [2025-01-15 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255770', 'tblTempUsageDetail_20' ) start [2025-01-15 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255770', 'tblTempUsageDetail_20' ) end [2025-01-15 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255770', 'tblTempVendorCDR_20' ) start [2025-01-15 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255770', 'tblTempVendorCDR_20' ) end [2025-01-15 19:31:18] Production.INFO: ProcessCDR(1,14255770,1,1,2) [2025-01-15 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255770', 'tblTempUsageDetail_20' ) start [2025-01-15 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255770', 'tblTempUsageDetail_20' ) end [2025-01-15 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:31:22] Production.INFO: ==15783== Releasing lock... [2025-01-15 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:31:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-15 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:32:05 [end_date_ymd] => 2025-01-15 19:32:05 [RateCDR] => 1 ) [2025-01-15 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:32:05' and `end` < '2025-01-15 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:32:18] Production.INFO: count ==2154 [2025-01-15 19:32:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:32:05 - End Time 2025-01-15 19:32:05 [2025-01-15 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255775', 'tblTempUsageDetail_20' ) start [2025-01-15 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255775', 'tblTempUsageDetail_20' ) end [2025-01-15 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255775', 'tblTempVendorCDR_20' ) start [2025-01-15 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255775', 'tblTempVendorCDR_20' ) end [2025-01-15 19:32:19] Production.INFO: ProcessCDR(1,14255775,1,1,2) [2025-01-15 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255775', 'tblTempUsageDetail_20' ) start [2025-01-15 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255775', 'tblTempUsageDetail_20' ) end [2025-01-15 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:32:22] Production.INFO: ==15857== Releasing lock... [2025-01-15 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:32:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-15 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:33:05 [end_date_ymd] => 2025-01-15 19:33:05 [RateCDR] => 1 ) [2025-01-15 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:33:05' and `end` < '2025-01-15 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:33:18] Production.INFO: count ==2146 [2025-01-15 19:33:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:33:05 - End Time 2025-01-15 19:33:05 [2025-01-15 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255780', 'tblTempUsageDetail_20' ) start [2025-01-15 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255780', 'tblTempUsageDetail_20' ) end [2025-01-15 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255780', 'tblTempVendorCDR_20' ) start [2025-01-15 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255780', 'tblTempVendorCDR_20' ) end [2025-01-15 19:33:18] Production.INFO: ProcessCDR(1,14255780,1,1,2) [2025-01-15 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255780', 'tblTempUsageDetail_20' ) start [2025-01-15 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255780', 'tblTempUsageDetail_20' ) end [2025-01-15 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:33:22] Production.INFO: ==15930== Releasing lock... [2025-01-15 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:33:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-15 19:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:34:04 [end_date_ymd] => 2025-01-15 19:34:04 [RateCDR] => 1 ) [2025-01-15 19:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:34:04' and `end` < '2025-01-15 19:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:34:17] Production.INFO: count ==2136 [2025-01-15 19:34:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:34:04 - End Time 2025-01-15 19:34:04 [2025-01-15 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255785', 'tblTempUsageDetail_20' ) start [2025-01-15 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255785', 'tblTempUsageDetail_20' ) end [2025-01-15 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255785', 'tblTempVendorCDR_20' ) start [2025-01-15 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255785', 'tblTempVendorCDR_20' ) end [2025-01-15 19:34:18] Production.INFO: ProcessCDR(1,14255785,1,1,2) [2025-01-15 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255785', 'tblTempUsageDetail_20' ) start [2025-01-15 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255785', 'tblTempUsageDetail_20' ) end [2025-01-15 19:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:34:21] Production.INFO: ==16001== Releasing lock... [2025-01-15 19:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:34:21] Production.INFO: 44 MB #Memory Used# [2025-01-15 19:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:35:06 [end_date_ymd] => 2025-01-15 19:35:06 [RateCDR] => 1 ) [2025-01-15 19:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:35:06' and `end` < '2025-01-15 19:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:35:18] Production.INFO: count ==2125 [2025-01-15 19:35:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:35:06 - End Time 2025-01-15 19:35:06 [2025-01-15 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255790', 'tblTempUsageDetail_20' ) start [2025-01-15 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255790', 'tblTempUsageDetail_20' ) end [2025-01-15 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255790', 'tblTempVendorCDR_20' ) start [2025-01-15 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255790', 'tblTempVendorCDR_20' ) end [2025-01-15 19:35:19] Production.INFO: ProcessCDR(1,14255790,1,1,2) [2025-01-15 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255790', 'tblTempUsageDetail_20' ) start [2025-01-15 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255790', 'tblTempUsageDetail_20' ) end [2025-01-15 19:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:35:24] Production.INFO: ==16078== Releasing lock... [2025-01-15 19:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:35:24] Production.INFO: 43.75 MB #Memory Used# [2025-01-15 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:36:05 [end_date_ymd] => 2025-01-15 19:36:05 [RateCDR] => 1 ) [2025-01-15 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:36:05' and `end` < '2025-01-15 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:36:17] Production.INFO: count ==2103 [2025-01-15 19:36:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:36:05 - End Time 2025-01-15 19:36:05 [2025-01-15 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255795', 'tblTempUsageDetail_20' ) start [2025-01-15 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255795', 'tblTempUsageDetail_20' ) end [2025-01-15 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255795', 'tblTempVendorCDR_20' ) start [2025-01-15 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255795', 'tblTempVendorCDR_20' ) end [2025-01-15 19:36:18] Production.INFO: ProcessCDR(1,14255795,1,1,2) [2025-01-15 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255795', 'tblTempUsageDetail_20' ) start [2025-01-15 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255795', 'tblTempUsageDetail_20' ) end [2025-01-15 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:36:23] Production.INFO: ==16177== Releasing lock... [2025-01-15 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:36:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-15 19:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:37:06 [end_date_ymd] => 2025-01-15 19:37:06 [RateCDR] => 1 ) [2025-01-15 19:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:37:06' and `end` < '2025-01-15 19:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:37:19] Production.INFO: count ==2087 [2025-01-15 19:37:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:37:06 - End Time 2025-01-15 19:37:06 [2025-01-15 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255800', 'tblTempUsageDetail_20' ) start [2025-01-15 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255800', 'tblTempUsageDetail_20' ) end [2025-01-15 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255800', 'tblTempVendorCDR_20' ) start [2025-01-15 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255800', 'tblTempVendorCDR_20' ) end [2025-01-15 19:37:19] Production.INFO: ProcessCDR(1,14255800,1,1,2) [2025-01-15 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255800', 'tblTempUsageDetail_20' ) start [2025-01-15 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255800', 'tblTempUsageDetail_20' ) end [2025-01-15 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:37:23] Production.INFO: ==16277== Releasing lock... [2025-01-15 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:37:23] Production.INFO: 44 MB #Memory Used# [2025-01-15 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:38:05 [end_date_ymd] => 2025-01-15 19:38:05 [RateCDR] => 1 ) [2025-01-15 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:38:05' and `end` < '2025-01-15 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:38:17] Production.INFO: count ==2082 [2025-01-15 19:38:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:38:05 - End Time 2025-01-15 19:38:05 [2025-01-15 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255805', 'tblTempUsageDetail_20' ) start [2025-01-15 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255805', 'tblTempUsageDetail_20' ) end [2025-01-15 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255805', 'tblTempVendorCDR_20' ) start [2025-01-15 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255805', 'tblTempVendorCDR_20' ) end [2025-01-15 19:38:18] Production.INFO: ProcessCDR(1,14255805,1,1,2) [2025-01-15 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255805', 'tblTempUsageDetail_20' ) start [2025-01-15 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255805', 'tblTempUsageDetail_20' ) end [2025-01-15 19:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:38:21] Production.INFO: ==16376== Releasing lock... [2025-01-15 19:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:38:21] Production.INFO: 43.75 MB #Memory Used# [2025-01-15 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:39:05 [end_date_ymd] => 2025-01-15 19:39:05 [RateCDR] => 1 ) [2025-01-15 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:39:05' and `end` < '2025-01-15 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:39:17] Production.INFO: count ==2078 [2025-01-15 19:39:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:39:05 - End Time 2025-01-15 19:39:05 [2025-01-15 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255810', 'tblTempUsageDetail_20' ) start [2025-01-15 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255810', 'tblTempUsageDetail_20' ) end [2025-01-15 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255810', 'tblTempVendorCDR_20' ) start [2025-01-15 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255810', 'tblTempVendorCDR_20' ) end [2025-01-15 19:39:18] Production.INFO: ProcessCDR(1,14255810,1,1,2) [2025-01-15 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255810', 'tblTempUsageDetail_20' ) start [2025-01-15 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255810', 'tblTempUsageDetail_20' ) end [2025-01-15 19:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:39:21] Production.INFO: ==16476== Releasing lock... [2025-01-15 19:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:39:21] Production.INFO: 43.75 MB #Memory Used# [2025-01-15 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:40:06 [end_date_ymd] => 2025-01-15 19:40:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 16:40:06' and `end` < '2025-01-15 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-01-15 19:40:18] Production.INFO: count ==2066 [2025-01-15 19:40:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:40:06 - End Time 2025-01-15 19:40:06 [2025-01-15 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255816', 'tblTempUsageDetail_20' ) start [2025-01-15 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255816', 'tblTempUsageDetail_20' ) end [2025-01-15 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255816', 'tblTempVendorCDR_20' ) start [2025-01-15 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255816', 'tblTempVendorCDR_20' ) end [2025-01-15 19:40:19] Production.INFO: ProcessCDR(1,14255816,1,1,2) [2025-01-15 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255816', 'tblTempUsageDetail_20' ) start [2025-01-15 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255816', 'tblTempUsageDetail_20' ) end [2025-01-15 19:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:40:22] Production.INFO: ==16579== Releasing lock... [2025-01-15 19:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:40:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-15 19:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:41:06 [end_date_ymd] => 2025-01-15 19:41:06 [RateCDR] => 1 ) [2025-01-15 19:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:41:06' and `end` < '2025-01-15 19:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:41:18] Production.INFO: count ==2011 [2025-01-15 19:41:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:41:06 - End Time 2025-01-15 19:41:06 [2025-01-15 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255821', 'tblTempUsageDetail_20' ) start [2025-01-15 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255821', 'tblTempUsageDetail_20' ) end [2025-01-15 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255821', 'tblTempVendorCDR_20' ) start [2025-01-15 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255821', 'tblTempVendorCDR_20' ) end [2025-01-15 19:41:19] Production.INFO: ProcessCDR(1,14255821,1,1,2) [2025-01-15 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255821', 'tblTempUsageDetail_20' ) start [2025-01-15 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255821', 'tblTempUsageDetail_20' ) end [2025-01-15 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:41:23] Production.INFO: ==16683== Releasing lock... [2025-01-15 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:41:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-15 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:42:05 [end_date_ymd] => 2025-01-15 19:42:05 [RateCDR] => 1 ) [2025-01-15 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:42:05' and `end` < '2025-01-15 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:42:17] Production.INFO: count ==1998 [2025-01-15 19:42:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:42:05 - End Time 2025-01-15 19:42:05 [2025-01-15 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255826', 'tblTempUsageDetail_20' ) start [2025-01-15 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255826', 'tblTempUsageDetail_20' ) end [2025-01-15 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255826', 'tblTempVendorCDR_20' ) start [2025-01-15 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255826', 'tblTempVendorCDR_20' ) end [2025-01-15 19:42:18] Production.INFO: ProcessCDR(1,14255826,1,1,2) [2025-01-15 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255826', 'tblTempUsageDetail_20' ) start [2025-01-15 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255826', 'tblTempUsageDetail_20' ) end [2025-01-15 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:42:23] Production.INFO: ==16783== Releasing lock... [2025-01-15 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:42:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-15 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:43:05 [end_date_ymd] => 2025-01-15 19:43:05 [RateCDR] => 1 ) [2025-01-15 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:43:05' and `end` < '2025-01-15 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:43:18] Production.INFO: count ==1986 [2025-01-15 19:43:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:43:05 - End Time 2025-01-15 19:43:05 [2025-01-15 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255831', 'tblTempUsageDetail_20' ) start [2025-01-15 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255831', 'tblTempUsageDetail_20' ) end [2025-01-15 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255831', 'tblTempVendorCDR_20' ) start [2025-01-15 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255831', 'tblTempVendorCDR_20' ) end [2025-01-15 19:43:18] Production.INFO: ProcessCDR(1,14255831,1,1,2) [2025-01-15 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255831', 'tblTempUsageDetail_20' ) start [2025-01-15 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255831', 'tblTempUsageDetail_20' ) end [2025-01-15 19:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:43:21] Production.INFO: ==16888== Releasing lock... [2025-01-15 19:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:43:21] Production.INFO: 43 MB #Memory Used# [2025-01-15 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:44:05 [end_date_ymd] => 2025-01-15 19:44:05 [RateCDR] => 1 ) [2025-01-15 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:44:05' and `end` < '2025-01-15 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:44:18] Production.INFO: count ==1972 [2025-01-15 19:44:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:44:05 - End Time 2025-01-15 19:44:05 [2025-01-15 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255836', 'tblTempUsageDetail_20' ) start [2025-01-15 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255836', 'tblTempUsageDetail_20' ) end [2025-01-15 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255836', 'tblTempVendorCDR_20' ) start [2025-01-15 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255836', 'tblTempVendorCDR_20' ) end [2025-01-15 19:44:18] Production.INFO: ProcessCDR(1,14255836,1,1,2) [2025-01-15 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255836', 'tblTempUsageDetail_20' ) start [2025-01-15 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255836', 'tblTempUsageDetail_20' ) end [2025-01-15 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:44:23] Production.INFO: ==17031== Releasing lock... [2025-01-15 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:44:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-15 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:45:05 [end_date_ymd] => 2025-01-15 19:45:05 [RateCDR] => 1 ) [2025-01-15 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:45:05' and `end` < '2025-01-15 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:45:18] Production.INFO: count ==1969 [2025-01-15 19:45:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:45:05 - End Time 2025-01-15 19:45:05 [2025-01-15 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255841', 'tblTempUsageDetail_20' ) start [2025-01-15 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255841', 'tblTempUsageDetail_20' ) end [2025-01-15 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255841', 'tblTempVendorCDR_20' ) start [2025-01-15 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255841', 'tblTempVendorCDR_20' ) end [2025-01-15 19:45:18] Production.INFO: ProcessCDR(1,14255841,1,1,2) [2025-01-15 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255841', 'tblTempUsageDetail_20' ) start [2025-01-15 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255841', 'tblTempUsageDetail_20' ) end [2025-01-15 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:45:23] Production.INFO: ==17134== Releasing lock... [2025-01-15 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:45:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-15 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:46:05 [end_date_ymd] => 2025-01-15 19:46:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 16:46:05' and `end` < '2025-01-15 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-01-15 19:46:18] Production.INFO: count ==1949 [2025-01-15 19:46:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:46:05 - End Time 2025-01-15 19:46:05 [2025-01-15 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255846', 'tblTempUsageDetail_20' ) start [2025-01-15 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255846', 'tblTempUsageDetail_20' ) end [2025-01-15 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255846', 'tblTempVendorCDR_20' ) start [2025-01-15 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255846', 'tblTempVendorCDR_20' ) end [2025-01-15 19:46:18] Production.INFO: ProcessCDR(1,14255846,1,1,2) [2025-01-15 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255846', 'tblTempUsageDetail_20' ) start [2025-01-15 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255846', 'tblTempUsageDetail_20' ) end [2025-01-15 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:46:22] Production.INFO: ==17235== Releasing lock... [2025-01-15 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:46:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-15 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:47:05 [end_date_ymd] => 2025-01-15 19:47:05 [RateCDR] => 1 ) [2025-01-15 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:47:05' and `end` < '2025-01-15 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:47:18] Production.INFO: count ==1943 [2025-01-15 19:47:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:47:05 - End Time 2025-01-15 19:47:05 [2025-01-15 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255851', 'tblTempUsageDetail_20' ) start [2025-01-15 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255851', 'tblTempUsageDetail_20' ) end [2025-01-15 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255851', 'tblTempVendorCDR_20' ) start [2025-01-15 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255851', 'tblTempVendorCDR_20' ) end [2025-01-15 19:47:18] Production.INFO: ProcessCDR(1,14255851,1,1,2) [2025-01-15 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255851', 'tblTempUsageDetail_20' ) start [2025-01-15 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255851', 'tblTempUsageDetail_20' ) end [2025-01-15 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:47:23] Production.INFO: ==17336== Releasing lock... [2025-01-15 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:47:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-15 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:48:05 [end_date_ymd] => 2025-01-15 19:48:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 16:48:05' and `end` < '2025-01-15 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-01-15 19:48:18] Production.INFO: count ==1943 [2025-01-15 19:48:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:48:05 - End Time 2025-01-15 19:48:05 [2025-01-15 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255856', 'tblTempUsageDetail_20' ) start [2025-01-15 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255856', 'tblTempUsageDetail_20' ) end [2025-01-15 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255856', 'tblTempVendorCDR_20' ) start [2025-01-15 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255856', 'tblTempVendorCDR_20' ) end [2025-01-15 19:48:18] Production.INFO: ProcessCDR(1,14255856,1,1,2) [2025-01-15 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255856', 'tblTempUsageDetail_20' ) start [2025-01-15 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255856', 'tblTempUsageDetail_20' ) end [2025-01-15 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:48:22] Production.INFO: ==17439== Releasing lock... [2025-01-15 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:48:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-15 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:49:05 [end_date_ymd] => 2025-01-15 19:49:05 [RateCDR] => 1 ) [2025-01-15 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:49:05' and `end` < '2025-01-15 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:49:17] Production.INFO: count ==1941 [2025-01-15 19:49:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:49:05 - End Time 2025-01-15 19:49:05 [2025-01-15 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255861', 'tblTempUsageDetail_20' ) start [2025-01-15 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255861', 'tblTempUsageDetail_20' ) end [2025-01-15 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255861', 'tblTempVendorCDR_20' ) start [2025-01-15 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255861', 'tblTempVendorCDR_20' ) end [2025-01-15 19:49:18] Production.INFO: ProcessCDR(1,14255861,1,1,2) [2025-01-15 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255861', 'tblTempUsageDetail_20' ) start [2025-01-15 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255861', 'tblTempUsageDetail_20' ) end [2025-01-15 19:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:49:21] Production.INFO: ==17537== Releasing lock... [2025-01-15 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:49:21] Production.INFO: 42.25 MB #Memory Used# [2025-01-15 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:50:05 [end_date_ymd] => 2025-01-15 19:50:05 [RateCDR] => 1 ) [2025-01-15 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:50:05' and `end` < '2025-01-15 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:50:18] Production.INFO: count ==1933 [2025-01-15 19:50:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:50:05 - End Time 2025-01-15 19:50:05 [2025-01-15 19:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255867', 'tblTempUsageDetail_20' ) start [2025-01-15 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255867', 'tblTempUsageDetail_20' ) end [2025-01-15 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255867', 'tblTempVendorCDR_20' ) start [2025-01-15 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255867', 'tblTempVendorCDR_20' ) end [2025-01-15 19:50:18] Production.INFO: ProcessCDR(1,14255867,1,1,2) [2025-01-15 19:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255867', 'tblTempUsageDetail_20' ) start [2025-01-15 19:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255867', 'tblTempUsageDetail_20' ) end [2025-01-15 19:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:50:21] Production.INFO: ==17640== Releasing lock... [2025-01-15 19:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:50:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-15 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:51:05 [end_date_ymd] => 2025-01-15 19:51:05 [RateCDR] => 1 ) [2025-01-15 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:51:05' and `end` < '2025-01-15 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:51:18] Production.INFO: count ==1884 [2025-01-15 19:51:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:51:05 - End Time 2025-01-15 19:51:05 [2025-01-15 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255872', 'tblTempUsageDetail_20' ) start [2025-01-15 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255872', 'tblTempUsageDetail_20' ) end [2025-01-15 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255872', 'tblTempVendorCDR_20' ) start [2025-01-15 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255872', 'tblTempVendorCDR_20' ) end [2025-01-15 19:51:18] Production.INFO: ProcessCDR(1,14255872,1,1,2) [2025-01-15 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255872', 'tblTempUsageDetail_20' ) start [2025-01-15 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255872', 'tblTempUsageDetail_20' ) end [2025-01-15 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:51:22] Production.INFO: ==17744== Releasing lock... [2025-01-15 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:51:22] Production.INFO: 42 MB #Memory Used# [2025-01-15 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:52:05 [end_date_ymd] => 2025-01-15 19:52:05 [RateCDR] => 1 ) [2025-01-15 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:52:05' and `end` < '2025-01-15 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:52:18] Production.INFO: count ==1859 [2025-01-15 19:52:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:52:05 - End Time 2025-01-15 19:52:05 [2025-01-15 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255877', 'tblTempUsageDetail_20' ) start [2025-01-15 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255877', 'tblTempUsageDetail_20' ) end [2025-01-15 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255877', 'tblTempVendorCDR_20' ) start [2025-01-15 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255877', 'tblTempVendorCDR_20' ) end [2025-01-15 19:52:18] Production.INFO: ProcessCDR(1,14255877,1,1,2) [2025-01-15 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255877', 'tblTempUsageDetail_20' ) start [2025-01-15 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255877', 'tblTempUsageDetail_20' ) end [2025-01-15 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:52:22] Production.INFO: ==17828== Releasing lock... [2025-01-15 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:52:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-15 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:53:05 [end_date_ymd] => 2025-01-15 19:53:05 [RateCDR] => 1 ) [2025-01-15 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:53:05' and `end` < '2025-01-15 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:53:18] Production.INFO: count ==1846 [2025-01-15 19:53:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:53:05 - End Time 2025-01-15 19:53:05 [2025-01-15 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255882', 'tblTempUsageDetail_20' ) start [2025-01-15 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255882', 'tblTempUsageDetail_20' ) end [2025-01-15 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255882', 'tblTempVendorCDR_20' ) start [2025-01-15 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255882', 'tblTempVendorCDR_20' ) end [2025-01-15 19:53:18] Production.INFO: ProcessCDR(1,14255882,1,1,2) [2025-01-15 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255882', 'tblTempUsageDetail_20' ) start [2025-01-15 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255882', 'tblTempUsageDetail_20' ) end [2025-01-15 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:53:22] Production.INFO: ==17899== Releasing lock... [2025-01-15 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:53:22] Production.INFO: 42 MB #Memory Used# [2025-01-15 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:54:05 [end_date_ymd] => 2025-01-15 19:54:05 [RateCDR] => 1 ) [2025-01-15 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:54:05' and `end` < '2025-01-15 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:54:19] Production.INFO: count ==1845 [2025-01-15 19:54:20] Production.ERROR: pbx CDR StartTime 2025-01-15 16:54:05 - End Time 2025-01-15 19:54:05 [2025-01-15 19:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255887', 'tblTempUsageDetail_20' ) start [2025-01-15 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255887', 'tblTempUsageDetail_20' ) end [2025-01-15 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255887', 'tblTempVendorCDR_20' ) start [2025-01-15 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255887', 'tblTempVendorCDR_20' ) end [2025-01-15 19:54:20] Production.INFO: ProcessCDR(1,14255887,1,1,2) [2025-01-15 19:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255887', 'tblTempUsageDetail_20' ) start [2025-01-15 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255887', 'tblTempUsageDetail_20' ) end [2025-01-15 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:54:23] Production.INFO: ==17972== Releasing lock... [2025-01-15 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:54:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-15 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:55:05 [end_date_ymd] => 2025-01-15 19:55:05 [RateCDR] => 1 ) [2025-01-15 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:55:05' and `end` < '2025-01-15 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:55:18] Production.INFO: count ==1857 [2025-01-15 19:55:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:55:05 - End Time 2025-01-15 19:55:05 [2025-01-15 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255892', 'tblTempUsageDetail_20' ) start [2025-01-15 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255892', 'tblTempUsageDetail_20' ) end [2025-01-15 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255892', 'tblTempVendorCDR_20' ) start [2025-01-15 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255892', 'tblTempVendorCDR_20' ) end [2025-01-15 19:55:18] Production.INFO: ProcessCDR(1,14255892,1,1,2) [2025-01-15 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255892', 'tblTempUsageDetail_20' ) start [2025-01-15 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255892', 'tblTempUsageDetail_20' ) end [2025-01-15 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:55:22] Production.INFO: ==18042== Releasing lock... [2025-01-15 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:55:22] Production.INFO: 42 MB #Memory Used# [2025-01-15 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:56:05 [end_date_ymd] => 2025-01-15 19:56:05 [RateCDR] => 1 ) [2025-01-15 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:56:05' and `end` < '2025-01-15 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:56:18] Production.INFO: count ==1893 [2025-01-15 19:56:19] Production.ERROR: pbx CDR StartTime 2025-01-15 16:56:05 - End Time 2025-01-15 19:56:05 [2025-01-15 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255897', 'tblTempUsageDetail_20' ) start [2025-01-15 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255897', 'tblTempUsageDetail_20' ) end [2025-01-15 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255897', 'tblTempVendorCDR_20' ) start [2025-01-15 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255897', 'tblTempVendorCDR_20' ) end [2025-01-15 19:56:19] Production.INFO: ProcessCDR(1,14255897,1,1,2) [2025-01-15 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255897', 'tblTempUsageDetail_20' ) start [2025-01-15 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255897', 'tblTempUsageDetail_20' ) end [2025-01-15 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:56:22] Production.INFO: ==18111== Releasing lock... [2025-01-15 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:56:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-15 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:57:05 [end_date_ymd] => 2025-01-15 19:57:05 [RateCDR] => 1 ) [2025-01-15 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:57:05' and `end` < '2025-01-15 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:57:18] Production.INFO: count ==1926 [2025-01-15 19:57:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:57:05 - End Time 2025-01-15 19:57:05 [2025-01-15 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255902', 'tblTempUsageDetail_20' ) start [2025-01-15 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255902', 'tblTempUsageDetail_20' ) end [2025-01-15 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255902', 'tblTempVendorCDR_20' ) start [2025-01-15 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255902', 'tblTempVendorCDR_20' ) end [2025-01-15 19:57:18] Production.INFO: ProcessCDR(1,14255902,1,1,2) [2025-01-15 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255902', 'tblTempUsageDetail_20' ) start [2025-01-15 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255902', 'tblTempUsageDetail_20' ) end [2025-01-15 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:57:21] Production.INFO: ==18181== Releasing lock... [2025-01-15 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:57:21] Production.INFO: 42.25 MB #Memory Used# [2025-01-15 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:58:05 [end_date_ymd] => 2025-01-15 19:58:05 [RateCDR] => 1 ) [2025-01-15 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:58:05' and `end` < '2025-01-15 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:58:20] Production.INFO: count ==1971 [2025-01-15 19:58:20] Production.ERROR: pbx CDR StartTime 2025-01-15 16:58:05 - End Time 2025-01-15 19:58:05 [2025-01-15 19:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255907', 'tblTempUsageDetail_20' ) start [2025-01-15 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255907', 'tblTempUsageDetail_20' ) end [2025-01-15 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255907', 'tblTempVendorCDR_20' ) start [2025-01-15 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255907', 'tblTempVendorCDR_20' ) end [2025-01-15 19:58:20] Production.INFO: ProcessCDR(1,14255907,1,1,2) [2025-01-15 19:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255907', 'tblTempUsageDetail_20' ) start [2025-01-15 19:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255907', 'tblTempUsageDetail_20' ) end [2025-01-15 19:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:58:25] Production.INFO: ==18256== Releasing lock... [2025-01-15 19:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:58:25] Production.INFO: 43 MB #Memory Used# [2025-01-15 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 16:59:05 [end_date_ymd] => 2025-01-15 19:59:05 [RateCDR] => 1 ) [2025-01-15 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 16:59:05' and `end` < '2025-01-15 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 19:59:18] Production.INFO: count ==1998 [2025-01-15 19:59:18] Production.ERROR: pbx CDR StartTime 2025-01-15 16:59:05 - End Time 2025-01-15 19:59:05 [2025-01-15 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255912', 'tblTempUsageDetail_20' ) start [2025-01-15 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255912', 'tblTempUsageDetail_20' ) end [2025-01-15 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255912', 'tblTempVendorCDR_20' ) start [2025-01-15 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255912', 'tblTempVendorCDR_20' ) end [2025-01-15 19:59:18] Production.INFO: ProcessCDR(1,14255912,1,1,2) [2025-01-15 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255912', 'tblTempUsageDetail_20' ) start [2025-01-15 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255912', 'tblTempUsageDetail_20' ) end [2025-01-15 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 19:59:22] Production.INFO: ==18328== Releasing lock... [2025-01-15 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 19:59:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-15 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:00:05 [end_date_ymd] => 2025-01-15 20:00:05 [RateCDR] => 1 ) [2025-01-15 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:00:05' and `end` < '2025-01-15 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:00:19] Production.INFO: count ==2033 [2025-01-15 20:00:20] Production.ERROR: pbx CDR StartTime 2025-01-15 17:00:05 - End Time 2025-01-15 20:00:05 [2025-01-15 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255918', 'tblTempUsageDetail_20' ) start [2025-01-15 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255918', 'tblTempUsageDetail_20' ) end [2025-01-15 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255918', 'tblTempVendorCDR_20' ) start [2025-01-15 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255918', 'tblTempVendorCDR_20' ) end [2025-01-15 20:00:20] Production.INFO: ProcessCDR(1,14255918,1,1,2) [2025-01-15 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255918', 'tblTempUsageDetail_20' ) start [2025-01-15 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255918', 'tblTempUsageDetail_20' ) end [2025-01-15 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:00:23] Production.INFO: ==18439== Releasing lock... [2025-01-15 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:00:23] Production.INFO: 43 MB #Memory Used# [2025-01-15 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:01:05 [end_date_ymd] => 2025-01-15 20:01:05 [RateCDR] => 1 ) [2025-01-15 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:01:05' and `end` < '2025-01-15 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:01:18] Production.INFO: count ==2035 [2025-01-15 20:01:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:01:05 - End Time 2025-01-15 20:01:05 [2025-01-15 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255923', 'tblTempUsageDetail_20' ) start [2025-01-15 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255923', 'tblTempUsageDetail_20' ) end [2025-01-15 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255923', 'tblTempVendorCDR_20' ) start [2025-01-15 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255923', 'tblTempVendorCDR_20' ) end [2025-01-15 20:01:19] Production.INFO: ProcessCDR(1,14255923,1,1,2) [2025-01-15 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255923', 'tblTempUsageDetail_20' ) start [2025-01-15 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255923', 'tblTempUsageDetail_20' ) end [2025-01-15 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:01:22] Production.INFO: ==18562== Releasing lock... [2025-01-15 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:01:22] Production.INFO: 43 MB #Memory Used# [2025-01-15 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:02:05 [end_date_ymd] => 2025-01-15 20:02:05 [RateCDR] => 1 ) [2025-01-15 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:02:05' and `end` < '2025-01-15 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:02:17] Production.INFO: count ==2321 [2025-01-15 20:02:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:02:05 - End Time 2025-01-15 20:02:05 [2025-01-15 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255928', 'tblTempUsageDetail_20' ) start [2025-01-15 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255928', 'tblTempUsageDetail_20' ) end [2025-01-15 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255928', 'tblTempVendorCDR_20' ) start [2025-01-15 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255928', 'tblTempVendorCDR_20' ) end [2025-01-15 20:02:18] Production.INFO: ProcessCDR(1,14255928,1,1,2) [2025-01-15 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255928', 'tblTempUsageDetail_20' ) start [2025-01-15 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255928', 'tblTempUsageDetail_20' ) end [2025-01-15 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:02:24] Production.INFO: ==18633== Releasing lock... [2025-01-15 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:02:24] Production.INFO: 45.5 MB #Memory Used# [2025-01-15 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:03:05 [end_date_ymd] => 2025-01-15 20:03:05 [RateCDR] => 1 ) [2025-01-15 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:03:05' and `end` < '2025-01-15 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:03:18] Production.INFO: count ==2319 [2025-01-15 20:03:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:03:05 - End Time 2025-01-15 20:03:05 [2025-01-15 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255933', 'tblTempUsageDetail_20' ) start [2025-01-15 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255933', 'tblTempUsageDetail_20' ) end [2025-01-15 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255933', 'tblTempVendorCDR_20' ) start [2025-01-15 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255933', 'tblTempVendorCDR_20' ) end [2025-01-15 20:03:19] Production.INFO: ProcessCDR(1,14255933,1,1,2) [2025-01-15 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255933', 'tblTempUsageDetail_20' ) start [2025-01-15 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255933', 'tblTempUsageDetail_20' ) end [2025-01-15 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:03:22] Production.INFO: ==18704== Releasing lock... [2025-01-15 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:03:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-15 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:04:05 [end_date_ymd] => 2025-01-15 20:04:05 [RateCDR] => 1 ) [2025-01-15 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:04:05' and `end` < '2025-01-15 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:04:17] Production.INFO: count ==2317 [2025-01-15 20:04:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:04:05 - End Time 2025-01-15 20:04:05 [2025-01-15 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255938', 'tblTempUsageDetail_20' ) start [2025-01-15 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255938', 'tblTempUsageDetail_20' ) end [2025-01-15 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255938', 'tblTempVendorCDR_20' ) start [2025-01-15 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255938', 'tblTempVendorCDR_20' ) end [2025-01-15 20:04:18] Production.INFO: ProcessCDR(1,14255938,1,1,2) [2025-01-15 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255938', 'tblTempUsageDetail_20' ) start [2025-01-15 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255938', 'tblTempUsageDetail_20' ) end [2025-01-15 20:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:04:21] Production.INFO: ==18774== Releasing lock... [2025-01-15 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:04:21] Production.INFO: 45.5 MB #Memory Used# [2025-01-15 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:05:05 [end_date_ymd] => 2025-01-15 20:05:05 [RateCDR] => 1 ) [2025-01-15 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:05:05' and `end` < '2025-01-15 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:05:17] Production.INFO: count ==2315 [2025-01-15 20:05:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:05:05 - End Time 2025-01-15 20:05:05 [2025-01-15 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255943', 'tblTempUsageDetail_20' ) start [2025-01-15 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255943', 'tblTempUsageDetail_20' ) end [2025-01-15 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255943', 'tblTempVendorCDR_20' ) start [2025-01-15 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255943', 'tblTempVendorCDR_20' ) end [2025-01-15 20:05:18] Production.INFO: ProcessCDR(1,14255943,1,1,2) [2025-01-15 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255943', 'tblTempUsageDetail_20' ) start [2025-01-15 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255943', 'tblTempUsageDetail_20' ) end [2025-01-15 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:05:21] Production.INFO: ==18845== Releasing lock... [2025-01-15 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:05:21] Production.INFO: 45.5 MB #Memory Used# [2025-01-15 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:06:05 [end_date_ymd] => 2025-01-15 20:06:05 [RateCDR] => 1 ) [2025-01-15 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:06:05' and `end` < '2025-01-15 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:06:18] Production.INFO: count ==2308 [2025-01-15 20:06:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:06:05 - End Time 2025-01-15 20:06:05 [2025-01-15 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255948', 'tblTempUsageDetail_20' ) start [2025-01-15 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255948', 'tblTempUsageDetail_20' ) end [2025-01-15 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255948', 'tblTempVendorCDR_20' ) start [2025-01-15 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255948', 'tblTempVendorCDR_20' ) end [2025-01-15 20:06:18] Production.INFO: ProcessCDR(1,14255948,1,1,2) [2025-01-15 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255948', 'tblTempUsageDetail_20' ) start [2025-01-15 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255948', 'tblTempUsageDetail_20' ) end [2025-01-15 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:06:22] Production.INFO: ==18914== Releasing lock... [2025-01-15 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:06:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-15 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:07:05 [end_date_ymd] => 2025-01-15 20:07:05 [RateCDR] => 1 ) [2025-01-15 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:07:05' and `end` < '2025-01-15 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:07:19] Production.INFO: count ==2304 [2025-01-15 20:07:20] Production.ERROR: pbx CDR StartTime 2025-01-15 17:07:05 - End Time 2025-01-15 20:07:05 [2025-01-15 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255953', 'tblTempUsageDetail_20' ) start [2025-01-15 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255953', 'tblTempUsageDetail_20' ) end [2025-01-15 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255953', 'tblTempVendorCDR_20' ) start [2025-01-15 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255953', 'tblTempVendorCDR_20' ) end [2025-01-15 20:07:20] Production.INFO: ProcessCDR(1,14255953,1,1,2) [2025-01-15 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255953', 'tblTempUsageDetail_20' ) start [2025-01-15 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255953', 'tblTempUsageDetail_20' ) end [2025-01-15 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:07:24] Production.INFO: ==18985== Releasing lock... [2025-01-15 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:07:24] Production.INFO: 45.25 MB #Memory Used# [2025-01-15 20:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:08:04 [end_date_ymd] => 2025-01-15 20:08:04 [RateCDR] => 1 ) [2025-01-15 20:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:08:04' and `end` < '2025-01-15 20:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:08:17] Production.INFO: count ==2299 [2025-01-15 20:08:17] Production.ERROR: pbx CDR StartTime 2025-01-15 17:08:04 - End Time 2025-01-15 20:08:04 [2025-01-15 20:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255958', 'tblTempUsageDetail_20' ) start [2025-01-15 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255958', 'tblTempUsageDetail_20' ) end [2025-01-15 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255958', 'tblTempVendorCDR_20' ) start [2025-01-15 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255958', 'tblTempVendorCDR_20' ) end [2025-01-15 20:08:17] Production.INFO: ProcessCDR(1,14255958,1,1,2) [2025-01-15 20:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255958', 'tblTempUsageDetail_20' ) start [2025-01-15 20:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255958', 'tblTempUsageDetail_20' ) end [2025-01-15 20:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:08:21] Production.INFO: ==19055== Releasing lock... [2025-01-15 20:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:08:21] Production.INFO: 45.25 MB #Memory Used# [2025-01-15 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:09:05 [end_date_ymd] => 2025-01-15 20:09:05 [RateCDR] => 1 ) [2025-01-15 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:09:05' and `end` < '2025-01-15 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:09:18] Production.INFO: count ==2298 [2025-01-15 20:09:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:09:05 - End Time 2025-01-15 20:09:05 [2025-01-15 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255963', 'tblTempUsageDetail_20' ) start [2025-01-15 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255963', 'tblTempUsageDetail_20' ) end [2025-01-15 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255963', 'tblTempVendorCDR_20' ) start [2025-01-15 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255963', 'tblTempVendorCDR_20' ) end [2025-01-15 20:09:18] Production.INFO: ProcessCDR(1,14255963,1,1,2) [2025-01-15 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255963', 'tblTempUsageDetail_20' ) start [2025-01-15 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255963', 'tblTempUsageDetail_20' ) end [2025-01-15 20:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:09:21] Production.INFO: ==19126== Releasing lock... [2025-01-15 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:09:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-15 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:10:06 [end_date_ymd] => 2025-01-15 20:10:06 [RateCDR] => 1 ) [2025-01-15 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:10:06' and `end` < '2025-01-15 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:10:18] Production.INFO: count ==2284 [2025-01-15 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:10:06 - End Time 2025-01-15 20:10:06 [2025-01-15 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255969', 'tblTempUsageDetail_20' ) start [2025-01-15 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255969', 'tblTempUsageDetail_20' ) end [2025-01-15 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255969', 'tblTempVendorCDR_20' ) start [2025-01-15 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255969', 'tblTempVendorCDR_20' ) end [2025-01-15 20:10:19] Production.INFO: ProcessCDR(1,14255969,1,1,2) [2025-01-15 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255969', 'tblTempUsageDetail_20' ) start [2025-01-15 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255969', 'tblTempUsageDetail_20' ) end [2025-01-15 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:10:22] Production.INFO: ==19198== Releasing lock... [2025-01-15 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:10:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-15 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:11:05 [end_date_ymd] => 2025-01-15 20:11:05 [RateCDR] => 1 ) [2025-01-15 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:11:05' and `end` < '2025-01-15 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:11:17] Production.INFO: count ==2241 [2025-01-15 20:11:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:11:05 - End Time 2025-01-15 20:11:05 [2025-01-15 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255974', 'tblTempUsageDetail_20' ) start [2025-01-15 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255974', 'tblTempUsageDetail_20' ) end [2025-01-15 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255974', 'tblTempVendorCDR_20' ) start [2025-01-15 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255974', 'tblTempVendorCDR_20' ) end [2025-01-15 20:11:18] Production.INFO: ProcessCDR(1,14255974,1,1,2) [2025-01-15 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255974', 'tblTempUsageDetail_20' ) start [2025-01-15 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255974', 'tblTempUsageDetail_20' ) end [2025-01-15 20:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:11:21] Production.INFO: ==19270== Releasing lock... [2025-01-15 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:11:21] Production.INFO: 44.75 MB #Memory Used# [2025-01-15 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:12:05 [end_date_ymd] => 2025-01-15 20:12:05 [RateCDR] => 1 ) [2025-01-15 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:12:05' and `end` < '2025-01-15 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:12:18] Production.INFO: count ==2224 [2025-01-15 20:12:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:12:05 - End Time 2025-01-15 20:12:05 [2025-01-15 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255979', 'tblTempUsageDetail_20' ) start [2025-01-15 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255979', 'tblTempUsageDetail_20' ) end [2025-01-15 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255979', 'tblTempVendorCDR_20' ) start [2025-01-15 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255979', 'tblTempVendorCDR_20' ) end [2025-01-15 20:12:19] Production.INFO: ProcessCDR(1,14255979,1,1,2) [2025-01-15 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255979', 'tblTempUsageDetail_20' ) start [2025-01-15 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255979', 'tblTempUsageDetail_20' ) end [2025-01-15 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:12:22] Production.INFO: ==19348== Releasing lock... [2025-01-15 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:12:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-15 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:13:05 [end_date_ymd] => 2025-01-15 20:13:05 [RateCDR] => 1 ) [2025-01-15 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:13:05' and `end` < '2025-01-15 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:13:18] Production.INFO: count ==2210 [2025-01-15 20:13:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:13:05 - End Time 2025-01-15 20:13:05 [2025-01-15 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255984', 'tblTempUsageDetail_20' ) start [2025-01-15 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255984', 'tblTempUsageDetail_20' ) end [2025-01-15 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255984', 'tblTempVendorCDR_20' ) start [2025-01-15 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255984', 'tblTempVendorCDR_20' ) end [2025-01-15 20:13:19] Production.INFO: ProcessCDR(1,14255984,1,1,2) [2025-01-15 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255984', 'tblTempUsageDetail_20' ) start [2025-01-15 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255984', 'tblTempUsageDetail_20' ) end [2025-01-15 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:13:22] Production.INFO: ==19418== Releasing lock... [2025-01-15 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:13:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-15 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:14:05 [end_date_ymd] => 2025-01-15 20:14:05 [RateCDR] => 1 ) [2025-01-15 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:14:05' and `end` < '2025-01-15 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:14:18] Production.INFO: count ==2215 [2025-01-15 20:14:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:14:05 - End Time 2025-01-15 20:14:05 [2025-01-15 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255989', 'tblTempUsageDetail_20' ) start [2025-01-15 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255989', 'tblTempUsageDetail_20' ) end [2025-01-15 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255989', 'tblTempVendorCDR_20' ) start [2025-01-15 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255989', 'tblTempVendorCDR_20' ) end [2025-01-15 20:14:18] Production.INFO: ProcessCDR(1,14255989,1,1,2) [2025-01-15 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255989', 'tblTempUsageDetail_20' ) start [2025-01-15 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255989', 'tblTempUsageDetail_20' ) end [2025-01-15 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:14:22] Production.INFO: ==19489== Releasing lock... [2025-01-15 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:14:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-15 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:15:05 [end_date_ymd] => 2025-01-15 20:15:05 [RateCDR] => 1 ) [2025-01-15 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:15:05' and `end` < '2025-01-15 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:15:17] Production.INFO: count ==2204 [2025-01-15 20:15:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:15:05 - End Time 2025-01-15 20:15:05 [2025-01-15 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255994', 'tblTempUsageDetail_20' ) start [2025-01-15 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255994', 'tblTempUsageDetail_20' ) end [2025-01-15 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255994', 'tblTempVendorCDR_20' ) start [2025-01-15 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255994', 'tblTempVendorCDR_20' ) end [2025-01-15 20:15:18] Production.INFO: ProcessCDR(1,14255994,1,1,2) [2025-01-15 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255994', 'tblTempUsageDetail_20' ) start [2025-01-15 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255994', 'tblTempUsageDetail_20' ) end [2025-01-15 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:15:21] Production.INFO: ==19559== Releasing lock... [2025-01-15 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:15:21] Production.INFO: 44.5 MB #Memory Used# [2025-01-15 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:16:05 [end_date_ymd] => 2025-01-15 20:16:05 [RateCDR] => 1 ) [2025-01-15 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:16:05' and `end` < '2025-01-15 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:16:19] Production.INFO: count ==2201 [2025-01-15 20:16:20] Production.ERROR: pbx CDR StartTime 2025-01-15 17:16:05 - End Time 2025-01-15 20:16:05 [2025-01-15 20:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255999', 'tblTempUsageDetail_20' ) start [2025-01-15 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14255999', 'tblTempUsageDetail_20' ) end [2025-01-15 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255999', 'tblTempVendorCDR_20' ) start [2025-01-15 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14255999', 'tblTempVendorCDR_20' ) end [2025-01-15 20:16:20] Production.INFO: ProcessCDR(1,14255999,1,1,2) [2025-01-15 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14255999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14255999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14255999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14255999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255999', 'tblTempUsageDetail_20' ) start [2025-01-15 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14255999', 'tblTempUsageDetail_20' ) end [2025-01-15 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:16:23] Production.INFO: ==19669== Releasing lock... [2025-01-15 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:16:23] Production.INFO: 44.5 MB #Memory Used# [2025-01-15 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:17:05 [end_date_ymd] => 2025-01-15 20:17:05 [RateCDR] => 1 ) [2025-01-15 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:17:05' and `end` < '2025-01-15 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:17:18] Production.INFO: count ==2192 [2025-01-15 20:17:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:17:05 - End Time 2025-01-15 20:17:05 [2025-01-15 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256004', 'tblTempUsageDetail_20' ) start [2025-01-15 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256004', 'tblTempUsageDetail_20' ) end [2025-01-15 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256004', 'tblTempVendorCDR_20' ) start [2025-01-15 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256004', 'tblTempVendorCDR_20' ) end [2025-01-15 20:17:18] Production.INFO: ProcessCDR(1,14256004,1,1,2) [2025-01-15 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256004', 'tblTempUsageDetail_20' ) start [2025-01-15 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256004', 'tblTempUsageDetail_20' ) end [2025-01-15 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:17:22] Production.INFO: ==19739== Releasing lock... [2025-01-15 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:17:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-15 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:18:05 [end_date_ymd] => 2025-01-15 20:18:05 [RateCDR] => 1 ) [2025-01-15 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:18:05' and `end` < '2025-01-15 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:18:19] Production.INFO: count ==2191 [2025-01-15 20:18:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:18:05 - End Time 2025-01-15 20:18:05 [2025-01-15 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256009', 'tblTempUsageDetail_20' ) start [2025-01-15 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256009', 'tblTempUsageDetail_20' ) end [2025-01-15 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256009', 'tblTempVendorCDR_20' ) start [2025-01-15 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256009', 'tblTempVendorCDR_20' ) end [2025-01-15 20:18:19] Production.INFO: ProcessCDR(1,14256009,1,1,2) [2025-01-15 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256009', 'tblTempUsageDetail_20' ) start [2025-01-15 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256009', 'tblTempUsageDetail_20' ) end [2025-01-15 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:18:22] Production.INFO: ==19820== Releasing lock... [2025-01-15 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:18:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-15 20:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:19:04 [end_date_ymd] => 2025-01-15 20:19:04 [RateCDR] => 1 ) [2025-01-15 20:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:19:04' and `end` < '2025-01-15 20:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:19:17] Production.INFO: count ==2179 [2025-01-15 20:19:17] Production.ERROR: pbx CDR StartTime 2025-01-15 17:19:04 - End Time 2025-01-15 20:19:04 [2025-01-15 20:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256014', 'tblTempUsageDetail_20' ) start [2025-01-15 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256014', 'tblTempUsageDetail_20' ) end [2025-01-15 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256014', 'tblTempVendorCDR_20' ) start [2025-01-15 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256014', 'tblTempVendorCDR_20' ) end [2025-01-15 20:19:17] Production.INFO: ProcessCDR(1,14256014,1,1,2) [2025-01-15 20:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256014', 'tblTempUsageDetail_20' ) start [2025-01-15 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256014', 'tblTempUsageDetail_20' ) end [2025-01-15 20:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:19:21] Production.INFO: ==19890== Releasing lock... [2025-01-15 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:19:21] Production.INFO: 44.5 MB #Memory Used# [2025-01-15 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:20:06 [end_date_ymd] => 2025-01-15 20:20:06 [RateCDR] => 1 ) [2025-01-15 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:20:06' and `end` < '2025-01-15 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:20:18] Production.INFO: count ==2168 [2025-01-15 20:20:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:20:06 - End Time 2025-01-15 20:20:06 [2025-01-15 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256020', 'tblTempUsageDetail_20' ) start [2025-01-15 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256020', 'tblTempUsageDetail_20' ) end [2025-01-15 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256020', 'tblTempVendorCDR_20' ) start [2025-01-15 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256020', 'tblTempVendorCDR_20' ) end [2025-01-15 20:20:19] Production.INFO: ProcessCDR(1,14256020,1,1,2) [2025-01-15 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256020', 'tblTempUsageDetail_20' ) start [2025-01-15 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256020', 'tblTempUsageDetail_20' ) end [2025-01-15 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:20:22] Production.INFO: ==19964== Releasing lock... [2025-01-15 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:20:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-15 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:21:05 [end_date_ymd] => 2025-01-15 20:21:05 [RateCDR] => 1 ) [2025-01-15 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:21:05' and `end` < '2025-01-15 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:21:19] Production.INFO: count ==2096 [2025-01-15 20:21:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:21:05 - End Time 2025-01-15 20:21:05 [2025-01-15 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256025', 'tblTempUsageDetail_20' ) start [2025-01-15 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256025', 'tblTempUsageDetail_20' ) end [2025-01-15 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256025', 'tblTempVendorCDR_20' ) start [2025-01-15 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256025', 'tblTempVendorCDR_20' ) end [2025-01-15 20:21:19] Production.INFO: ProcessCDR(1,14256025,1,1,2) [2025-01-15 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256025', 'tblTempUsageDetail_20' ) start [2025-01-15 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256025', 'tblTempUsageDetail_20' ) end [2025-01-15 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:21:24] Production.INFO: ==20038== Releasing lock... [2025-01-15 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:21:24] Production.INFO: 43.75 MB #Memory Used# [2025-01-15 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:22:05 [end_date_ymd] => 2025-01-15 20:22:05 [RateCDR] => 1 ) [2025-01-15 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:22:05' and `end` < '2025-01-15 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:22:17] Production.INFO: count ==2093 [2025-01-15 20:22:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:22:05 - End Time 2025-01-15 20:22:05 [2025-01-15 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256030', 'tblTempUsageDetail_20' ) start [2025-01-15 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256030', 'tblTempUsageDetail_20' ) end [2025-01-15 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256030', 'tblTempVendorCDR_20' ) start [2025-01-15 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256030', 'tblTempVendorCDR_20' ) end [2025-01-15 20:22:18] Production.INFO: ProcessCDR(1,14256030,1,1,2) [2025-01-15 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256030', 'tblTempUsageDetail_20' ) start [2025-01-15 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256030', 'tblTempUsageDetail_20' ) end [2025-01-15 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:22:21] Production.INFO: ==20107== Releasing lock... [2025-01-15 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:22:21] Production.INFO: 44 MB #Memory Used# [2025-01-15 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:23:05 [end_date_ymd] => 2025-01-15 20:23:05 [RateCDR] => 1 ) [2025-01-15 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:23:05' and `end` < '2025-01-15 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:23:18] Production.INFO: count ==2087 [2025-01-15 20:23:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:23:05 - End Time 2025-01-15 20:23:05 [2025-01-15 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256035', 'tblTempUsageDetail_20' ) start [2025-01-15 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256035', 'tblTempUsageDetail_20' ) end [2025-01-15 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256035', 'tblTempVendorCDR_20' ) start [2025-01-15 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256035', 'tblTempVendorCDR_20' ) end [2025-01-15 20:23:18] Production.INFO: ProcessCDR(1,14256035,1,1,2) [2025-01-15 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256035', 'tblTempUsageDetail_20' ) start [2025-01-15 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256035', 'tblTempUsageDetail_20' ) end [2025-01-15 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:23:22] Production.INFO: ==20179== Releasing lock... [2025-01-15 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:23:22] Production.INFO: 44 MB #Memory Used# [2025-01-15 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:24:05 [end_date_ymd] => 2025-01-15 20:24:05 [RateCDR] => 1 ) [2025-01-15 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:24:05' and `end` < '2025-01-15 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:24:18] Production.INFO: count ==2084 [2025-01-15 20:24:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:24:05 - End Time 2025-01-15 20:24:05 [2025-01-15 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256040', 'tblTempUsageDetail_20' ) start [2025-01-15 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256040', 'tblTempUsageDetail_20' ) end [2025-01-15 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256040', 'tblTempVendorCDR_20' ) start [2025-01-15 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256040', 'tblTempVendorCDR_20' ) end [2025-01-15 20:24:19] Production.INFO: ProcessCDR(1,14256040,1,1,2) [2025-01-15 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256040', 'tblTempUsageDetail_20' ) start [2025-01-15 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256040', 'tblTempUsageDetail_20' ) end [2025-01-15 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:24:23] Production.INFO: ==20251== Releasing lock... [2025-01-15 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:24:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-15 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:25:05 [end_date_ymd] => 2025-01-15 20:25:05 [RateCDR] => 1 ) [2025-01-15 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:25:05' and `end` < '2025-01-15 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:25:17] Production.INFO: count ==2080 [2025-01-15 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:25:05 - End Time 2025-01-15 20:25:05 [2025-01-15 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256045', 'tblTempUsageDetail_20' ) start [2025-01-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256045', 'tblTempUsageDetail_20' ) end [2025-01-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256045', 'tblTempVendorCDR_20' ) start [2025-01-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256045', 'tblTempVendorCDR_20' ) end [2025-01-15 20:25:18] Production.INFO: ProcessCDR(1,14256045,1,1,2) [2025-01-15 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256045', 'tblTempUsageDetail_20' ) start [2025-01-15 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256045', 'tblTempUsageDetail_20' ) end [2025-01-15 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:25:21] Production.INFO: ==20321== Releasing lock... [2025-01-15 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:25:21] Production.INFO: 43.75 MB #Memory Used# [2025-01-15 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:26:05 [end_date_ymd] => 2025-01-15 20:26:05 [RateCDR] => 1 ) [2025-01-15 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:26:05' and `end` < '2025-01-15 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:26:18] Production.INFO: count ==2080 [2025-01-15 20:26:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:26:05 - End Time 2025-01-15 20:26:05 [2025-01-15 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256050', 'tblTempUsageDetail_20' ) start [2025-01-15 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256050', 'tblTempUsageDetail_20' ) end [2025-01-15 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256050', 'tblTempVendorCDR_20' ) start [2025-01-15 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256050', 'tblTempVendorCDR_20' ) end [2025-01-15 20:26:18] Production.INFO: ProcessCDR(1,14256050,1,1,2) [2025-01-15 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256050', 'tblTempUsageDetail_20' ) start [2025-01-15 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256050', 'tblTempUsageDetail_20' ) end [2025-01-15 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:26:23] Production.INFO: ==20397== Releasing lock... [2025-01-15 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:26:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-15 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:27:05 [end_date_ymd] => 2025-01-15 20:27:05 [RateCDR] => 1 ) [2025-01-15 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:27:05' and `end` < '2025-01-15 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:27:18] Production.INFO: count ==2087 [2025-01-15 20:27:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:27:05 - End Time 2025-01-15 20:27:05 [2025-01-15 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256055', 'tblTempUsageDetail_20' ) start [2025-01-15 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256055', 'tblTempUsageDetail_20' ) end [2025-01-15 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256055', 'tblTempVendorCDR_20' ) start [2025-01-15 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256055', 'tblTempVendorCDR_20' ) end [2025-01-15 20:27:19] Production.INFO: ProcessCDR(1,14256055,1,1,2) [2025-01-15 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256055', 'tblTempUsageDetail_20' ) start [2025-01-15 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256055', 'tblTempUsageDetail_20' ) end [2025-01-15 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:27:22] Production.INFO: ==20468== Releasing lock... [2025-01-15 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:27:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-15 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:28:05 [end_date_ymd] => 2025-01-15 20:28:05 [RateCDR] => 1 ) [2025-01-15 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:28:05' and `end` < '2025-01-15 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:28:18] Production.INFO: count ==2079 [2025-01-15 20:28:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:28:05 - End Time 2025-01-15 20:28:05 [2025-01-15 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256060', 'tblTempUsageDetail_20' ) start [2025-01-15 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256060', 'tblTempUsageDetail_20' ) end [2025-01-15 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256060', 'tblTempVendorCDR_20' ) start [2025-01-15 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256060', 'tblTempVendorCDR_20' ) end [2025-01-15 20:28:19] Production.INFO: ProcessCDR(1,14256060,1,1,2) [2025-01-15 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256060', 'tblTempUsageDetail_20' ) start [2025-01-15 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256060', 'tblTempUsageDetail_20' ) end [2025-01-15 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:28:22] Production.INFO: ==20537== Releasing lock... [2025-01-15 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:28:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-15 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:29:05 [end_date_ymd] => 2025-01-15 20:29:05 [RateCDR] => 1 ) [2025-01-15 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:29:05' and `end` < '2025-01-15 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:29:19] Production.INFO: count ==2075 [2025-01-15 20:29:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:29:05 - End Time 2025-01-15 20:29:05 [2025-01-15 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256065', 'tblTempUsageDetail_20' ) start [2025-01-15 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256065', 'tblTempUsageDetail_20' ) end [2025-01-15 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256065', 'tblTempVendorCDR_20' ) start [2025-01-15 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256065', 'tblTempVendorCDR_20' ) end [2025-01-15 20:29:19] Production.INFO: ProcessCDR(1,14256065,1,1,2) [2025-01-15 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256065', 'tblTempUsageDetail_20' ) start [2025-01-15 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256065', 'tblTempUsageDetail_20' ) end [2025-01-15 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:29:24] Production.INFO: ==20607== Releasing lock... [2025-01-15 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:29:24] Production.INFO: 43.75 MB #Memory Used# [2025-01-15 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:30:06 [end_date_ymd] => 2025-01-15 20:30:06 [RateCDR] => 1 ) [2025-01-15 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:30:06' and `end` < '2025-01-15 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:30:19] Production.INFO: count ==2075 [2025-01-15 20:30:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:30:06 - End Time 2025-01-15 20:30:06 [2025-01-15 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256071', 'tblTempUsageDetail_20' ) start [2025-01-15 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256071', 'tblTempUsageDetail_20' ) end [2025-01-15 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256071', 'tblTempVendorCDR_20' ) start [2025-01-15 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256071', 'tblTempVendorCDR_20' ) end [2025-01-15 20:30:19] Production.INFO: ProcessCDR(1,14256071,1,1,2) [2025-01-15 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256071', 'tblTempUsageDetail_20' ) start [2025-01-15 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256071', 'tblTempUsageDetail_20' ) end [2025-01-15 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:30:24] Production.INFO: ==20682== Releasing lock... [2025-01-15 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:30:24] Production.INFO: 43.75 MB #Memory Used# [2025-01-15 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:31:06 [end_date_ymd] => 2025-01-15 20:31:06 [RateCDR] => 1 ) [2025-01-15 20:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:31:06' and `end` < '2025-01-15 20:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:31:18] Production.INFO: count ==2071 [2025-01-15 20:31:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:31:06 - End Time 2025-01-15 20:31:06 [2025-01-15 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256076', 'tblTempUsageDetail_20' ) start [2025-01-15 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256076', 'tblTempUsageDetail_20' ) end [2025-01-15 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256076', 'tblTempVendorCDR_20' ) start [2025-01-15 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256076', 'tblTempVendorCDR_20' ) end [2025-01-15 20:31:19] Production.INFO: ProcessCDR(1,14256076,1,1,2) [2025-01-15 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256076', 'tblTempUsageDetail_20' ) start [2025-01-15 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256076', 'tblTempUsageDetail_20' ) end [2025-01-15 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:31:23] Production.INFO: ==20792== Releasing lock... [2025-01-15 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:31:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-15 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:32:05 [end_date_ymd] => 2025-01-15 20:32:05 [RateCDR] => 1 ) [2025-01-15 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:32:05' and `end` < '2025-01-15 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:32:17] Production.INFO: count ==2064 [2025-01-15 20:32:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:32:05 - End Time 2025-01-15 20:32:05 [2025-01-15 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256081', 'tblTempUsageDetail_20' ) start [2025-01-15 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256081', 'tblTempUsageDetail_20' ) end [2025-01-15 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256081', 'tblTempVendorCDR_20' ) start [2025-01-15 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256081', 'tblTempVendorCDR_20' ) end [2025-01-15 20:32:18] Production.INFO: ProcessCDR(1,14256081,1,1,2) [2025-01-15 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256081', 'tblTempUsageDetail_20' ) start [2025-01-15 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256081', 'tblTempUsageDetail_20' ) end [2025-01-15 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:32:22] Production.INFO: ==20862== Releasing lock... [2025-01-15 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:32:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-15 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:33:05 [end_date_ymd] => 2025-01-15 20:33:05 [RateCDR] => 1 ) [2025-01-15 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:33:05' and `end` < '2025-01-15 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:33:19] Production.INFO: count ==2054 [2025-01-15 20:33:20] Production.ERROR: pbx CDR StartTime 2025-01-15 17:33:05 - End Time 2025-01-15 20:33:05 [2025-01-15 20:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256086', 'tblTempUsageDetail_20' ) start [2025-01-15 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256086', 'tblTempUsageDetail_20' ) end [2025-01-15 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256086', 'tblTempVendorCDR_20' ) start [2025-01-15 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256086', 'tblTempVendorCDR_20' ) end [2025-01-15 20:33:20] Production.INFO: ProcessCDR(1,14256086,1,1,2) [2025-01-15 20:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256086', 'tblTempUsageDetail_20' ) start [2025-01-15 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256086', 'tblTempUsageDetail_20' ) end [2025-01-15 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:33:23] Production.INFO: ==20932== Releasing lock... [2025-01-15 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:33:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-15 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:34:05 [end_date_ymd] => 2025-01-15 20:34:05 [RateCDR] => 1 ) [2025-01-15 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:34:05' and `end` < '2025-01-15 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:34:18] Production.INFO: count ==2046 [2025-01-15 20:34:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:34:05 - End Time 2025-01-15 20:34:05 [2025-01-15 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256091', 'tblTempUsageDetail_20' ) start [2025-01-15 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256091', 'tblTempUsageDetail_20' ) end [2025-01-15 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256091', 'tblTempVendorCDR_20' ) start [2025-01-15 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256091', 'tblTempVendorCDR_20' ) end [2025-01-15 20:34:19] Production.INFO: ProcessCDR(1,14256091,1,1,2) [2025-01-15 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256091', 'tblTempUsageDetail_20' ) start [2025-01-15 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256091', 'tblTempUsageDetail_20' ) end [2025-01-15 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:34:22] Production.INFO: ==21005== Releasing lock... [2025-01-15 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:34:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-15 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:35:06 [end_date_ymd] => 2025-01-15 20:35:06 [RateCDR] => 1 ) [2025-01-15 20:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:35:06' and `end` < '2025-01-15 20:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:35:18] Production.INFO: count ==2045 [2025-01-15 20:35:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:35:06 - End Time 2025-01-15 20:35:06 [2025-01-15 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256096', 'tblTempUsageDetail_20' ) start [2025-01-15 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256096', 'tblTempUsageDetail_20' ) end [2025-01-15 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256096', 'tblTempVendorCDR_20' ) start [2025-01-15 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256096', 'tblTempVendorCDR_20' ) end [2025-01-15 20:35:19] Production.INFO: ProcessCDR(1,14256096,1,1,2) [2025-01-15 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256096', 'tblTempUsageDetail_20' ) start [2025-01-15 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256096', 'tblTempUsageDetail_20' ) end [2025-01-15 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:35:23] Production.INFO: ==21075== Releasing lock... [2025-01-15 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:35:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-15 20:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:36:04 [end_date_ymd] => 2025-01-15 20:36:04 [RateCDR] => 1 ) [2025-01-15 20:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:36:04' and `end` < '2025-01-15 20:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:36:17] Production.INFO: count ==2043 [2025-01-15 20:36:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:36:04 - End Time 2025-01-15 20:36:04 [2025-01-15 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256101', 'tblTempUsageDetail_20' ) start [2025-01-15 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256101', 'tblTempUsageDetail_20' ) end [2025-01-15 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256101', 'tblTempVendorCDR_20' ) start [2025-01-15 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256101', 'tblTempVendorCDR_20' ) end [2025-01-15 20:36:18] Production.INFO: ProcessCDR(1,14256101,1,1,2) [2025-01-15 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256101', 'tblTempUsageDetail_20' ) start [2025-01-15 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256101', 'tblTempUsageDetail_20' ) end [2025-01-15 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:36:21] Production.INFO: ==21151== Releasing lock... [2025-01-15 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:36:21] Production.INFO: 43.5 MB #Memory Used# [2025-01-15 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:37:05 [end_date_ymd] => 2025-01-15 20:37:05 [RateCDR] => 1 ) [2025-01-15 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:37:05' and `end` < '2025-01-15 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:37:18] Production.INFO: count ==2044 [2025-01-15 20:37:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:37:05 - End Time 2025-01-15 20:37:05 [2025-01-15 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256106', 'tblTempUsageDetail_20' ) start [2025-01-15 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256106', 'tblTempUsageDetail_20' ) end [2025-01-15 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256106', 'tblTempVendorCDR_20' ) start [2025-01-15 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256106', 'tblTempVendorCDR_20' ) end [2025-01-15 20:37:18] Production.INFO: ProcessCDR(1,14256106,1,1,2) [2025-01-15 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256106', 'tblTempUsageDetail_20' ) start [2025-01-15 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256106', 'tblTempUsageDetail_20' ) end [2025-01-15 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:37:22] Production.INFO: ==21247== Releasing lock... [2025-01-15 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:37:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-15 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:38:05 [end_date_ymd] => 2025-01-15 20:38:05 [RateCDR] => 1 ) [2025-01-15 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:38:05' and `end` < '2025-01-15 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:38:18] Production.INFO: count ==2043 [2025-01-15 20:38:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:38:05 - End Time 2025-01-15 20:38:05 [2025-01-15 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256111', 'tblTempUsageDetail_20' ) start [2025-01-15 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256111', 'tblTempUsageDetail_20' ) end [2025-01-15 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256111', 'tblTempVendorCDR_20' ) start [2025-01-15 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256111', 'tblTempVendorCDR_20' ) end [2025-01-15 20:38:19] Production.INFO: ProcessCDR(1,14256111,1,1,2) [2025-01-15 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256111', 'tblTempUsageDetail_20' ) start [2025-01-15 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256111', 'tblTempUsageDetail_20' ) end [2025-01-15 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:38:22] Production.INFO: ==21322== Releasing lock... [2025-01-15 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:38:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-15 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:39:06 [end_date_ymd] => 2025-01-15 20:39:06 [RateCDR] => 1 ) [2025-01-15 20:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:39:06' and `end` < '2025-01-15 20:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:39:18] Production.INFO: count ==2030 [2025-01-15 20:39:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:39:06 - End Time 2025-01-15 20:39:06 [2025-01-15 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256116', 'tblTempUsageDetail_20' ) start [2025-01-15 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256116', 'tblTempUsageDetail_20' ) end [2025-01-15 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256116', 'tblTempVendorCDR_20' ) start [2025-01-15 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256116', 'tblTempVendorCDR_20' ) end [2025-01-15 20:39:19] Production.INFO: ProcessCDR(1,14256116,1,1,2) [2025-01-15 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256116', 'tblTempUsageDetail_20' ) start [2025-01-15 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256116', 'tblTempUsageDetail_20' ) end [2025-01-15 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:39:22] Production.INFO: ==21439== Releasing lock... [2025-01-15 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:39:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-15 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:40:06 [end_date_ymd] => 2025-01-15 20:40:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 17:40:06' and `end` < '2025-01-15 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-01-15 20:40:18] Production.INFO: count ==2028 [2025-01-15 20:40:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:40:06 - End Time 2025-01-15 20:40:06 [2025-01-15 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256122', 'tblTempUsageDetail_20' ) start [2025-01-15 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256122', 'tblTempUsageDetail_20' ) end [2025-01-15 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256122', 'tblTempVendorCDR_20' ) start [2025-01-15 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256122', 'tblTempVendorCDR_20' ) end [2025-01-15 20:40:19] Production.INFO: ProcessCDR(1,14256122,1,1,2) [2025-01-15 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256122', 'tblTempUsageDetail_20' ) start [2025-01-15 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256122', 'tblTempUsageDetail_20' ) end [2025-01-15 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:40:22] Production.INFO: ==21531== Releasing lock... [2025-01-15 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:40:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-15 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:41:05 [end_date_ymd] => 2025-01-15 20:41:05 [RateCDR] => 1 ) [2025-01-15 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:41:05' and `end` < '2025-01-15 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:41:18] Production.INFO: count ==2023 [2025-01-15 20:41:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:41:05 - End Time 2025-01-15 20:41:05 [2025-01-15 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256127', 'tblTempUsageDetail_20' ) start [2025-01-15 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256127', 'tblTempUsageDetail_20' ) end [2025-01-15 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256127', 'tblTempVendorCDR_20' ) start [2025-01-15 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256127', 'tblTempVendorCDR_20' ) end [2025-01-15 20:41:18] Production.INFO: ProcessCDR(1,14256127,1,1,2) [2025-01-15 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256127', 'tblTempUsageDetail_20' ) start [2025-01-15 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256127', 'tblTempUsageDetail_20' ) end [2025-01-15 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:41:21] Production.INFO: ==21626== Releasing lock... [2025-01-15 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:41:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-15 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:42:05 [end_date_ymd] => 2025-01-15 20:42:05 [RateCDR] => 1 ) [2025-01-15 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:42:05' and `end` < '2025-01-15 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:42:17] Production.INFO: count ==2022 [2025-01-15 20:42:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:42:05 - End Time 2025-01-15 20:42:05 [2025-01-15 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256132', 'tblTempUsageDetail_20' ) start [2025-01-15 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256132', 'tblTempUsageDetail_20' ) end [2025-01-15 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256132', 'tblTempVendorCDR_20' ) start [2025-01-15 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256132', 'tblTempVendorCDR_20' ) end [2025-01-15 20:42:18] Production.INFO: ProcessCDR(1,14256132,1,1,2) [2025-01-15 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256132', 'tblTempUsageDetail_20' ) start [2025-01-15 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256132', 'tblTempUsageDetail_20' ) end [2025-01-15 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:42:21] Production.INFO: ==21703== Releasing lock... [2025-01-15 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:42:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-15 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:43:05 [end_date_ymd] => 2025-01-15 20:43:05 [RateCDR] => 1 ) [2025-01-15 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:43:05' and `end` < '2025-01-15 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:43:17] Production.INFO: count ==2020 [2025-01-15 20:43:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:43:05 - End Time 2025-01-15 20:43:05 [2025-01-15 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256137', 'tblTempUsageDetail_20' ) start [2025-01-15 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256137', 'tblTempUsageDetail_20' ) end [2025-01-15 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256137', 'tblTempVendorCDR_20' ) start [2025-01-15 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256137', 'tblTempVendorCDR_20' ) end [2025-01-15 20:43:18] Production.INFO: ProcessCDR(1,14256137,1,1,2) [2025-01-15 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256137', 'tblTempUsageDetail_20' ) start [2025-01-15 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256137', 'tblTempUsageDetail_20' ) end [2025-01-15 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:43:21] Production.INFO: ==21797== Releasing lock... [2025-01-15 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:43:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-15 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:44:04 [end_date_ymd] => 2025-01-15 20:44:04 [RateCDR] => 1 ) [2025-01-15 20:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:44:04' and `end` < '2025-01-15 20:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:44:17] Production.INFO: count ==2020 [2025-01-15 20:44:17] Production.ERROR: pbx CDR StartTime 2025-01-15 17:44:04 - End Time 2025-01-15 20:44:04 [2025-01-15 20:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256142', 'tblTempUsageDetail_20' ) start [2025-01-15 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256142', 'tblTempUsageDetail_20' ) end [2025-01-15 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256142', 'tblTempVendorCDR_20' ) start [2025-01-15 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256142', 'tblTempVendorCDR_20' ) end [2025-01-15 20:44:17] Production.INFO: ProcessCDR(1,14256142,1,1,2) [2025-01-15 20:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256142', 'tblTempUsageDetail_20' ) start [2025-01-15 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256142', 'tblTempUsageDetail_20' ) end [2025-01-15 20:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:44:20] Production.INFO: ==21882== Releasing lock... [2025-01-15 20:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:44:20] Production.INFO: 43.25 MB #Memory Used# [2025-01-15 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:45:05 [end_date_ymd] => 2025-01-15 20:45:05 [RateCDR] => 1 ) [2025-01-15 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:45:05' and `end` < '2025-01-15 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:45:17] Production.INFO: count ==2017 [2025-01-15 20:45:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:45:05 - End Time 2025-01-15 20:45:05 [2025-01-15 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256147', 'tblTempUsageDetail_20' ) start [2025-01-15 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256147', 'tblTempUsageDetail_20' ) end [2025-01-15 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256147', 'tblTempVendorCDR_20' ) start [2025-01-15 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256147', 'tblTempVendorCDR_20' ) end [2025-01-15 20:45:18] Production.INFO: ProcessCDR(1,14256147,1,1,2) [2025-01-15 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256147', 'tblTempUsageDetail_20' ) start [2025-01-15 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256147', 'tblTempUsageDetail_20' ) end [2025-01-15 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:45:22] Production.INFO: ==21968== Releasing lock... [2025-01-15 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:45:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-15 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:46:05 [end_date_ymd] => 2025-01-15 20:46:05 [RateCDR] => 1 ) [2025-01-15 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:46:05' and `end` < '2025-01-15 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:46:18] Production.INFO: count ==2013 [2025-01-15 20:46:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:46:05 - End Time 2025-01-15 20:46:05 [2025-01-15 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256152', 'tblTempUsageDetail_20' ) start [2025-01-15 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256152', 'tblTempUsageDetail_20' ) end [2025-01-15 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256152', 'tblTempVendorCDR_20' ) start [2025-01-15 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256152', 'tblTempVendorCDR_20' ) end [2025-01-15 20:46:19] Production.INFO: ProcessCDR(1,14256152,1,1,2) [2025-01-15 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256152', 'tblTempUsageDetail_20' ) start [2025-01-15 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256152', 'tblTempUsageDetail_20' ) end [2025-01-15 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:46:22] Production.INFO: ==22056== Releasing lock... [2025-01-15 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:46:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-15 20:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:47:04 [end_date_ymd] => 2025-01-15 20:47:04 [RateCDR] => 1 ) [2025-01-15 20:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:47:04' and `end` < '2025-01-15 20:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:47:17] Production.INFO: count ==2012 [2025-01-15 20:47:17] Production.ERROR: pbx CDR StartTime 2025-01-15 17:47:04 - End Time 2025-01-15 20:47:04 [2025-01-15 20:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256157', 'tblTempUsageDetail_20' ) start [2025-01-15 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256157', 'tblTempUsageDetail_20' ) end [2025-01-15 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256157', 'tblTempVendorCDR_20' ) start [2025-01-15 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256157', 'tblTempVendorCDR_20' ) end [2025-01-15 20:47:17] Production.INFO: ProcessCDR(1,14256157,1,1,2) [2025-01-15 20:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256157', 'tblTempUsageDetail_20' ) start [2025-01-15 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256157', 'tblTempUsageDetail_20' ) end [2025-01-15 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:47:21] Production.INFO: ==22186== Releasing lock... [2025-01-15 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:47:21] Production.INFO: 43 MB #Memory Used# [2025-01-15 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:48:05 [end_date_ymd] => 2025-01-15 20:48:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 17:48:05' and `end` < '2025-01-15 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-01-15 20:48:19] Production.INFO: count ==2009 [2025-01-15 20:48:20] Production.ERROR: pbx CDR StartTime 2025-01-15 17:48:05 - End Time 2025-01-15 20:48:05 [2025-01-15 20:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256162', 'tblTempUsageDetail_20' ) start [2025-01-15 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256162', 'tblTempUsageDetail_20' ) end [2025-01-15 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256162', 'tblTempVendorCDR_20' ) start [2025-01-15 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256162', 'tblTempVendorCDR_20' ) end [2025-01-15 20:48:20] Production.INFO: ProcessCDR(1,14256162,1,1,2) [2025-01-15 20:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256162', 'tblTempUsageDetail_20' ) start [2025-01-15 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256162', 'tblTempUsageDetail_20' ) end [2025-01-15 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:48:23] Production.INFO: ==22274== Releasing lock... [2025-01-15 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:48:23] Production.INFO: 43 MB #Memory Used# [2025-01-15 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:49:05 [end_date_ymd] => 2025-01-15 20:49:05 [RateCDR] => 1 ) [2025-01-15 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:49:05' and `end` < '2025-01-15 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:49:17] Production.INFO: count ==2005 [2025-01-15 20:49:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:49:05 - End Time 2025-01-15 20:49:05 [2025-01-15 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256167', 'tblTempUsageDetail_20' ) start [2025-01-15 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256167', 'tblTempUsageDetail_20' ) end [2025-01-15 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256167', 'tblTempVendorCDR_20' ) start [2025-01-15 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256167', 'tblTempVendorCDR_20' ) end [2025-01-15 20:49:18] Production.INFO: ProcessCDR(1,14256167,1,1,2) [2025-01-15 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256167', 'tblTempUsageDetail_20' ) start [2025-01-15 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256167', 'tblTempUsageDetail_20' ) end [2025-01-15 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:49:21] Production.INFO: ==22361== Releasing lock... [2025-01-15 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:49:21] Production.INFO: 43 MB #Memory Used# [2025-01-15 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:50:06 [end_date_ymd] => 2025-01-15 20:50:06 [RateCDR] => 1 ) [2025-01-15 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:50:06' and `end` < '2025-01-15 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:50:19] Production.INFO: count ==1994 [2025-01-15 20:50:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:50:06 - End Time 2025-01-15 20:50:06 [2025-01-15 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256173', 'tblTempUsageDetail_20' ) start [2025-01-15 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256173', 'tblTempUsageDetail_20' ) end [2025-01-15 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256173', 'tblTempVendorCDR_20' ) start [2025-01-15 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256173', 'tblTempVendorCDR_20' ) end [2025-01-15 20:50:19] Production.INFO: ProcessCDR(1,14256173,1,1,2) [2025-01-15 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256173', 'tblTempUsageDetail_20' ) start [2025-01-15 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256173', 'tblTempUsageDetail_20' ) end [2025-01-15 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:50:23] Production.INFO: ==22451== Releasing lock... [2025-01-15 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:50:23] Production.INFO: 43 MB #Memory Used# [2025-01-15 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:51:05 [end_date_ymd] => 2025-01-15 20:51:05 [RateCDR] => 1 ) [2025-01-15 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:51:05' and `end` < '2025-01-15 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:51:17] Production.INFO: count ==1960 [2025-01-15 20:51:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:51:05 - End Time 2025-01-15 20:51:05 [2025-01-15 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256178', 'tblTempUsageDetail_20' ) start [2025-01-15 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256178', 'tblTempUsageDetail_20' ) end [2025-01-15 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256178', 'tblTempVendorCDR_20' ) start [2025-01-15 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256178', 'tblTempVendorCDR_20' ) end [2025-01-15 20:51:18] Production.INFO: ProcessCDR(1,14256178,1,1,2) [2025-01-15 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256178', 'tblTempUsageDetail_20' ) start [2025-01-15 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256178', 'tblTempUsageDetail_20' ) end [2025-01-15 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:51:21] Production.INFO: ==22536== Releasing lock... [2025-01-15 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:51:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-15 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:52:05 [end_date_ymd] => 2025-01-15 20:52:05 [RateCDR] => 1 ) [2025-01-15 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:52:05' and `end` < '2025-01-15 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:52:18] Production.INFO: count ==1958 [2025-01-15 20:52:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:52:05 - End Time 2025-01-15 20:52:05 [2025-01-15 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256183', 'tblTempUsageDetail_20' ) start [2025-01-15 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256183', 'tblTempUsageDetail_20' ) end [2025-01-15 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256183', 'tblTempVendorCDR_20' ) start [2025-01-15 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256183', 'tblTempVendorCDR_20' ) end [2025-01-15 20:52:18] Production.INFO: ProcessCDR(1,14256183,1,1,2) [2025-01-15 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256183', 'tblTempUsageDetail_20' ) start [2025-01-15 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256183', 'tblTempUsageDetail_20' ) end [2025-01-15 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:52:22] Production.INFO: ==22631== Releasing lock... [2025-01-15 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:52:22] Production.INFO: 43 MB #Memory Used# [2025-01-15 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:53:05 [end_date_ymd] => 2025-01-15 20:53:05 [RateCDR] => 1 ) [2025-01-15 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:53:05' and `end` < '2025-01-15 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:53:17] Production.INFO: count ==1956 [2025-01-15 20:53:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:53:05 - End Time 2025-01-15 20:53:05 [2025-01-15 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256188', 'tblTempUsageDetail_20' ) start [2025-01-15 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256188', 'tblTempUsageDetail_20' ) end [2025-01-15 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256188', 'tblTempVendorCDR_20' ) start [2025-01-15 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256188', 'tblTempVendorCDR_20' ) end [2025-01-15 20:53:18] Production.INFO: ProcessCDR(1,14256188,1,1,2) [2025-01-15 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256188', 'tblTempUsageDetail_20' ) start [2025-01-15 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256188', 'tblTempUsageDetail_20' ) end [2025-01-15 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:53:23] Production.INFO: ==22719== Releasing lock... [2025-01-15 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:53:23] Production.INFO: 43 MB #Memory Used# [2025-01-15 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:54:05 [end_date_ymd] => 2025-01-15 20:54:05 [RateCDR] => 1 ) [2025-01-15 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:54:05' and `end` < '2025-01-15 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:54:18] Production.INFO: count ==1957 [2025-01-15 20:54:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:54:05 - End Time 2025-01-15 20:54:05 [2025-01-15 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256190', 'tblTempUsageDetail_20' ) start [2025-01-15 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256190', 'tblTempUsageDetail_20' ) end [2025-01-15 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256190', 'tblTempVendorCDR_20' ) start [2025-01-15 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256190', 'tblTempVendorCDR_20' ) end [2025-01-15 20:54:19] Production.INFO: ProcessCDR(1,14256190,1,1,2) [2025-01-15 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256190', 'tblTempUsageDetail_20' ) start [2025-01-15 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256190', 'tblTempUsageDetail_20' ) end [2025-01-15 20:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:54:24] Production.INFO: ==22815== Releasing lock... [2025-01-15 20:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:54:24] Production.INFO: 42.75 MB #Memory Used# [2025-01-15 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:55:05 [end_date_ymd] => 2025-01-15 20:55:05 [RateCDR] => 1 ) [2025-01-15 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:55:05' and `end` < '2025-01-15 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:55:17] Production.INFO: count ==1942 [2025-01-15 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:55:05 - End Time 2025-01-15 20:55:05 [2025-01-15 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256198', 'tblTempUsageDetail_20' ) start [2025-01-15 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256198', 'tblTempUsageDetail_20' ) end [2025-01-15 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256198', 'tblTempVendorCDR_20' ) start [2025-01-15 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256198', 'tblTempVendorCDR_20' ) end [2025-01-15 20:55:18] Production.INFO: ProcessCDR(1,14256198,1,1,2) [2025-01-15 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256198', 'tblTempUsageDetail_20' ) start [2025-01-15 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256198', 'tblTempUsageDetail_20' ) end [2025-01-15 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:55:21] Production.INFO: ==22895== Releasing lock... [2025-01-15 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:55:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-15 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:56:05 [end_date_ymd] => 2025-01-15 20:56:05 [RateCDR] => 1 ) [2025-01-15 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:56:05' and `end` < '2025-01-15 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:56:17] Production.INFO: count ==1940 [2025-01-15 20:56:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:56:05 - End Time 2025-01-15 20:56:05 [2025-01-15 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256203', 'tblTempUsageDetail_20' ) start [2025-01-15 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256203', 'tblTempUsageDetail_20' ) end [2025-01-15 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256203', 'tblTempVendorCDR_20' ) start [2025-01-15 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256203', 'tblTempVendorCDR_20' ) end [2025-01-15 20:56:18] Production.INFO: ProcessCDR(1,14256203,1,1,2) [2025-01-15 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256203', 'tblTempUsageDetail_20' ) start [2025-01-15 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256203', 'tblTempUsageDetail_20' ) end [2025-01-15 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:56:21] Production.INFO: ==22992== Releasing lock... [2025-01-15 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:56:21] Production.INFO: 42.25 MB #Memory Used# [2025-01-15 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:57:06 [end_date_ymd] => 2025-01-15 20:57:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 17:57:06' and `end` < '2025-01-15 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-01-15 20:57:18] Production.INFO: count ==1933 [2025-01-15 20:57:19] Production.ERROR: pbx CDR StartTime 2025-01-15 17:57:06 - End Time 2025-01-15 20:57:06 [2025-01-15 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256208', 'tblTempUsageDetail_20' ) start [2025-01-15 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256208', 'tblTempUsageDetail_20' ) end [2025-01-15 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256208', 'tblTempVendorCDR_20' ) start [2025-01-15 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256208', 'tblTempVendorCDR_20' ) end [2025-01-15 20:57:19] Production.INFO: ProcessCDR(1,14256208,1,1,2) [2025-01-15 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256208', 'tblTempUsageDetail_20' ) start [2025-01-15 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256208', 'tblTempUsageDetail_20' ) end [2025-01-15 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:57:22] Production.INFO: ==23068== Releasing lock... [2025-01-15 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:57:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-15 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:58:05 [end_date_ymd] => 2025-01-15 20:58:05 [RateCDR] => 1 ) [2025-01-15 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:58:05' and `end` < '2025-01-15 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:58:18] Production.INFO: count ==1929 [2025-01-15 20:58:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:58:05 - End Time 2025-01-15 20:58:05 [2025-01-15 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256213', 'tblTempUsageDetail_20' ) start [2025-01-15 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256213', 'tblTempUsageDetail_20' ) end [2025-01-15 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256213', 'tblTempVendorCDR_20' ) start [2025-01-15 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256213', 'tblTempVendorCDR_20' ) end [2025-01-15 20:58:18] Production.INFO: ProcessCDR(1,14256213,1,1,2) [2025-01-15 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256213', 'tblTempUsageDetail_20' ) start [2025-01-15 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256213', 'tblTempUsageDetail_20' ) end [2025-01-15 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:58:21] Production.INFO: ==23144== Releasing lock... [2025-01-15 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:58:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-15 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 17:59:05 [end_date_ymd] => 2025-01-15 20:59:05 [RateCDR] => 1 ) [2025-01-15 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 17:59:05' and `end` < '2025-01-15 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 20:59:17] Production.INFO: count ==1929 [2025-01-15 20:59:18] Production.ERROR: pbx CDR StartTime 2025-01-15 17:59:05 - End Time 2025-01-15 20:59:05 [2025-01-15 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256218', 'tblTempUsageDetail_20' ) start [2025-01-15 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256218', 'tblTempUsageDetail_20' ) end [2025-01-15 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256218', 'tblTempVendorCDR_20' ) start [2025-01-15 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256218', 'tblTempVendorCDR_20' ) end [2025-01-15 20:59:18] Production.INFO: ProcessCDR(1,14256218,1,1,2) [2025-01-15 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256218', 'tblTempUsageDetail_20' ) start [2025-01-15 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256218', 'tblTempUsageDetail_20' ) end [2025-01-15 20:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 20:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 20:59:23] Production.INFO: ==23217== Releasing lock... [2025-01-15 20:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 20:59:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-15 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:00:06 [end_date_ymd] => 2025-01-15 21:00:06 [RateCDR] => 1 ) [2025-01-15 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:00:06' and `end` < '2025-01-15 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:00:18] Production.INFO: count ==1927 [2025-01-15 21:00:19] Production.ERROR: pbx CDR StartTime 2025-01-15 18:00:06 - End Time 2025-01-15 21:00:06 [2025-01-15 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256224', 'tblTempUsageDetail_20' ) start [2025-01-15 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256224', 'tblTempUsageDetail_20' ) end [2025-01-15 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256224', 'tblTempVendorCDR_20' ) start [2025-01-15 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256224', 'tblTempVendorCDR_20' ) end [2025-01-15 21:00:19] Production.INFO: ProcessCDR(1,14256224,1,1,2) [2025-01-15 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256224', 'tblTempUsageDetail_20' ) start [2025-01-15 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256224', 'tblTempUsageDetail_20' ) end [2025-01-15 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:00:24] Production.INFO: ==23298== Releasing lock... [2025-01-15 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:00:24] Production.INFO: 42.5 MB #Memory Used# [2025-01-15 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:01:05 [end_date_ymd] => 2025-01-15 21:01:05 [RateCDR] => 1 ) [2025-01-15 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:01:05' and `end` < '2025-01-15 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:01:18] Production.INFO: count ==1930 [2025-01-15 21:01:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:01:05 - End Time 2025-01-15 21:01:05 [2025-01-15 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256229', 'tblTempUsageDetail_20' ) start [2025-01-15 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256229', 'tblTempUsageDetail_20' ) end [2025-01-15 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256229', 'tblTempVendorCDR_20' ) start [2025-01-15 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256229', 'tblTempVendorCDR_20' ) end [2025-01-15 21:01:18] Production.INFO: ProcessCDR(1,14256229,1,1,2) [2025-01-15 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256229', 'tblTempUsageDetail_20' ) start [2025-01-15 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256229', 'tblTempUsageDetail_20' ) end [2025-01-15 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:01:22] Production.INFO: ==23391== Releasing lock... [2025-01-15 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:01:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-15 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:02:05 [end_date_ymd] => 2025-01-15 21:02:05 [RateCDR] => 1 ) [2025-01-15 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:02:05' and `end` < '2025-01-15 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:02:17] Production.INFO: count ==1928 [2025-01-15 21:02:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:02:05 - End Time 2025-01-15 21:02:05 [2025-01-15 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256234', 'tblTempUsageDetail_20' ) start [2025-01-15 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256234', 'tblTempUsageDetail_20' ) end [2025-01-15 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256234', 'tblTempVendorCDR_20' ) start [2025-01-15 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256234', 'tblTempVendorCDR_20' ) end [2025-01-15 21:02:18] Production.INFO: ProcessCDR(1,14256234,1,1,2) [2025-01-15 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256234', 'tblTempUsageDetail_20' ) start [2025-01-15 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256234', 'tblTempUsageDetail_20' ) end [2025-01-15 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:02:21] Production.INFO: ==23506== Releasing lock... [2025-01-15 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:02:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-15 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:03:05 [end_date_ymd] => 2025-01-15 21:03:05 [RateCDR] => 1 ) [2025-01-15 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:03:05' and `end` < '2025-01-15 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:03:18] Production.INFO: count ==1924 [2025-01-15 21:03:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:03:05 - End Time 2025-01-15 21:03:05 [2025-01-15 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256239', 'tblTempUsageDetail_20' ) start [2025-01-15 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256239', 'tblTempUsageDetail_20' ) end [2025-01-15 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256239', 'tblTempVendorCDR_20' ) start [2025-01-15 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256239', 'tblTempVendorCDR_20' ) end [2025-01-15 21:03:18] Production.INFO: ProcessCDR(1,14256239,1,1,2) [2025-01-15 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256239', 'tblTempUsageDetail_20' ) start [2025-01-15 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256239', 'tblTempUsageDetail_20' ) end [2025-01-15 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:03:22] Production.INFO: ==23589== Releasing lock... [2025-01-15 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:03:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-15 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:04:05 [end_date_ymd] => 2025-01-15 21:04:05 [RateCDR] => 1 ) [2025-01-15 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:04:05' and `end` < '2025-01-15 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:04:17] Production.INFO: count ==1922 [2025-01-15 21:04:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:04:05 - End Time 2025-01-15 21:04:05 [2025-01-15 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256244', 'tblTempUsageDetail_20' ) start [2025-01-15 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256244', 'tblTempUsageDetail_20' ) end [2025-01-15 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256244', 'tblTempVendorCDR_20' ) start [2025-01-15 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256244', 'tblTempVendorCDR_20' ) end [2025-01-15 21:04:18] Production.INFO: ProcessCDR(1,14256244,1,1,2) [2025-01-15 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256244', 'tblTempUsageDetail_20' ) start [2025-01-15 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256244', 'tblTempUsageDetail_20' ) end [2025-01-15 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:04:21] Production.INFO: ==23669== Releasing lock... [2025-01-15 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:04:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-15 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:05:05 [end_date_ymd] => 2025-01-15 21:05:05 [RateCDR] => 1 ) [2025-01-15 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:05:05' and `end` < '2025-01-15 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:05:17] Production.INFO: count ==1920 [2025-01-15 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:05:05 - End Time 2025-01-15 21:05:05 [2025-01-15 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256249', 'tblTempUsageDetail_20' ) start [2025-01-15 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256249', 'tblTempUsageDetail_20' ) end [2025-01-15 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256249', 'tblTempVendorCDR_20' ) start [2025-01-15 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256249', 'tblTempVendorCDR_20' ) end [2025-01-15 21:05:18] Production.INFO: ProcessCDR(1,14256249,1,1,2) [2025-01-15 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256249', 'tblTempUsageDetail_20' ) start [2025-01-15 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256249', 'tblTempUsageDetail_20' ) end [2025-01-15 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:05:21] Production.INFO: ==23751== Releasing lock... [2025-01-15 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:05:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-15 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:06:05 [end_date_ymd] => 2025-01-15 21:06:05 [RateCDR] => 1 ) [2025-01-15 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:06:05' and `end` < '2025-01-15 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:06:18] Production.INFO: count ==1919 [2025-01-15 21:06:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:06:05 - End Time 2025-01-15 21:06:05 [2025-01-15 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256254', 'tblTempUsageDetail_20' ) start [2025-01-15 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256254', 'tblTempUsageDetail_20' ) end [2025-01-15 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256254', 'tblTempVendorCDR_20' ) start [2025-01-15 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256254', 'tblTempVendorCDR_20' ) end [2025-01-15 21:06:18] Production.INFO: ProcessCDR(1,14256254,1,1,2) [2025-01-15 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256254', 'tblTempUsageDetail_20' ) start [2025-01-15 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256254', 'tblTempUsageDetail_20' ) end [2025-01-15 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:06:22] Production.INFO: ==23830== Releasing lock... [2025-01-15 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:06:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-15 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:07:05 [end_date_ymd] => 2025-01-15 21:07:05 [RateCDR] => 1 ) [2025-01-15 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:07:05' and `end` < '2025-01-15 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:07:18] Production.INFO: count ==1920 [2025-01-15 21:07:19] Production.ERROR: pbx CDR StartTime 2025-01-15 18:07:05 - End Time 2025-01-15 21:07:05 [2025-01-15 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256259', 'tblTempUsageDetail_20' ) start [2025-01-15 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256259', 'tblTempUsageDetail_20' ) end [2025-01-15 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256259', 'tblTempVendorCDR_20' ) start [2025-01-15 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256259', 'tblTempVendorCDR_20' ) end [2025-01-15 21:07:19] Production.INFO: ProcessCDR(1,14256259,1,1,2) [2025-01-15 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256259', 'tblTempUsageDetail_20' ) start [2025-01-15 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256259', 'tblTempUsageDetail_20' ) end [2025-01-15 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:07:23] Production.INFO: ==23916== Releasing lock... [2025-01-15 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:07:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-15 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:08:05 [end_date_ymd] => 2025-01-15 21:08:05 [RateCDR] => 1 ) [2025-01-15 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:08:05' and `end` < '2025-01-15 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:08:17] Production.INFO: count ==1918 [2025-01-15 21:08:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:08:05 - End Time 2025-01-15 21:08:05 [2025-01-15 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256264', 'tblTempUsageDetail_20' ) start [2025-01-15 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256264', 'tblTempUsageDetail_20' ) end [2025-01-15 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256264', 'tblTempVendorCDR_20' ) start [2025-01-15 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256264', 'tblTempVendorCDR_20' ) end [2025-01-15 21:08:18] Production.INFO: ProcessCDR(1,14256264,1,1,2) [2025-01-15 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256264', 'tblTempUsageDetail_20' ) start [2025-01-15 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256264', 'tblTempUsageDetail_20' ) end [2025-01-15 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:08:21] Production.INFO: ==24001== Releasing lock... [2025-01-15 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:08:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-15 21:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:09:04 [end_date_ymd] => 2025-01-15 21:09:04 [RateCDR] => 1 ) [2025-01-15 21:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:09:04' and `end` < '2025-01-15 21:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:09:17] Production.INFO: count ==1918 [2025-01-15 21:09:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:09:04 - End Time 2025-01-15 21:09:04 [2025-01-15 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256269', 'tblTempUsageDetail_20' ) start [2025-01-15 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256269', 'tblTempUsageDetail_20' ) end [2025-01-15 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256269', 'tblTempVendorCDR_20' ) start [2025-01-15 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256269', 'tblTempVendorCDR_20' ) end [2025-01-15 21:09:18] Production.INFO: ProcessCDR(1,14256269,1,1,2) [2025-01-15 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256269', 'tblTempUsageDetail_20' ) start [2025-01-15 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256269', 'tblTempUsageDetail_20' ) end [2025-01-15 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:09:22] Production.INFO: ==24084== Releasing lock... [2025-01-15 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:09:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-15 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:10:06 [end_date_ymd] => 2025-01-15 21:10:06 [RateCDR] => 1 ) [2025-01-15 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:10:06' and `end` < '2025-01-15 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:10:18] Production.INFO: count ==1909 [2025-01-15 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-15 18:10:06 - End Time 2025-01-15 21:10:06 [2025-01-15 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256275', 'tblTempUsageDetail_20' ) start [2025-01-15 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256275', 'tblTempUsageDetail_20' ) end [2025-01-15 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256275', 'tblTempVendorCDR_20' ) start [2025-01-15 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256275', 'tblTempVendorCDR_20' ) end [2025-01-15 21:10:19] Production.INFO: ProcessCDR(1,14256275,1,1,2) [2025-01-15 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256275', 'tblTempUsageDetail_20' ) start [2025-01-15 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256275', 'tblTempUsageDetail_20' ) end [2025-01-15 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:10:22] Production.INFO: ==24167== Releasing lock... [2025-01-15 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:10:22] Production.INFO: 42 MB #Memory Used# [2025-01-15 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:11:05 [end_date_ymd] => 2025-01-15 21:11:05 [RateCDR] => 1 ) [2025-01-15 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:11:05' and `end` < '2025-01-15 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:11:17] Production.INFO: count ==1857 [2025-01-15 21:11:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:11:05 - End Time 2025-01-15 21:11:05 [2025-01-15 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256280', 'tblTempUsageDetail_20' ) start [2025-01-15 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256280', 'tblTempUsageDetail_20' ) end [2025-01-15 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256280', 'tblTempVendorCDR_20' ) start [2025-01-15 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256280', 'tblTempVendorCDR_20' ) end [2025-01-15 21:11:18] Production.INFO: ProcessCDR(1,14256280,1,1,2) [2025-01-15 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256280', 'tblTempUsageDetail_20' ) start [2025-01-15 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256280', 'tblTempUsageDetail_20' ) end [2025-01-15 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:11:21] Production.INFO: ==24249== Releasing lock... [2025-01-15 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:11:21] Production.INFO: 42 MB #Memory Used# [2025-01-15 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:12:05 [end_date_ymd] => 2025-01-15 21:12:05 [RateCDR] => 1 ) [2025-01-15 21:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:12:05' and `end` < '2025-01-15 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:12:18] Production.INFO: count ==1856 [2025-01-15 21:12:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:12:05 - End Time 2025-01-15 21:12:05 [2025-01-15 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256285', 'tblTempUsageDetail_20' ) start [2025-01-15 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256285', 'tblTempUsageDetail_20' ) end [2025-01-15 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256285', 'tblTempVendorCDR_20' ) start [2025-01-15 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256285', 'tblTempVendorCDR_20' ) end [2025-01-15 21:12:18] Production.INFO: ProcessCDR(1,14256285,1,1,2) [2025-01-15 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256285', 'tblTempUsageDetail_20' ) start [2025-01-15 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256285', 'tblTempUsageDetail_20' ) end [2025-01-15 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:12:22] Production.INFO: ==24326== Releasing lock... [2025-01-15 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:12:22] Production.INFO: 42 MB #Memory Used# [2025-01-15 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:13:05 [end_date_ymd] => 2025-01-15 21:13:05 [RateCDR] => 1 ) [2025-01-15 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:13:05' and `end` < '2025-01-15 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:13:18] Production.INFO: count ==1847 [2025-01-15 21:13:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:13:05 - End Time 2025-01-15 21:13:05 [2025-01-15 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256290', 'tblTempUsageDetail_20' ) start [2025-01-15 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256290', 'tblTempUsageDetail_20' ) end [2025-01-15 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256290', 'tblTempVendorCDR_20' ) start [2025-01-15 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256290', 'tblTempVendorCDR_20' ) end [2025-01-15 21:13:18] Production.INFO: ProcessCDR(1,14256290,1,1,2) [2025-01-15 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256290', 'tblTempUsageDetail_20' ) start [2025-01-15 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256290', 'tblTempUsageDetail_20' ) end [2025-01-15 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:13:22] Production.INFO: ==24404== Releasing lock... [2025-01-15 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:13:22] Production.INFO: 42 MB #Memory Used# [2025-01-15 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:14:05 [end_date_ymd] => 2025-01-15 21:14:05 [RateCDR] => 1 ) [2025-01-15 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:14:05' and `end` < '2025-01-15 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:14:18] Production.INFO: count ==1843 [2025-01-15 21:14:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:14:05 - End Time 2025-01-15 21:14:05 [2025-01-15 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256295', 'tblTempUsageDetail_20' ) start [2025-01-15 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256295', 'tblTempUsageDetail_20' ) end [2025-01-15 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256295', 'tblTempVendorCDR_20' ) start [2025-01-15 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256295', 'tblTempVendorCDR_20' ) end [2025-01-15 21:14:18] Production.INFO: ProcessCDR(1,14256295,1,1,2) [2025-01-15 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256295', 'tblTempUsageDetail_20' ) start [2025-01-15 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256295', 'tblTempUsageDetail_20' ) end [2025-01-15 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:14:22] Production.INFO: ==24482== Releasing lock... [2025-01-15 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:14:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-15 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:15:05 [end_date_ymd] => 2025-01-15 21:15:05 [RateCDR] => 1 ) [2025-01-15 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:15:05' and `end` < '2025-01-15 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:15:18] Production.INFO: count ==1826 [2025-01-15 21:15:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:15:05 - End Time 2025-01-15 21:15:05 [2025-01-15 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256300', 'tblTempUsageDetail_20' ) start [2025-01-15 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256300', 'tblTempUsageDetail_20' ) end [2025-01-15 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256300', 'tblTempVendorCDR_20' ) start [2025-01-15 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256300', 'tblTempVendorCDR_20' ) end [2025-01-15 21:15:18] Production.INFO: ProcessCDR(1,14256300,1,1,2) [2025-01-15 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256300', 'tblTempUsageDetail_20' ) start [2025-01-15 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256300', 'tblTempUsageDetail_20' ) end [2025-01-15 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:15:22] Production.INFO: ==24560== Releasing lock... [2025-01-15 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:15:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-15 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:16:06 [end_date_ymd] => 2025-01-15 21:16:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 18:16:06' and `end` < '2025-01-15 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-01-15 21:16:18] Production.INFO: count ==1821 [2025-01-15 21:16:19] Production.ERROR: pbx CDR StartTime 2025-01-15 18:16:06 - End Time 2025-01-15 21:16:06 [2025-01-15 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256305', 'tblTempUsageDetail_20' ) start [2025-01-15 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256305', 'tblTempUsageDetail_20' ) end [2025-01-15 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256305', 'tblTempVendorCDR_20' ) start [2025-01-15 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256305', 'tblTempVendorCDR_20' ) end [2025-01-15 21:16:19] Production.INFO: ProcessCDR(1,14256305,1,1,2) [2025-01-15 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256305', 'tblTempUsageDetail_20' ) start [2025-01-15 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256305', 'tblTempUsageDetail_20' ) end [2025-01-15 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:16:22] Production.INFO: ==24638== Releasing lock... [2025-01-15 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:16:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-15 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:17:05 [end_date_ymd] => 2025-01-15 21:17:05 [RateCDR] => 1 ) [2025-01-15 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:17:05' and `end` < '2025-01-15 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:17:17] Production.INFO: count ==1811 [2025-01-15 21:17:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:17:05 - End Time 2025-01-15 21:17:05 [2025-01-15 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256310', 'tblTempUsageDetail_20' ) start [2025-01-15 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256310', 'tblTempUsageDetail_20' ) end [2025-01-15 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256310', 'tblTempVendorCDR_20' ) start [2025-01-15 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256310', 'tblTempVendorCDR_20' ) end [2025-01-15 21:17:18] Production.INFO: ProcessCDR(1,14256310,1,1,2) [2025-01-15 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256310', 'tblTempUsageDetail_20' ) start [2025-01-15 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256310', 'tblTempUsageDetail_20' ) end [2025-01-15 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:17:21] Production.INFO: ==24715== Releasing lock... [2025-01-15 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:17:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-15 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:18:05 [end_date_ymd] => 2025-01-15 21:18:05 [RateCDR] => 1 ) [2025-01-15 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:18:05' and `end` < '2025-01-15 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:18:18] Production.INFO: count ==1809 [2025-01-15 21:18:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:18:05 - End Time 2025-01-15 21:18:05 [2025-01-15 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256315', 'tblTempUsageDetail_20' ) start [2025-01-15 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256315', 'tblTempUsageDetail_20' ) end [2025-01-15 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256315', 'tblTempVendorCDR_20' ) start [2025-01-15 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256315', 'tblTempVendorCDR_20' ) end [2025-01-15 21:18:18] Production.INFO: ProcessCDR(1,14256315,1,1,2) [2025-01-15 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256315', 'tblTempUsageDetail_20' ) start [2025-01-15 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256315', 'tblTempUsageDetail_20' ) end [2025-01-15 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:18:22] Production.INFO: ==24827== Releasing lock... [2025-01-15 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:18:22] Production.INFO: 42 MB #Memory Used# [2025-01-15 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:19:05 [end_date_ymd] => 2025-01-15 21:19:05 [RateCDR] => 1 ) [2025-01-15 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:19:05' and `end` < '2025-01-15 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:19:17] Production.INFO: count ==1803 [2025-01-15 21:19:17] Production.ERROR: pbx CDR StartTime 2025-01-15 18:19:05 - End Time 2025-01-15 21:19:05 [2025-01-15 21:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256320', 'tblTempUsageDetail_20' ) start [2025-01-15 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256320', 'tblTempUsageDetail_20' ) end [2025-01-15 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256320', 'tblTempVendorCDR_20' ) start [2025-01-15 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256320', 'tblTempVendorCDR_20' ) end [2025-01-15 21:19:17] Production.INFO: ProcessCDR(1,14256320,1,1,2) [2025-01-15 21:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256320', 'tblTempUsageDetail_20' ) start [2025-01-15 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256320', 'tblTempUsageDetail_20' ) end [2025-01-15 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:19:21] Production.INFO: ==24901== Releasing lock... [2025-01-15 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:19:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-15 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:20:06 [end_date_ymd] => 2025-01-15 21:20:06 [RateCDR] => 1 ) [2025-01-15 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:20:06' and `end` < '2025-01-15 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:20:18] Production.INFO: count ==1802 [2025-01-15 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-15 18:20:06 - End Time 2025-01-15 21:20:06 [2025-01-15 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256326', 'tblTempUsageDetail_20' ) start [2025-01-15 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256326', 'tblTempUsageDetail_20' ) end [2025-01-15 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256326', 'tblTempVendorCDR_20' ) start [2025-01-15 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256326', 'tblTempVendorCDR_20' ) end [2025-01-15 21:20:19] Production.INFO: ProcessCDR(1,14256326,1,1,2) [2025-01-15 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256326', 'tblTempUsageDetail_20' ) start [2025-01-15 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256326', 'tblTempUsageDetail_20' ) end [2025-01-15 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:20:22] Production.INFO: ==24977== Releasing lock... [2025-01-15 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:20:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-15 21:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:21:04 [end_date_ymd] => 2025-01-15 21:21:04 [RateCDR] => 1 ) [2025-01-15 21:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:21:04' and `end` < '2025-01-15 21:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:21:16] Production.INFO: count ==1748 [2025-01-15 21:21:17] Production.ERROR: pbx CDR StartTime 2025-01-15 18:21:04 - End Time 2025-01-15 21:21:04 [2025-01-15 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256331', 'tblTempUsageDetail_20' ) start [2025-01-15 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256331', 'tblTempUsageDetail_20' ) end [2025-01-15 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256331', 'tblTempVendorCDR_20' ) start [2025-01-15 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256331', 'tblTempVendorCDR_20' ) end [2025-01-15 21:21:17] Production.INFO: ProcessCDR(1,14256331,1,1,2) [2025-01-15 21:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256331', 'tblTempUsageDetail_20' ) start [2025-01-15 21:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256331', 'tblTempUsageDetail_20' ) end [2025-01-15 21:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:21:20] Production.INFO: ==25052== Releasing lock... [2025-01-15 21:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:21:20] Production.INFO: 41.25 MB #Memory Used# [2025-01-15 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:22:05 [end_date_ymd] => 2025-01-15 21:22:05 [RateCDR] => 1 ) [2025-01-15 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:22:05' and `end` < '2025-01-15 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:22:18] Production.INFO: count ==1735 [2025-01-15 21:22:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:22:05 - End Time 2025-01-15 21:22:05 [2025-01-15 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256336', 'tblTempUsageDetail_20' ) start [2025-01-15 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256336', 'tblTempUsageDetail_20' ) end [2025-01-15 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256336', 'tblTempVendorCDR_20' ) start [2025-01-15 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256336', 'tblTempVendorCDR_20' ) end [2025-01-15 21:22:18] Production.INFO: ProcessCDR(1,14256336,1,1,2) [2025-01-15 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256336', 'tblTempUsageDetail_20' ) start [2025-01-15 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256336', 'tblTempUsageDetail_20' ) end [2025-01-15 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:22:22] Production.INFO: ==25127== Releasing lock... [2025-01-15 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:22:22] Production.INFO: 41 MB #Memory Used# [2025-01-15 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:23:06 [end_date_ymd] => 2025-01-15 21:23:06 [RateCDR] => 1 ) [2025-01-15 21:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:23:06' and `end` < '2025-01-15 21:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:23:18] Production.INFO: count ==1734 [2025-01-15 21:23:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:23:06 - End Time 2025-01-15 21:23:06 [2025-01-15 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256341', 'tblTempUsageDetail_20' ) start [2025-01-15 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256341', 'tblTempUsageDetail_20' ) end [2025-01-15 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256341', 'tblTempVendorCDR_20' ) start [2025-01-15 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256341', 'tblTempVendorCDR_20' ) end [2025-01-15 21:23:18] Production.INFO: ProcessCDR(1,14256341,1,1,2) [2025-01-15 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256341', 'tblTempUsageDetail_20' ) start [2025-01-15 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256341', 'tblTempUsageDetail_20' ) end [2025-01-15 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:23:22] Production.INFO: ==25201== Releasing lock... [2025-01-15 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:23:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-15 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:24:05 [end_date_ymd] => 2025-01-15 21:24:05 [RateCDR] => 1 ) [2025-01-15 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:24:05' and `end` < '2025-01-15 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:24:18] Production.INFO: count ==1728 [2025-01-15 21:24:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:24:05 - End Time 2025-01-15 21:24:05 [2025-01-15 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256346', 'tblTempUsageDetail_20' ) start [2025-01-15 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256346', 'tblTempUsageDetail_20' ) end [2025-01-15 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256346', 'tblTempVendorCDR_20' ) start [2025-01-15 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256346', 'tblTempVendorCDR_20' ) end [2025-01-15 21:24:18] Production.INFO: ProcessCDR(1,14256346,1,1,2) [2025-01-15 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256346', 'tblTempUsageDetail_20' ) start [2025-01-15 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256346', 'tblTempUsageDetail_20' ) end [2025-01-15 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:24:22] Production.INFO: ==25270== Releasing lock... [2025-01-15 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:24:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-15 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:25:05 [end_date_ymd] => 2025-01-15 21:25:05 [RateCDR] => 1 ) [2025-01-15 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:25:05' and `end` < '2025-01-15 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:25:18] Production.INFO: count ==1728 [2025-01-15 21:25:19] Production.ERROR: pbx CDR StartTime 2025-01-15 18:25:05 - End Time 2025-01-15 21:25:05 [2025-01-15 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256351', 'tblTempUsageDetail_20' ) start [2025-01-15 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256351', 'tblTempUsageDetail_20' ) end [2025-01-15 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256351', 'tblTempVendorCDR_20' ) start [2025-01-15 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256351', 'tblTempVendorCDR_20' ) end [2025-01-15 21:25:19] Production.INFO: ProcessCDR(1,14256351,1,1,2) [2025-01-15 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256351', 'tblTempUsageDetail_20' ) start [2025-01-15 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256351', 'tblTempUsageDetail_20' ) end [2025-01-15 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:25:23] Production.INFO: ==25339== Releasing lock... [2025-01-15 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:25:23] Production.INFO: 41 MB #Memory Used# [2025-01-15 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:26:05 [end_date_ymd] => 2025-01-15 21:26:05 [RateCDR] => 1 ) [2025-01-15 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:26:05' and `end` < '2025-01-15 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:26:17] Production.INFO: count ==1727 [2025-01-15 21:26:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:26:05 - End Time 2025-01-15 21:26:05 [2025-01-15 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256356', 'tblTempUsageDetail_20' ) start [2025-01-15 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256356', 'tblTempUsageDetail_20' ) end [2025-01-15 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256356', 'tblTempVendorCDR_20' ) start [2025-01-15 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256356', 'tblTempVendorCDR_20' ) end [2025-01-15 21:26:18] Production.INFO: ProcessCDR(1,14256356,1,1,2) [2025-01-15 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256356', 'tblTempUsageDetail_20' ) start [2025-01-15 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256356', 'tblTempUsageDetail_20' ) end [2025-01-15 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:26:21] Production.INFO: ==25411== Releasing lock... [2025-01-15 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:26:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-15 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:27:04 [end_date_ymd] => 2025-01-15 21:27:04 [RateCDR] => 1 ) [2025-01-15 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:27:04' and `end` < '2025-01-15 21:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:27:16] Production.INFO: count ==1717 [2025-01-15 21:27:17] Production.ERROR: pbx CDR StartTime 2025-01-15 18:27:04 - End Time 2025-01-15 21:27:04 [2025-01-15 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256361', 'tblTempUsageDetail_20' ) start [2025-01-15 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256361', 'tblTempUsageDetail_20' ) end [2025-01-15 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256361', 'tblTempVendorCDR_20' ) start [2025-01-15 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256361', 'tblTempVendorCDR_20' ) end [2025-01-15 21:27:17] Production.INFO: ProcessCDR(1,14256361,1,1,2) [2025-01-15 21:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256361', 'tblTempUsageDetail_20' ) start [2025-01-15 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256361', 'tblTempUsageDetail_20' ) end [2025-01-15 21:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:27:20] Production.INFO: ==25482== Releasing lock... [2025-01-15 21:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:27:20] Production.INFO: 41.25 MB #Memory Used# [2025-01-15 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:28:05 [end_date_ymd] => 2025-01-15 21:28:05 [RateCDR] => 1 ) [2025-01-15 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:28:05' and `end` < '2025-01-15 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:28:18] Production.INFO: count ==1711 [2025-01-15 21:28:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:28:05 - End Time 2025-01-15 21:28:05 [2025-01-15 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256364', 'tblTempUsageDetail_20' ) start [2025-01-15 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256364', 'tblTempUsageDetail_20' ) end [2025-01-15 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256364', 'tblTempVendorCDR_20' ) start [2025-01-15 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256364', 'tblTempVendorCDR_20' ) end [2025-01-15 21:28:18] Production.INFO: ProcessCDR(1,14256364,1,1,2) [2025-01-15 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256364', 'tblTempUsageDetail_20' ) start [2025-01-15 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256364', 'tblTempUsageDetail_20' ) end [2025-01-15 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:28:21] Production.INFO: ==25552== Releasing lock... [2025-01-15 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:28:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-15 21:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:29:04 [end_date_ymd] => 2025-01-15 21:29:04 [RateCDR] => 1 ) [2025-01-15 21:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:29:04' and `end` < '2025-01-15 21:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:29:17] Production.INFO: count ==1710 [2025-01-15 21:29:17] Production.ERROR: pbx CDR StartTime 2025-01-15 18:29:04 - End Time 2025-01-15 21:29:04 [2025-01-15 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256371', 'tblTempUsageDetail_20' ) start [2025-01-15 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256371', 'tblTempUsageDetail_20' ) end [2025-01-15 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256371', 'tblTempVendorCDR_20' ) start [2025-01-15 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256371', 'tblTempVendorCDR_20' ) end [2025-01-15 21:29:17] Production.INFO: ProcessCDR(1,14256371,1,1,2) [2025-01-15 21:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256371', 'tblTempUsageDetail_20' ) start [2025-01-15 21:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256371', 'tblTempUsageDetail_20' ) end [2025-01-15 21:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:29:20] Production.INFO: ==25623== Releasing lock... [2025-01-15 21:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:29:20] Production.INFO: 40.5 MB #Memory Used# [2025-01-15 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:30:05 [end_date_ymd] => 2025-01-15 21:30:05 [RateCDR] => 1 ) [2025-01-15 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:30:05' and `end` < '2025-01-15 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:30:18] Production.INFO: count ==1710 [2025-01-15 21:30:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:30:05 - End Time 2025-01-15 21:30:05 [2025-01-15 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256376', 'tblTempUsageDetail_20' ) start [2025-01-15 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256376', 'tblTempUsageDetail_20' ) end [2025-01-15 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256376', 'tblTempVendorCDR_20' ) start [2025-01-15 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256376', 'tblTempVendorCDR_20' ) end [2025-01-15 21:30:18] Production.INFO: ProcessCDR(1,14256376,1,1,2) [2025-01-15 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256376', 'tblTempUsageDetail_20' ) start [2025-01-15 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256376', 'tblTempUsageDetail_20' ) end [2025-01-15 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:30:22] Production.INFO: ==25696== Releasing lock... [2025-01-15 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:30:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-15 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:31:05 [end_date_ymd] => 2025-01-15 21:31:05 [RateCDR] => 1 ) [2025-01-15 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:31:05' and `end` < '2025-01-15 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:31:18] Production.INFO: count ==1662 [2025-01-15 21:31:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:31:05 - End Time 2025-01-15 21:31:05 [2025-01-15 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256382', 'tblTempUsageDetail_20' ) start [2025-01-15 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256382', 'tblTempUsageDetail_20' ) end [2025-01-15 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256382', 'tblTempVendorCDR_20' ) start [2025-01-15 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256382', 'tblTempVendorCDR_20' ) end [2025-01-15 21:31:18] Production.INFO: ProcessCDR(1,14256382,1,1,2) [2025-01-15 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256382', 'tblTempUsageDetail_20' ) start [2025-01-15 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256382', 'tblTempUsageDetail_20' ) end [2025-01-15 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:31:21] Production.INFO: ==25768== Releasing lock... [2025-01-15 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:31:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-15 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:32:05 [end_date_ymd] => 2025-01-15 21:32:05 [RateCDR] => 1 ) [2025-01-15 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:32:05' and `end` < '2025-01-15 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:32:17] Production.INFO: count ==1662 [2025-01-15 21:32:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:32:05 - End Time 2025-01-15 21:32:05 [2025-01-15 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256387', 'tblTempUsageDetail_20' ) start [2025-01-15 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256387', 'tblTempUsageDetail_20' ) end [2025-01-15 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256387', 'tblTempVendorCDR_20' ) start [2025-01-15 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256387', 'tblTempVendorCDR_20' ) end [2025-01-15 21:32:18] Production.INFO: ProcessCDR(1,14256387,1,1,2) [2025-01-15 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256387', 'tblTempUsageDetail_20' ) start [2025-01-15 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256387', 'tblTempUsageDetail_20' ) end [2025-01-15 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:32:21] Production.INFO: ==25840== Releasing lock... [2025-01-15 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:32:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-15 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:33:05 [end_date_ymd] => 2025-01-15 21:33:05 [RateCDR] => 1 ) [2025-01-15 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:33:05' and `end` < '2025-01-15 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:33:18] Production.INFO: count ==1662 [2025-01-15 21:33:19] Production.ERROR: pbx CDR StartTime 2025-01-15 18:33:05 - End Time 2025-01-15 21:33:05 [2025-01-15 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256392', 'tblTempUsageDetail_20' ) start [2025-01-15 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256392', 'tblTempUsageDetail_20' ) end [2025-01-15 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256392', 'tblTempVendorCDR_20' ) start [2025-01-15 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256392', 'tblTempVendorCDR_20' ) end [2025-01-15 21:33:19] Production.INFO: ProcessCDR(1,14256392,1,1,2) [2025-01-15 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256392', 'tblTempUsageDetail_20' ) start [2025-01-15 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256392', 'tblTempUsageDetail_20' ) end [2025-01-15 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:33:22] Production.INFO: ==25911== Releasing lock... [2025-01-15 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:33:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-15 21:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:34:04 [end_date_ymd] => 2025-01-15 21:34:04 [RateCDR] => 1 ) [2025-01-15 21:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:34:04' and `end` < '2025-01-15 21:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:34:17] Production.INFO: count ==1662 [2025-01-15 21:34:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:34:04 - End Time 2025-01-15 21:34:04 [2025-01-15 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256397', 'tblTempUsageDetail_20' ) start [2025-01-15 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256397', 'tblTempUsageDetail_20' ) end [2025-01-15 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256397', 'tblTempVendorCDR_20' ) start [2025-01-15 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256397', 'tblTempVendorCDR_20' ) end [2025-01-15 21:34:18] Production.INFO: ProcessCDR(1,14256397,1,1,2) [2025-01-15 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256397', 'tblTempUsageDetail_20' ) start [2025-01-15 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256397', 'tblTempUsageDetail_20' ) end [2025-01-15 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:34:21] Production.INFO: ==26023== Releasing lock... [2025-01-15 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:34:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-15 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:35:05 [end_date_ymd] => 2025-01-15 21:35:05 [RateCDR] => 1 ) [2025-01-15 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:35:05' and `end` < '2025-01-15 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:35:17] Production.INFO: count ==1660 [2025-01-15 21:35:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:35:05 - End Time 2025-01-15 21:35:05 [2025-01-15 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256402', 'tblTempUsageDetail_20' ) start [2025-01-15 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256402', 'tblTempUsageDetail_20' ) end [2025-01-15 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256402', 'tblTempVendorCDR_20' ) start [2025-01-15 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256402', 'tblTempVendorCDR_20' ) end [2025-01-15 21:35:18] Production.INFO: ProcessCDR(1,14256402,1,1,2) [2025-01-15 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256402', 'tblTempUsageDetail_20' ) start [2025-01-15 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256402', 'tblTempUsageDetail_20' ) end [2025-01-15 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:35:21] Production.INFO: ==26095== Releasing lock... [2025-01-15 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:35:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-15 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:36:05 [end_date_ymd] => 2025-01-15 21:36:05 [RateCDR] => 1 ) [2025-01-15 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:36:05' and `end` < '2025-01-15 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:36:20] Production.INFO: count ==1653 [2025-01-15 21:36:20] Production.ERROR: pbx CDR StartTime 2025-01-15 18:36:05 - End Time 2025-01-15 21:36:05 [2025-01-15 21:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256407', 'tblTempUsageDetail_20' ) start [2025-01-15 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256407', 'tblTempUsageDetail_20' ) end [2025-01-15 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256407', 'tblTempVendorCDR_20' ) start [2025-01-15 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256407', 'tblTempVendorCDR_20' ) end [2025-01-15 21:36:20] Production.INFO: ProcessCDR(1,14256407,1,1,2) [2025-01-15 21:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256407', 'tblTempUsageDetail_20' ) start [2025-01-15 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256407', 'tblTempUsageDetail_20' ) end [2025-01-15 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:36:23] Production.INFO: ==26169== Releasing lock... [2025-01-15 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:36:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-15 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:37:05 [end_date_ymd] => 2025-01-15 21:37:05 [RateCDR] => 1 ) [2025-01-15 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:37:05' and `end` < '2025-01-15 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:37:17] Production.INFO: count ==1657 [2025-01-15 21:37:17] Production.ERROR: pbx CDR StartTime 2025-01-15 18:37:05 - End Time 2025-01-15 21:37:05 [2025-01-15 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256412', 'tblTempUsageDetail_20' ) start [2025-01-15 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256412', 'tblTempUsageDetail_20' ) end [2025-01-15 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256412', 'tblTempVendorCDR_20' ) start [2025-01-15 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256412', 'tblTempVendorCDR_20' ) end [2025-01-15 21:37:17] Production.INFO: ProcessCDR(1,14256412,1,1,2) [2025-01-15 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256412', 'tblTempUsageDetail_20' ) start [2025-01-15 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256412', 'tblTempUsageDetail_20' ) end [2025-01-15 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:37:21] Production.INFO: ==26244== Releasing lock... [2025-01-15 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:37:21] Production.INFO: 41 MB #Memory Used# [2025-01-15 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:38:05 [end_date_ymd] => 2025-01-15 21:38:05 [RateCDR] => 1 ) [2025-01-15 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:38:05' and `end` < '2025-01-15 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:38:18] Production.INFO: count ==1656 [2025-01-15 21:38:19] Production.ERROR: pbx CDR StartTime 2025-01-15 18:38:05 - End Time 2025-01-15 21:38:05 [2025-01-15 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256417', 'tblTempUsageDetail_20' ) start [2025-01-15 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256417', 'tblTempUsageDetail_20' ) end [2025-01-15 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256417', 'tblTempVendorCDR_20' ) start [2025-01-15 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256417', 'tblTempVendorCDR_20' ) end [2025-01-15 21:38:19] Production.INFO: ProcessCDR(1,14256417,1,1,2) [2025-01-15 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256417', 'tblTempUsageDetail_20' ) start [2025-01-15 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256417', 'tblTempUsageDetail_20' ) end [2025-01-15 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:38:22] Production.INFO: ==26320== Releasing lock... [2025-01-15 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:38:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-15 21:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:39:04 [end_date_ymd] => 2025-01-15 21:39:04 [RateCDR] => 1 ) [2025-01-15 21:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:39:04' and `end` < '2025-01-15 21:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:39:17] Production.INFO: count ==1656 [2025-01-15 21:39:17] Production.ERROR: pbx CDR StartTime 2025-01-15 18:39:04 - End Time 2025-01-15 21:39:04 [2025-01-15 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256422', 'tblTempUsageDetail_20' ) start [2025-01-15 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256422', 'tblTempUsageDetail_20' ) end [2025-01-15 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256422', 'tblTempVendorCDR_20' ) start [2025-01-15 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256422', 'tblTempVendorCDR_20' ) end [2025-01-15 21:39:17] Production.INFO: ProcessCDR(1,14256422,1,1,2) [2025-01-15 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256422', 'tblTempUsageDetail_20' ) start [2025-01-15 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256422', 'tblTempUsageDetail_20' ) end [2025-01-15 21:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:39:20] Production.INFO: ==26393== Releasing lock... [2025-01-15 21:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:39:20] Production.INFO: 40.75 MB #Memory Used# [2025-01-15 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:40:05 [end_date_ymd] => 2025-01-15 21:40:05 [RateCDR] => 1 ) [2025-01-15 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:40:05' and `end` < '2025-01-15 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:40:18] Production.INFO: count ==1654 [2025-01-15 21:40:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:40:05 - End Time 2025-01-15 21:40:05 [2025-01-15 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256427', 'tblTempUsageDetail_20' ) start [2025-01-15 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256427', 'tblTempUsageDetail_20' ) end [2025-01-15 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256427', 'tblTempVendorCDR_20' ) start [2025-01-15 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256427', 'tblTempVendorCDR_20' ) end [2025-01-15 21:40:18] Production.INFO: ProcessCDR(1,14256427,1,1,2) [2025-01-15 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256427', 'tblTempUsageDetail_20' ) start [2025-01-15 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256427', 'tblTempUsageDetail_20' ) end [2025-01-15 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:40:22] Production.INFO: ==26471== Releasing lock... [2025-01-15 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:40:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-15 21:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:41:04 [end_date_ymd] => 2025-01-15 21:41:04 [RateCDR] => 1 ) [2025-01-15 21:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:41:04' and `end` < '2025-01-15 21:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:41:17] Production.INFO: count ==1601 [2025-01-15 21:41:17] Production.ERROR: pbx CDR StartTime 2025-01-15 18:41:04 - End Time 2025-01-15 21:41:04 [2025-01-15 21:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256433', 'tblTempUsageDetail_20' ) start [2025-01-15 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256433', 'tblTempUsageDetail_20' ) end [2025-01-15 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256433', 'tblTempVendorCDR_20' ) start [2025-01-15 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256433', 'tblTempVendorCDR_20' ) end [2025-01-15 21:41:17] Production.INFO: ProcessCDR(1,14256433,1,1,2) [2025-01-15 21:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256433', 'tblTempUsageDetail_20' ) start [2025-01-15 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256433', 'tblTempUsageDetail_20' ) end [2025-01-15 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:41:21] Production.INFO: ==26546== Releasing lock... [2025-01-15 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:41:21] Production.INFO: 40 MB #Memory Used# [2025-01-15 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:42:05 [end_date_ymd] => 2025-01-15 21:42:05 [RateCDR] => 1 ) [2025-01-15 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:42:05' and `end` < '2025-01-15 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:42:17] Production.INFO: count ==1599 [2025-01-15 21:42:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:42:05 - End Time 2025-01-15 21:42:05 [2025-01-15 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256438', 'tblTempUsageDetail_20' ) start [2025-01-15 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256438', 'tblTempUsageDetail_20' ) end [2025-01-15 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256438', 'tblTempVendorCDR_20' ) start [2025-01-15 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256438', 'tblTempVendorCDR_20' ) end [2025-01-15 21:42:18] Production.INFO: ProcessCDR(1,14256438,1,1,2) [2025-01-15 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256438', 'tblTempUsageDetail_20' ) start [2025-01-15 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256438', 'tblTempUsageDetail_20' ) end [2025-01-15 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:42:21] Production.INFO: ==26624== Releasing lock... [2025-01-15 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:42:21] Production.INFO: 40 MB #Memory Used# [2025-01-15 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:43:05 [end_date_ymd] => 2025-01-15 21:43:05 [RateCDR] => 1 ) [2025-01-15 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:43:05' and `end` < '2025-01-15 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:43:19] Production.INFO: count ==1599 [2025-01-15 21:43:20] Production.ERROR: pbx CDR StartTime 2025-01-15 18:43:05 - End Time 2025-01-15 21:43:05 [2025-01-15 21:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256443', 'tblTempUsageDetail_20' ) start [2025-01-15 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256443', 'tblTempUsageDetail_20' ) end [2025-01-15 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256443', 'tblTempVendorCDR_20' ) start [2025-01-15 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256443', 'tblTempVendorCDR_20' ) end [2025-01-15 21:43:20] Production.INFO: ProcessCDR(1,14256443,1,1,2) [2025-01-15 21:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256443', 'tblTempUsageDetail_20' ) start [2025-01-15 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256443', 'tblTempUsageDetail_20' ) end [2025-01-15 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:43:23] Production.INFO: ==26699== Releasing lock... [2025-01-15 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:43:23] Production.INFO: 40 MB #Memory Used# [2025-01-15 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:44:05 [end_date_ymd] => 2025-01-15 21:44:05 [RateCDR] => 1 ) [2025-01-15 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:44:05' and `end` < '2025-01-15 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:44:17] Production.INFO: count ==1592 [2025-01-15 21:44:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:44:05 - End Time 2025-01-15 21:44:05 [2025-01-15 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256448', 'tblTempUsageDetail_20' ) start [2025-01-15 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256448', 'tblTempUsageDetail_20' ) end [2025-01-15 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256448', 'tblTempVendorCDR_20' ) start [2025-01-15 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256448', 'tblTempVendorCDR_20' ) end [2025-01-15 21:44:18] Production.INFO: ProcessCDR(1,14256448,1,1,2) [2025-01-15 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256448', 'tblTempUsageDetail_20' ) start [2025-01-15 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256448', 'tblTempUsageDetail_20' ) end [2025-01-15 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:44:21] Production.INFO: ==26772== Releasing lock... [2025-01-15 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:44:21] Production.INFO: 40 MB #Memory Used# [2025-01-15 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:45:05 [end_date_ymd] => 2025-01-15 21:45:05 [RateCDR] => 1 ) [2025-01-15 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:45:05' and `end` < '2025-01-15 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:45:17] Production.INFO: count ==1592 [2025-01-15 21:45:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:45:05 - End Time 2025-01-15 21:45:05 [2025-01-15 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256453', 'tblTempUsageDetail_20' ) start [2025-01-15 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256453', 'tblTempUsageDetail_20' ) end [2025-01-15 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256453', 'tblTempVendorCDR_20' ) start [2025-01-15 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256453', 'tblTempVendorCDR_20' ) end [2025-01-15 21:45:18] Production.INFO: ProcessCDR(1,14256453,1,1,2) [2025-01-15 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256453', 'tblTempUsageDetail_20' ) start [2025-01-15 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256453', 'tblTempUsageDetail_20' ) end [2025-01-15 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:45:21] Production.INFO: ==26847== Releasing lock... [2025-01-15 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:45:21] Production.INFO: 40 MB #Memory Used# [2025-01-15 21:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:46:04 [end_date_ymd] => 2025-01-15 21:46:04 [RateCDR] => 1 ) [2025-01-15 21:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:46:04' and `end` < '2025-01-15 21:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:46:17] Production.INFO: count ==1591 [2025-01-15 21:46:17] Production.ERROR: pbx CDR StartTime 2025-01-15 18:46:04 - End Time 2025-01-15 21:46:04 [2025-01-15 21:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256458', 'tblTempUsageDetail_20' ) start [2025-01-15 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256458', 'tblTempUsageDetail_20' ) end [2025-01-15 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256458', 'tblTempVendorCDR_20' ) start [2025-01-15 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256458', 'tblTempVendorCDR_20' ) end [2025-01-15 21:46:17] Production.INFO: ProcessCDR(1,14256458,1,1,2) [2025-01-15 21:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256458', 'tblTempUsageDetail_20' ) start [2025-01-15 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256458', 'tblTempUsageDetail_20' ) end [2025-01-15 21:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:46:20] Production.INFO: ==26917== Releasing lock... [2025-01-15 21:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:46:20] Production.INFO: 40 MB #Memory Used# [2025-01-15 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:47:05 [end_date_ymd] => 2025-01-15 21:47:05 [RateCDR] => 1 ) [2025-01-15 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:47:05' and `end` < '2025-01-15 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:47:17] Production.INFO: count ==1589 [2025-01-15 21:47:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:47:05 - End Time 2025-01-15 21:47:05 [2025-01-15 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256463', 'tblTempUsageDetail_20' ) start [2025-01-15 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256463', 'tblTempUsageDetail_20' ) end [2025-01-15 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256463', 'tblTempVendorCDR_20' ) start [2025-01-15 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256463', 'tblTempVendorCDR_20' ) end [2025-01-15 21:47:18] Production.INFO: ProcessCDR(1,14256463,1,1,2) [2025-01-15 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256463', 'tblTempUsageDetail_20' ) start [2025-01-15 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256463', 'tblTempUsageDetail_20' ) end [2025-01-15 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:47:21] Production.INFO: ==26989== Releasing lock... [2025-01-15 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:47:21] Production.INFO: 40 MB #Memory Used# [2025-01-15 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:48:05 [end_date_ymd] => 2025-01-15 21:48:05 [RateCDR] => 1 ) [2025-01-15 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:48:05' and `end` < '2025-01-15 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:48:19] Production.INFO: count ==1590 [2025-01-15 21:48:19] Production.ERROR: pbx CDR StartTime 2025-01-15 18:48:05 - End Time 2025-01-15 21:48:05 [2025-01-15 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256468', 'tblTempUsageDetail_20' ) start [2025-01-15 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256468', 'tblTempUsageDetail_20' ) end [2025-01-15 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256468', 'tblTempVendorCDR_20' ) start [2025-01-15 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256468', 'tblTempVendorCDR_20' ) end [2025-01-15 21:48:19] Production.INFO: ProcessCDR(1,14256468,1,1,2) [2025-01-15 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256468', 'tblTempUsageDetail_20' ) start [2025-01-15 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256468', 'tblTempUsageDetail_20' ) end [2025-01-15 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:48:22] Production.INFO: ==27059== Releasing lock... [2025-01-15 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:48:22] Production.INFO: 40 MB #Memory Used# [2025-01-15 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:49:05 [end_date_ymd] => 2025-01-15 21:49:05 [RateCDR] => 1 ) [2025-01-15 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:49:05' and `end` < '2025-01-15 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:49:18] Production.INFO: count ==1588 [2025-01-15 21:49:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:49:05 - End Time 2025-01-15 21:49:05 [2025-01-15 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256473', 'tblTempUsageDetail_20' ) start [2025-01-15 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256473', 'tblTempUsageDetail_20' ) end [2025-01-15 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256473', 'tblTempVendorCDR_20' ) start [2025-01-15 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256473', 'tblTempVendorCDR_20' ) end [2025-01-15 21:49:18] Production.INFO: ProcessCDR(1,14256473,1,1,2) [2025-01-15 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256473', 'tblTempUsageDetail_20' ) start [2025-01-15 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256473', 'tblTempUsageDetail_20' ) end [2025-01-15 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:49:22] Production.INFO: ==27171== Releasing lock... [2025-01-15 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:49:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-15 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:50:06 [end_date_ymd] => 2025-01-15 21:50:06 [RateCDR] => 1 ) [2025-01-15 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:50:06' and `end` < '2025-01-15 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:50:19] Production.INFO: count ==1585 [2025-01-15 21:50:19] Production.ERROR: pbx CDR StartTime 2025-01-15 18:50:06 - End Time 2025-01-15 21:50:06 [2025-01-15 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256478', 'tblTempUsageDetail_20' ) start [2025-01-15 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256478', 'tblTempUsageDetail_20' ) end [2025-01-15 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256478', 'tblTempVendorCDR_20' ) start [2025-01-15 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256478', 'tblTempVendorCDR_20' ) end [2025-01-15 21:50:19] Production.INFO: ProcessCDR(1,14256478,1,1,2) [2025-01-15 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256478', 'tblTempUsageDetail_20' ) start [2025-01-15 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256478', 'tblTempUsageDetail_20' ) end [2025-01-15 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:50:23] Production.INFO: ==27248== Releasing lock... [2025-01-15 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:50:23] Production.INFO: 40 MB #Memory Used# [2025-01-15 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:51:05 [end_date_ymd] => 2025-01-15 21:51:05 [RateCDR] => 1 ) [2025-01-15 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:51:05' and `end` < '2025-01-15 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:51:18] Production.INFO: count ==1563 [2025-01-15 21:51:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:51:05 - End Time 2025-01-15 21:51:05 [2025-01-15 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256484', 'tblTempUsageDetail_20' ) start [2025-01-15 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256484', 'tblTempUsageDetail_20' ) end [2025-01-15 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256484', 'tblTempVendorCDR_20' ) start [2025-01-15 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256484', 'tblTempVendorCDR_20' ) end [2025-01-15 21:51:18] Production.INFO: ProcessCDR(1,14256484,1,1,2) [2025-01-15 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256484', 'tblTempUsageDetail_20' ) start [2025-01-15 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256484', 'tblTempUsageDetail_20' ) end [2025-01-15 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:51:22] Production.INFO: ==27321== Releasing lock... [2025-01-15 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:51:22] Production.INFO: 40 MB #Memory Used# [2025-01-15 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:52:05 [end_date_ymd] => 2025-01-15 21:52:05 [RateCDR] => 1 ) [2025-01-15 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:52:05' and `end` < '2025-01-15 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:52:18] Production.INFO: count ==1558 [2025-01-15 21:52:19] Production.ERROR: pbx CDR StartTime 2025-01-15 18:52:05 - End Time 2025-01-15 21:52:05 [2025-01-15 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256489', 'tblTempUsageDetail_20' ) start [2025-01-15 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256489', 'tblTempUsageDetail_20' ) end [2025-01-15 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256489', 'tblTempVendorCDR_20' ) start [2025-01-15 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256489', 'tblTempVendorCDR_20' ) end [2025-01-15 21:52:19] Production.INFO: ProcessCDR(1,14256489,1,1,2) [2025-01-15 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256489', 'tblTempUsageDetail_20' ) start [2025-01-15 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256489', 'tblTempUsageDetail_20' ) end [2025-01-15 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:52:22] Production.INFO: ==27393== Releasing lock... [2025-01-15 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:52:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-15 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:53:05 [end_date_ymd] => 2025-01-15 21:53:05 [RateCDR] => 1 ) [2025-01-15 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:53:05' and `end` < '2025-01-15 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:53:17] Production.INFO: count ==1556 [2025-01-15 21:53:17] Production.ERROR: pbx CDR StartTime 2025-01-15 18:53:05 - End Time 2025-01-15 21:53:05 [2025-01-15 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256494', 'tblTempUsageDetail_20' ) start [2025-01-15 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256494', 'tblTempUsageDetail_20' ) end [2025-01-15 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256494', 'tblTempVendorCDR_20' ) start [2025-01-15 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256494', 'tblTempVendorCDR_20' ) end [2025-01-15 21:53:17] Production.INFO: ProcessCDR(1,14256494,1,1,2) [2025-01-15 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256494', 'tblTempUsageDetail_20' ) start [2025-01-15 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256494', 'tblTempUsageDetail_20' ) end [2025-01-15 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:53:21] Production.INFO: ==27463== Releasing lock... [2025-01-15 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:53:21] Production.INFO: 40 MB #Memory Used# [2025-01-15 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:54:05 [end_date_ymd] => 2025-01-15 21:54:05 [RateCDR] => 1 ) [2025-01-15 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:54:05' and `end` < '2025-01-15 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:54:17] Production.INFO: count ==1548 [2025-01-15 21:54:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:54:05 - End Time 2025-01-15 21:54:05 [2025-01-15 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256499', 'tblTempUsageDetail_20' ) start [2025-01-15 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256499', 'tblTempUsageDetail_20' ) end [2025-01-15 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256499', 'tblTempVendorCDR_20' ) start [2025-01-15 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256499', 'tblTempVendorCDR_20' ) end [2025-01-15 21:54:18] Production.INFO: ProcessCDR(1,14256499,1,1,2) [2025-01-15 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256499', 'tblTempUsageDetail_20' ) start [2025-01-15 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256499', 'tblTempUsageDetail_20' ) end [2025-01-15 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:54:21] Production.INFO: ==27534== Releasing lock... [2025-01-15 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:54:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-15 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:55:05 [end_date_ymd] => 2025-01-15 21:55:05 [RateCDR] => 1 ) [2025-01-15 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:55:05' and `end` < '2025-01-15 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:55:17] Production.INFO: count ==1547 [2025-01-15 21:55:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:55:05 - End Time 2025-01-15 21:55:05 [2025-01-15 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256504', 'tblTempUsageDetail_20' ) start [2025-01-15 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256504', 'tblTempUsageDetail_20' ) end [2025-01-15 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256504', 'tblTempVendorCDR_20' ) start [2025-01-15 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256504', 'tblTempVendorCDR_20' ) end [2025-01-15 21:55:18] Production.INFO: ProcessCDR(1,14256504,1,1,2) [2025-01-15 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256504', 'tblTempUsageDetail_20' ) start [2025-01-15 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256504', 'tblTempUsageDetail_20' ) end [2025-01-15 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:55:23] Production.INFO: ==27604== Releasing lock... [2025-01-15 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:55:23] Production.INFO: 40 MB #Memory Used# [2025-01-15 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:56:05 [end_date_ymd] => 2025-01-15 21:56:05 [RateCDR] => 1 ) [2025-01-15 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:56:05' and `end` < '2025-01-15 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:56:17] Production.INFO: count ==1546 [2025-01-15 21:56:18] Production.ERROR: pbx CDR StartTime 2025-01-15 18:56:05 - End Time 2025-01-15 21:56:05 [2025-01-15 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256509', 'tblTempUsageDetail_20' ) start [2025-01-15 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256509', 'tblTempUsageDetail_20' ) end [2025-01-15 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256509', 'tblTempVendorCDR_20' ) start [2025-01-15 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256509', 'tblTempVendorCDR_20' ) end [2025-01-15 21:56:18] Production.INFO: ProcessCDR(1,14256509,1,1,2) [2025-01-15 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256509', 'tblTempUsageDetail_20' ) start [2025-01-15 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256509', 'tblTempUsageDetail_20' ) end [2025-01-15 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:56:21] Production.INFO: ==27674== Releasing lock... [2025-01-15 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:56:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-15 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:57:05 [end_date_ymd] => 2025-01-15 21:57:05 [RateCDR] => 1 ) [2025-01-15 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:57:05' and `end` < '2025-01-15 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:57:18] Production.INFO: count ==1533 [2025-01-15 21:57:19] Production.ERROR: pbx CDR StartTime 2025-01-15 18:57:05 - End Time 2025-01-15 21:57:05 [2025-01-15 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256514', 'tblTempUsageDetail_20' ) start [2025-01-15 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256514', 'tblTempUsageDetail_20' ) end [2025-01-15 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256514', 'tblTempVendorCDR_20' ) start [2025-01-15 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256514', 'tblTempVendorCDR_20' ) end [2025-01-15 21:57:19] Production.INFO: ProcessCDR(1,14256514,1,1,2) [2025-01-15 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256514', 'tblTempUsageDetail_20' ) start [2025-01-15 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256514', 'tblTempUsageDetail_20' ) end [2025-01-15 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:57:23] Production.INFO: ==27746== Releasing lock... [2025-01-15 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:57:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-15 21:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:58:04 [end_date_ymd] => 2025-01-15 21:58:04 [RateCDR] => 1 ) [2025-01-15 21:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:58:04' and `end` < '2025-01-15 21:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:58:18] Production.INFO: count ==1531 [2025-01-15 21:58:19] Production.ERROR: pbx CDR StartTime 2025-01-15 18:58:04 - End Time 2025-01-15 21:58:04 [2025-01-15 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256519', 'tblTempUsageDetail_20' ) start [2025-01-15 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256519', 'tblTempUsageDetail_20' ) end [2025-01-15 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256519', 'tblTempVendorCDR_20' ) start [2025-01-15 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256519', 'tblTempVendorCDR_20' ) end [2025-01-15 21:58:19] Production.INFO: ProcessCDR(1,14256519,1,1,2) [2025-01-15 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256519', 'tblTempUsageDetail_20' ) start [2025-01-15 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256519', 'tblTempUsageDetail_20' ) end [2025-01-15 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:58:22] Production.INFO: ==27816== Releasing lock... [2025-01-15 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:58:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-15 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 18:59:05 [end_date_ymd] => 2025-01-15 21:59:05 [RateCDR] => 1 ) [2025-01-15 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 18:59:05' and `end` < '2025-01-15 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 21:59:18] Production.INFO: count ==1530 [2025-01-15 21:59:19] Production.ERROR: pbx CDR StartTime 2025-01-15 18:59:05 - End Time 2025-01-15 21:59:05 [2025-01-15 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256524', 'tblTempUsageDetail_20' ) start [2025-01-15 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256524', 'tblTempUsageDetail_20' ) end [2025-01-15 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256524', 'tblTempVendorCDR_20' ) start [2025-01-15 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256524', 'tblTempVendorCDR_20' ) end [2025-01-15 21:59:19] Production.INFO: ProcessCDR(1,14256524,1,1,2) [2025-01-15 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256524', 'tblTempUsageDetail_20' ) start [2025-01-15 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256524', 'tblTempUsageDetail_20' ) end [2025-01-15 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 21:59:22] Production.INFO: ==27886== Releasing lock... [2025-01-15 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 21:59:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-15 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:00:06 [end_date_ymd] => 2025-01-15 22:00:06 [RateCDR] => 1 ) [2025-01-15 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:00:06' and `end` < '2025-01-15 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:00:18] Production.INFO: count ==1527 [2025-01-15 22:00:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:00:06 - End Time 2025-01-15 22:00:06 [2025-01-15 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256530', 'tblTempUsageDetail_20' ) start [2025-01-15 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256530', 'tblTempUsageDetail_20' ) end [2025-01-15 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256530', 'tblTempVendorCDR_20' ) start [2025-01-15 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256530', 'tblTempVendorCDR_20' ) end [2025-01-15 22:00:18] Production.INFO: ProcessCDR(1,14256530,1,1,2) [2025-01-15 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256530', 'tblTempUsageDetail_20' ) start [2025-01-15 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256530', 'tblTempUsageDetail_20' ) end [2025-01-15 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:00:22] Production.INFO: ==27961== Releasing lock... [2025-01-15 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:00:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-15 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:01:05 [end_date_ymd] => 2025-01-15 22:01:05 [RateCDR] => 1 ) [2025-01-15 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:01:05' and `end` < '2025-01-15 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:01:17] Production.INFO: count ==1508 [2025-01-15 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:01:05 - End Time 2025-01-15 22:01:05 [2025-01-15 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256535', 'tblTempUsageDetail_20' ) start [2025-01-15 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256535', 'tblTempUsageDetail_20' ) end [2025-01-15 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256535', 'tblTempVendorCDR_20' ) start [2025-01-15 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256535', 'tblTempVendorCDR_20' ) end [2025-01-15 22:01:18] Production.INFO: ProcessCDR(1,14256535,1,1,2) [2025-01-15 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256535', 'tblTempUsageDetail_20' ) start [2025-01-15 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256535', 'tblTempUsageDetail_20' ) end [2025-01-15 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:01:21] Production.INFO: ==28044== Releasing lock... [2025-01-15 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:01:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-15 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:02:05 [end_date_ymd] => 2025-01-15 22:02:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 19:02:05' and `end` < '2025-01-15 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-01-15 22:02:19] Production.INFO: count ==1507 [2025-01-15 22:02:19] Production.ERROR: pbx CDR StartTime 2025-01-15 19:02:05 - End Time 2025-01-15 22:02:05 [2025-01-15 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256540', 'tblTempUsageDetail_20' ) start [2025-01-15 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256540', 'tblTempUsageDetail_20' ) end [2025-01-15 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256540', 'tblTempVendorCDR_20' ) start [2025-01-15 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256540', 'tblTempVendorCDR_20' ) end [2025-01-15 22:02:19] Production.INFO: ProcessCDR(1,14256540,1,1,2) [2025-01-15 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256540', 'tblTempUsageDetail_20' ) start [2025-01-15 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256540', 'tblTempUsageDetail_20' ) end [2025-01-15 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:02:22] Production.INFO: ==28114== Releasing lock... [2025-01-15 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:02:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-15 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:03:05 [end_date_ymd] => 2025-01-15 22:03:05 [RateCDR] => 1 ) [2025-01-15 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:03:05' and `end` < '2025-01-15 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:03:17] Production.INFO: count ==1500 [2025-01-15 22:03:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:03:05 - End Time 2025-01-15 22:03:05 [2025-01-15 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256545', 'tblTempUsageDetail_20' ) start [2025-01-15 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256545', 'tblTempUsageDetail_20' ) end [2025-01-15 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256545', 'tblTempVendorCDR_20' ) start [2025-01-15 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256545', 'tblTempVendorCDR_20' ) end [2025-01-15 22:03:18] Production.INFO: ProcessCDR(1,14256545,1,1,2) [2025-01-15 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256545', 'tblTempUsageDetail_20' ) start [2025-01-15 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256545', 'tblTempUsageDetail_20' ) end [2025-01-15 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:03:21] Production.INFO: ==28185== Releasing lock... [2025-01-15 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:03:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-15 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:04:05 [end_date_ymd] => 2025-01-15 22:04:05 [RateCDR] => 1 ) [2025-01-15 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:04:05' and `end` < '2025-01-15 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:04:18] Production.INFO: count ==1496 [2025-01-15 22:04:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:04:05 - End Time 2025-01-15 22:04:05 [2025-01-15 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256550', 'tblTempUsageDetail_20' ) start [2025-01-15 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256550', 'tblTempUsageDetail_20' ) end [2025-01-15 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256550', 'tblTempVendorCDR_20' ) start [2025-01-15 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256550', 'tblTempVendorCDR_20' ) end [2025-01-15 22:04:18] Production.INFO: ProcessCDR(1,14256550,1,1,2) [2025-01-15 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256550', 'tblTempUsageDetail_20' ) start [2025-01-15 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256550', 'tblTempUsageDetail_20' ) end [2025-01-15 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:04:21] Production.INFO: ==28259== Releasing lock... [2025-01-15 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:04:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-15 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:05:05 [end_date_ymd] => 2025-01-15 22:05:05 [RateCDR] => 1 ) [2025-01-15 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:05:05' and `end` < '2025-01-15 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:05:17] Production.INFO: count ==1493 [2025-01-15 22:05:17] Production.ERROR: pbx CDR StartTime 2025-01-15 19:05:05 - End Time 2025-01-15 22:05:05 [2025-01-15 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256555', 'tblTempUsageDetail_20' ) start [2025-01-15 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256555', 'tblTempUsageDetail_20' ) end [2025-01-15 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256555', 'tblTempVendorCDR_20' ) start [2025-01-15 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256555', 'tblTempVendorCDR_20' ) end [2025-01-15 22:05:17] Production.INFO: ProcessCDR(1,14256555,1,1,2) [2025-01-15 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256555', 'tblTempUsageDetail_20' ) start [2025-01-15 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256555', 'tblTempUsageDetail_20' ) end [2025-01-15 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:05:21] Production.INFO: ==28377== Releasing lock... [2025-01-15 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:05:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-15 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:06:05 [end_date_ymd] => 2025-01-15 22:06:05 [RateCDR] => 1 ) [2025-01-15 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:06:05' and `end` < '2025-01-15 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:06:19] Production.INFO: count ==1479 [2025-01-15 22:06:19] Production.ERROR: pbx CDR StartTime 2025-01-15 19:06:05 - End Time 2025-01-15 22:06:05 [2025-01-15 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256560', 'tblTempUsageDetail_20' ) start [2025-01-15 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256560', 'tblTempUsageDetail_20' ) end [2025-01-15 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256560', 'tblTempVendorCDR_20' ) start [2025-01-15 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256560', 'tblTempVendorCDR_20' ) end [2025-01-15 22:06:19] Production.INFO: ProcessCDR(1,14256560,1,1,2) [2025-01-15 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256560', 'tblTempUsageDetail_20' ) start [2025-01-15 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256560', 'tblTempUsageDetail_20' ) end [2025-01-15 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:06:22] Production.INFO: ==28458== Releasing lock... [2025-01-15 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:06:22] Production.INFO: 39 MB #Memory Used# [2025-01-15 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:07:05 [end_date_ymd] => 2025-01-15 22:07:05 [RateCDR] => 1 ) [2025-01-15 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:07:05' and `end` < '2025-01-15 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:07:17] Production.INFO: count ==1478 [2025-01-15 22:07:17] Production.ERROR: pbx CDR StartTime 2025-01-15 19:07:05 - End Time 2025-01-15 22:07:05 [2025-01-15 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256565', 'tblTempUsageDetail_20' ) start [2025-01-15 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256565', 'tblTempUsageDetail_20' ) end [2025-01-15 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256565', 'tblTempVendorCDR_20' ) start [2025-01-15 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256565', 'tblTempVendorCDR_20' ) end [2025-01-15 22:07:17] Production.INFO: ProcessCDR(1,14256565,1,1,2) [2025-01-15 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256565', 'tblTempUsageDetail_20' ) start [2025-01-15 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256565', 'tblTempUsageDetail_20' ) end [2025-01-15 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:07:21] Production.INFO: ==28533== Releasing lock... [2025-01-15 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:07:21] Production.INFO: 39 MB #Memory Used# [2025-01-15 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:08:05 [end_date_ymd] => 2025-01-15 22:08:05 [RateCDR] => 1 ) [2025-01-15 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:08:05' and `end` < '2025-01-15 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:08:17] Production.INFO: count ==1476 [2025-01-15 22:08:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:08:05 - End Time 2025-01-15 22:08:05 [2025-01-15 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256570', 'tblTempUsageDetail_20' ) start [2025-01-15 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256570', 'tblTempUsageDetail_20' ) end [2025-01-15 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256570', 'tblTempVendorCDR_20' ) start [2025-01-15 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256570', 'tblTempVendorCDR_20' ) end [2025-01-15 22:08:18] Production.INFO: ProcessCDR(1,14256570,1,1,2) [2025-01-15 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256570', 'tblTempUsageDetail_20' ) start [2025-01-15 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256570', 'tblTempUsageDetail_20' ) end [2025-01-15 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:08:21] Production.INFO: ==28609== Releasing lock... [2025-01-15 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:08:21] Production.INFO: 39 MB #Memory Used# [2025-01-15 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:09:04 [end_date_ymd] => 2025-01-15 22:09:04 [RateCDR] => 1 ) [2025-01-15 22:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:09:04' and `end` < '2025-01-15 22:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:09:16] Production.INFO: count ==1475 [2025-01-15 22:09:17] Production.ERROR: pbx CDR StartTime 2025-01-15 19:09:04 - End Time 2025-01-15 22:09:04 [2025-01-15 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256575', 'tblTempUsageDetail_20' ) start [2025-01-15 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256575', 'tblTempUsageDetail_20' ) end [2025-01-15 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256575', 'tblTempVendorCDR_20' ) start [2025-01-15 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256575', 'tblTempVendorCDR_20' ) end [2025-01-15 22:09:17] Production.INFO: ProcessCDR(1,14256575,1,1,2) [2025-01-15 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256575', 'tblTempUsageDetail_20' ) start [2025-01-15 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256575', 'tblTempUsageDetail_20' ) end [2025-01-15 22:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:09:20] Production.INFO: ==28726== Releasing lock... [2025-01-15 22:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:09:20] Production.INFO: 39 MB #Memory Used# [2025-01-15 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:10:06 [end_date_ymd] => 2025-01-15 22:10:06 [RateCDR] => 1 ) [2025-01-15 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:10:06' and `end` < '2025-01-15 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:10:18] Production.INFO: count ==1472 [2025-01-15 22:10:19] Production.ERROR: pbx CDR StartTime 2025-01-15 19:10:06 - End Time 2025-01-15 22:10:06 [2025-01-15 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256581', 'tblTempUsageDetail_20' ) start [2025-01-15 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256581', 'tblTempUsageDetail_20' ) end [2025-01-15 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256581', 'tblTempVendorCDR_20' ) start [2025-01-15 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256581', 'tblTempVendorCDR_20' ) end [2025-01-15 22:10:19] Production.INFO: ProcessCDR(1,14256581,1,1,2) [2025-01-15 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256581', 'tblTempUsageDetail_20' ) start [2025-01-15 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256581', 'tblTempUsageDetail_20' ) end [2025-01-15 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:10:22] Production.INFO: ==28856== Releasing lock... [2025-01-15 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:10:22] Production.INFO: 39 MB #Memory Used# [2025-01-15 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:11:05 [end_date_ymd] => 2025-01-15 22:11:05 [RateCDR] => 1 ) [2025-01-15 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:11:05' and `end` < '2025-01-15 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:11:18] Production.INFO: count ==1433 [2025-01-15 22:11:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:11:05 - End Time 2025-01-15 22:11:05 [2025-01-15 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256586', 'tblTempUsageDetail_20' ) start [2025-01-15 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256586', 'tblTempUsageDetail_20' ) end [2025-01-15 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256586', 'tblTempVendorCDR_20' ) start [2025-01-15 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256586', 'tblTempVendorCDR_20' ) end [2025-01-15 22:11:18] Production.INFO: ProcessCDR(1,14256586,1,1,2) [2025-01-15 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256586', 'tblTempUsageDetail_20' ) start [2025-01-15 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256586', 'tblTempUsageDetail_20' ) end [2025-01-15 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:11:21] Production.INFO: ==28980== Releasing lock... [2025-01-15 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:11:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-15 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:12:05 [end_date_ymd] => 2025-01-15 22:12:05 [RateCDR] => 1 ) [2025-01-15 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:12:05' and `end` < '2025-01-15 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:12:17] Production.INFO: count ==1432 [2025-01-15 22:12:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:12:05 - End Time 2025-01-15 22:12:05 [2025-01-15 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256591', 'tblTempUsageDetail_20' ) start [2025-01-15 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256591', 'tblTempUsageDetail_20' ) end [2025-01-15 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256591', 'tblTempVendorCDR_20' ) start [2025-01-15 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256591', 'tblTempVendorCDR_20' ) end [2025-01-15 22:12:18] Production.INFO: ProcessCDR(1,14256591,1,1,2) [2025-01-15 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256591', 'tblTempUsageDetail_20' ) start [2025-01-15 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256591', 'tblTempUsageDetail_20' ) end [2025-01-15 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:12:21] Production.INFO: ==29100== Releasing lock... [2025-01-15 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:12:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-15 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:13:05 [end_date_ymd] => 2025-01-15 22:13:05 [RateCDR] => 1 ) [2025-01-15 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:13:05' and `end` < '2025-01-15 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:13:19] Production.INFO: count ==1431 [2025-01-15 22:13:19] Production.ERROR: pbx CDR StartTime 2025-01-15 19:13:05 - End Time 2025-01-15 22:13:05 [2025-01-15 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256596', 'tblTempUsageDetail_20' ) start [2025-01-15 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256596', 'tblTempUsageDetail_20' ) end [2025-01-15 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256596', 'tblTempVendorCDR_20' ) start [2025-01-15 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256596', 'tblTempVendorCDR_20' ) end [2025-01-15 22:13:19] Production.INFO: ProcessCDR(1,14256596,1,1,2) [2025-01-15 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256596', 'tblTempUsageDetail_20' ) start [2025-01-15 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256596', 'tblTempUsageDetail_20' ) end [2025-01-15 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:13:22] Production.INFO: ==29232== Releasing lock... [2025-01-15 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:13:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-15 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:14:05 [end_date_ymd] => 2025-01-15 22:14:05 [RateCDR] => 1 ) [2025-01-15 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:14:05' and `end` < '2025-01-15 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:14:18] Production.INFO: count ==1436 [2025-01-15 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:14:05 - End Time 2025-01-15 22:14:05 [2025-01-15 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256601', 'tblTempUsageDetail_20' ) start [2025-01-15 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256601', 'tblTempUsageDetail_20' ) end [2025-01-15 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256601', 'tblTempVendorCDR_20' ) start [2025-01-15 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256601', 'tblTempVendorCDR_20' ) end [2025-01-15 22:14:18] Production.INFO: ProcessCDR(1,14256601,1,1,2) [2025-01-15 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256601', 'tblTempUsageDetail_20' ) start [2025-01-15 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256601', 'tblTempUsageDetail_20' ) end [2025-01-15 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:14:23] Production.INFO: ==29359== Releasing lock... [2025-01-15 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:14:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-15 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:15:05 [end_date_ymd] => 2025-01-15 22:15:05 [RateCDR] => 1 ) [2025-01-15 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:15:05' and `end` < '2025-01-15 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:15:17] Production.INFO: count ==1433 [2025-01-15 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:15:05 - End Time 2025-01-15 22:15:05 [2025-01-15 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256606', 'tblTempUsageDetail_20' ) start [2025-01-15 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256606', 'tblTempUsageDetail_20' ) end [2025-01-15 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256606', 'tblTempVendorCDR_20' ) start [2025-01-15 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256606', 'tblTempVendorCDR_20' ) end [2025-01-15 22:15:18] Production.INFO: ProcessCDR(1,14256606,1,1,2) [2025-01-15 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256606', 'tblTempUsageDetail_20' ) start [2025-01-15 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256606', 'tblTempUsageDetail_20' ) end [2025-01-15 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:15:21] Production.INFO: ==29493== Releasing lock... [2025-01-15 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:15:21] Production.INFO: 39 MB #Memory Used# [2025-01-15 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:16:05 [end_date_ymd] => 2025-01-15 22:16:05 [RateCDR] => 1 ) [2025-01-15 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:16:05' and `end` < '2025-01-15 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:16:18] Production.INFO: count ==1433 [2025-01-15 22:16:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:16:05 - End Time 2025-01-15 22:16:05 [2025-01-15 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256611', 'tblTempUsageDetail_20' ) start [2025-01-15 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256611', 'tblTempUsageDetail_20' ) end [2025-01-15 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256611', 'tblTempVendorCDR_20' ) start [2025-01-15 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256611', 'tblTempVendorCDR_20' ) end [2025-01-15 22:16:18] Production.INFO: ProcessCDR(1,14256611,1,1,2) [2025-01-15 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256611', 'tblTempUsageDetail_20' ) start [2025-01-15 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256611', 'tblTempUsageDetail_20' ) end [2025-01-15 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:16:22] Production.INFO: ==29620== Releasing lock... [2025-01-15 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:16:22] Production.INFO: 39 MB #Memory Used# [2025-01-15 22:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:17:04 [end_date_ymd] => 2025-01-15 22:17:04 [RateCDR] => 1 ) [2025-01-15 22:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:17:04' and `end` < '2025-01-15 22:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:17:17] Production.INFO: count ==1432 [2025-01-15 22:17:17] Production.ERROR: pbx CDR StartTime 2025-01-15 19:17:04 - End Time 2025-01-15 22:17:04 [2025-01-15 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256616', 'tblTempUsageDetail_20' ) start [2025-01-15 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256616', 'tblTempUsageDetail_20' ) end [2025-01-15 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256616', 'tblTempVendorCDR_20' ) start [2025-01-15 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256616', 'tblTempVendorCDR_20' ) end [2025-01-15 22:17:17] Production.INFO: ProcessCDR(1,14256616,1,1,2) [2025-01-15 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256616', 'tblTempUsageDetail_20' ) start [2025-01-15 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256616', 'tblTempUsageDetail_20' ) end [2025-01-15 22:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:17:20] Production.INFO: ==29748== Releasing lock... [2025-01-15 22:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:17:20] Production.INFO: 38.75 MB #Memory Used# [2025-01-15 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:18:05 [end_date_ymd] => 2025-01-15 22:18:05 [RateCDR] => 1 ) [2025-01-15 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:18:05' and `end` < '2025-01-15 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:18:19] Production.INFO: count ==1430 [2025-01-15 22:18:19] Production.ERROR: pbx CDR StartTime 2025-01-15 19:18:05 - End Time 2025-01-15 22:18:05 [2025-01-15 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256621', 'tblTempUsageDetail_20' ) start [2025-01-15 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256621', 'tblTempUsageDetail_20' ) end [2025-01-15 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256621', 'tblTempVendorCDR_20' ) start [2025-01-15 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256621', 'tblTempVendorCDR_20' ) end [2025-01-15 22:18:19] Production.INFO: ProcessCDR(1,14256621,1,1,2) [2025-01-15 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256621', 'tblTempUsageDetail_20' ) start [2025-01-15 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256621', 'tblTempUsageDetail_20' ) end [2025-01-15 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:18:22] Production.INFO: ==29877== Releasing lock... [2025-01-15 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:18:22] Production.INFO: 39 MB #Memory Used# [2025-01-15 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:19:05 [end_date_ymd] => 2025-01-15 22:19:05 [RateCDR] => 1 ) [2025-01-15 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:19:05' and `end` < '2025-01-15 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:19:17] Production.INFO: count ==1425 [2025-01-15 22:19:17] Production.ERROR: pbx CDR StartTime 2025-01-15 19:19:05 - End Time 2025-01-15 22:19:05 [2025-01-15 22:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256626', 'tblTempUsageDetail_20' ) start [2025-01-15 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256626', 'tblTempUsageDetail_20' ) end [2025-01-15 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256626', 'tblTempVendorCDR_20' ) start [2025-01-15 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256626', 'tblTempVendorCDR_20' ) end [2025-01-15 22:19:17] Production.INFO: ProcessCDR(1,14256626,1,1,2) [2025-01-15 22:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256626', 'tblTempUsageDetail_20' ) start [2025-01-15 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256626', 'tblTempUsageDetail_20' ) end [2025-01-15 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:19:21] Production.INFO: ==30007== Releasing lock... [2025-01-15 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:19:21] Production.INFO: 39 MB #Memory Used# [2025-01-15 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:20:06 [end_date_ymd] => 2025-01-15 22:20:06 [RateCDR] => 1 ) [2025-01-15 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:20:06' and `end` < '2025-01-15 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:20:18] Production.INFO: count ==1425 [2025-01-15 22:20:19] Production.ERROR: pbx CDR StartTime 2025-01-15 19:20:06 - End Time 2025-01-15 22:20:06 [2025-01-15 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256632', 'tblTempUsageDetail_20' ) start [2025-01-15 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256632', 'tblTempUsageDetail_20' ) end [2025-01-15 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256632', 'tblTempVendorCDR_20' ) start [2025-01-15 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256632', 'tblTempVendorCDR_20' ) end [2025-01-15 22:20:19] Production.INFO: ProcessCDR(1,14256632,1,1,2) [2025-01-15 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256632', 'tblTempUsageDetail_20' ) start [2025-01-15 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256632', 'tblTempUsageDetail_20' ) end [2025-01-15 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:20:23] Production.INFO: ==30176== Releasing lock... [2025-01-15 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:20:23] Production.INFO: 39 MB #Memory Used# [2025-01-15 22:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:21:04 [end_date_ymd] => 2025-01-15 22:21:04 [RateCDR] => 1 ) [2025-01-15 22:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:21:04' and `end` < '2025-01-15 22:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:21:17] Production.INFO: count ==1403 [2025-01-15 22:21:17] Production.ERROR: pbx CDR StartTime 2025-01-15 19:21:04 - End Time 2025-01-15 22:21:04 [2025-01-15 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256637', 'tblTempUsageDetail_20' ) start [2025-01-15 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256637', 'tblTempUsageDetail_20' ) end [2025-01-15 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256637', 'tblTempVendorCDR_20' ) start [2025-01-15 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256637', 'tblTempVendorCDR_20' ) end [2025-01-15 22:21:17] Production.INFO: ProcessCDR(1,14256637,1,1,2) [2025-01-15 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256637', 'tblTempUsageDetail_20' ) start [2025-01-15 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256637', 'tblTempUsageDetail_20' ) end [2025-01-15 22:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:21:20] Production.INFO: ==30309== Releasing lock... [2025-01-15 22:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:21:20] Production.INFO: 38.75 MB #Memory Used# [2025-01-15 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:22:05 [end_date_ymd] => 2025-01-15 22:22:05 [RateCDR] => 1 ) [2025-01-15 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:22:05' and `end` < '2025-01-15 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:22:17] Production.INFO: count ==1403 [2025-01-15 22:22:17] Production.ERROR: pbx CDR StartTime 2025-01-15 19:22:05 - End Time 2025-01-15 22:22:05 [2025-01-15 22:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256642', 'tblTempUsageDetail_20' ) start [2025-01-15 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256642', 'tblTempUsageDetail_20' ) end [2025-01-15 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256642', 'tblTempVendorCDR_20' ) start [2025-01-15 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256642', 'tblTempVendorCDR_20' ) end [2025-01-15 22:22:17] Production.INFO: ProcessCDR(1,14256642,1,1,2) [2025-01-15 22:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256642', 'tblTempUsageDetail_20' ) start [2025-01-15 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256642', 'tblTempUsageDetail_20' ) end [2025-01-15 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:22:21] Production.INFO: ==30436== Releasing lock... [2025-01-15 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:22:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-15 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:23:04 [end_date_ymd] => 2025-01-15 22:23:04 [RateCDR] => 1 ) [2025-01-15 22:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:23:04' and `end` < '2025-01-15 22:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:23:17] Production.INFO: count ==1397 [2025-01-15 22:23:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:23:04 - End Time 2025-01-15 22:23:04 [2025-01-15 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256647', 'tblTempUsageDetail_20' ) start [2025-01-15 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256647', 'tblTempUsageDetail_20' ) end [2025-01-15 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256647', 'tblTempVendorCDR_20' ) start [2025-01-15 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256647', 'tblTempVendorCDR_20' ) end [2025-01-15 22:23:18] Production.INFO: ProcessCDR(1,14256647,1,1,2) [2025-01-15 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256647', 'tblTempUsageDetail_20' ) start [2025-01-15 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256647', 'tblTempUsageDetail_20' ) end [2025-01-15 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:23:21] Production.INFO: ==30557== Releasing lock... [2025-01-15 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:23:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-15 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:24:05 [end_date_ymd] => 2025-01-15 22:24:05 [RateCDR] => 1 ) [2025-01-15 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:24:05' and `end` < '2025-01-15 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:24:18] Production.INFO: count ==1394 [2025-01-15 22:24:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:24:05 - End Time 2025-01-15 22:24:05 [2025-01-15 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256652', 'tblTempUsageDetail_20' ) start [2025-01-15 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256652', 'tblTempUsageDetail_20' ) end [2025-01-15 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256652', 'tblTempVendorCDR_20' ) start [2025-01-15 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256652', 'tblTempVendorCDR_20' ) end [2025-01-15 22:24:18] Production.INFO: ProcessCDR(1,14256652,1,1,2) [2025-01-15 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256652', 'tblTempUsageDetail_20' ) start [2025-01-15 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256652', 'tblTempUsageDetail_20' ) end [2025-01-15 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:24:21] Production.INFO: ==30687== Releasing lock... [2025-01-15 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:24:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-15 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:25:04 [end_date_ymd] => 2025-01-15 22:25:04 [RateCDR] => 1 ) [2025-01-15 22:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:25:04' and `end` < '2025-01-15 22:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:25:17] Production.INFO: count ==1393 [2025-01-15 22:25:17] Production.ERROR: pbx CDR StartTime 2025-01-15 19:25:04 - End Time 2025-01-15 22:25:04 [2025-01-15 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256657', 'tblTempUsageDetail_20' ) start [2025-01-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256657', 'tblTempUsageDetail_20' ) end [2025-01-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256657', 'tblTempVendorCDR_20' ) start [2025-01-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256657', 'tblTempVendorCDR_20' ) end [2025-01-15 22:25:18] Production.INFO: ProcessCDR(1,14256657,1,1,2) [2025-01-15 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256657', 'tblTempUsageDetail_20' ) start [2025-01-15 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256657', 'tblTempUsageDetail_20' ) end [2025-01-15 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:25:21] Production.INFO: ==30797== Releasing lock... [2025-01-15 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:25:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-15 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:26:05 [end_date_ymd] => 2025-01-15 22:26:05 [RateCDR] => 1 ) [2025-01-15 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:26:05' and `end` < '2025-01-15 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:26:17] Production.INFO: count ==1388 [2025-01-15 22:26:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:26:05 - End Time 2025-01-15 22:26:05 [2025-01-15 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256662', 'tblTempUsageDetail_20' ) start [2025-01-15 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256662', 'tblTempUsageDetail_20' ) end [2025-01-15 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256662', 'tblTempVendorCDR_20' ) start [2025-01-15 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256662', 'tblTempVendorCDR_20' ) end [2025-01-15 22:26:18] Production.INFO: ProcessCDR(1,14256662,1,1,2) [2025-01-15 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256662', 'tblTempUsageDetail_20' ) start [2025-01-15 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256662', 'tblTempUsageDetail_20' ) end [2025-01-15 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:26:21] Production.INFO: ==30898== Releasing lock... [2025-01-15 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:26:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-15 22:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:27:04 [end_date_ymd] => 2025-01-15 22:27:04 [RateCDR] => 1 ) [2025-01-15 22:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:27:04' and `end` < '2025-01-15 22:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:27:18] Production.INFO: count ==1378 [2025-01-15 22:27:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:27:04 - End Time 2025-01-15 22:27:04 [2025-01-15 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256667', 'tblTempUsageDetail_20' ) start [2025-01-15 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256667', 'tblTempUsageDetail_20' ) end [2025-01-15 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256667', 'tblTempVendorCDR_20' ) start [2025-01-15 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256667', 'tblTempVendorCDR_20' ) end [2025-01-15 22:27:18] Production.INFO: ProcessCDR(1,14256667,1,1,2) [2025-01-15 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256667', 'tblTempUsageDetail_20' ) start [2025-01-15 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256667', 'tblTempUsageDetail_20' ) end [2025-01-15 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:27:22] Production.INFO: ==30995== Releasing lock... [2025-01-15 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:27:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-15 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:28:05 [end_date_ymd] => 2025-01-15 22:28:05 [RateCDR] => 1 ) [2025-01-15 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:28:05' and `end` < '2025-01-15 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:28:17] Production.INFO: count ==1377 [2025-01-15 22:28:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:28:05 - End Time 2025-01-15 22:28:05 [2025-01-15 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256672', 'tblTempUsageDetail_20' ) start [2025-01-15 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256672', 'tblTempUsageDetail_20' ) end [2025-01-15 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256672', 'tblTempVendorCDR_20' ) start [2025-01-15 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256672', 'tblTempVendorCDR_20' ) end [2025-01-15 22:28:18] Production.INFO: ProcessCDR(1,14256672,1,1,2) [2025-01-15 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256672', 'tblTempUsageDetail_20' ) start [2025-01-15 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256672', 'tblTempUsageDetail_20' ) end [2025-01-15 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:28:21] Production.INFO: ==31084== Releasing lock... [2025-01-15 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:28:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-15 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:29:06 [end_date_ymd] => 2025-01-15 22:29:06 [RateCDR] => 1 ) [2025-01-15 22:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:29:06' and `end` < '2025-01-15 22:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:29:19] Production.INFO: count ==1377 [2025-01-15 22:29:19] Production.ERROR: pbx CDR StartTime 2025-01-15 19:29:06 - End Time 2025-01-15 22:29:06 [2025-01-15 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256677', 'tblTempUsageDetail_20' ) start [2025-01-15 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256677', 'tblTempUsageDetail_20' ) end [2025-01-15 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256677', 'tblTempVendorCDR_20' ) start [2025-01-15 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256677', 'tblTempVendorCDR_20' ) end [2025-01-15 22:29:19] Production.INFO: ProcessCDR(1,14256677,1,1,2) [2025-01-15 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256677', 'tblTempUsageDetail_20' ) start [2025-01-15 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256677', 'tblTempUsageDetail_20' ) end [2025-01-15 22:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:29:23] Production.INFO: ==31163== Releasing lock... [2025-01-15 22:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:29:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-15 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:30:06 [end_date_ymd] => 2025-01-15 22:30:06 [RateCDR] => 1 ) [2025-01-15 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:30:06' and `end` < '2025-01-15 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:30:19] Production.INFO: count ==1378 [2025-01-15 22:30:20] Production.ERROR: pbx CDR StartTime 2025-01-15 19:30:06 - End Time 2025-01-15 22:30:06 [2025-01-15 22:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256682', 'tblTempUsageDetail_20' ) start [2025-01-15 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256682', 'tblTempUsageDetail_20' ) end [2025-01-15 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256682', 'tblTempVendorCDR_20' ) start [2025-01-15 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256682', 'tblTempVendorCDR_20' ) end [2025-01-15 22:30:20] Production.INFO: ProcessCDR(1,14256682,1,1,2) [2025-01-15 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256682', 'tblTempUsageDetail_20' ) start [2025-01-15 22:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256682', 'tblTempUsageDetail_20' ) end [2025-01-15 22:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:30:24] Production.INFO: ==31243== Releasing lock... [2025-01-15 22:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:30:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-15 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:31:05 [end_date_ymd] => 2025-01-15 22:31:05 [RateCDR] => 1 ) [2025-01-15 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:31:05' and `end` < '2025-01-15 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:31:18] Production.INFO: count ==1354 [2025-01-15 22:31:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:31:05 - End Time 2025-01-15 22:31:05 [2025-01-15 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256688', 'tblTempUsageDetail_20' ) start [2025-01-15 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256688', 'tblTempUsageDetail_20' ) end [2025-01-15 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256688', 'tblTempVendorCDR_20' ) start [2025-01-15 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256688', 'tblTempVendorCDR_20' ) end [2025-01-15 22:31:18] Production.INFO: ProcessCDR(1,14256688,1,1,2) [2025-01-15 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256688', 'tblTempUsageDetail_20' ) start [2025-01-15 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256688', 'tblTempUsageDetail_20' ) end [2025-01-15 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:31:21] Production.INFO: ==31328== Releasing lock... [2025-01-15 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:31:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-15 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:32:05 [end_date_ymd] => 2025-01-15 22:32:05 [RateCDR] => 1 ) [2025-01-15 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:32:05' and `end` < '2025-01-15 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:32:17] Production.INFO: count ==1351 [2025-01-15 22:32:17] Production.ERROR: pbx CDR StartTime 2025-01-15 19:32:05 - End Time 2025-01-15 22:32:05 [2025-01-15 22:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256693', 'tblTempUsageDetail_20' ) start [2025-01-15 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256693', 'tblTempUsageDetail_20' ) end [2025-01-15 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256693', 'tblTempVendorCDR_20' ) start [2025-01-15 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256693', 'tblTempVendorCDR_20' ) end [2025-01-15 22:32:17] Production.INFO: ProcessCDR(1,14256693,1,1,2) [2025-01-15 22:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256693', 'tblTempUsageDetail_20' ) start [2025-01-15 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256693', 'tblTempUsageDetail_20' ) end [2025-01-15 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:32:21] Production.INFO: ==31406== Releasing lock... [2025-01-15 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:32:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-15 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:33:05 [end_date_ymd] => 2025-01-15 22:33:05 [RateCDR] => 1 ) [2025-01-15 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:33:05' and `end` < '2025-01-15 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:33:17] Production.INFO: count ==1350 [2025-01-15 22:33:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:33:05 - End Time 2025-01-15 22:33:05 [2025-01-15 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256698', 'tblTempUsageDetail_20' ) start [2025-01-15 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256698', 'tblTempUsageDetail_20' ) end [2025-01-15 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256698', 'tblTempVendorCDR_20' ) start [2025-01-15 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256698', 'tblTempVendorCDR_20' ) end [2025-01-15 22:33:18] Production.INFO: ProcessCDR(1,14256698,1,1,2) [2025-01-15 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256698', 'tblTempUsageDetail_20' ) start [2025-01-15 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256698', 'tblTempUsageDetail_20' ) end [2025-01-15 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:33:22] Production.INFO: ==31485== Releasing lock... [2025-01-15 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:33:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-15 22:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:34:04 [end_date_ymd] => 2025-01-15 22:34:04 [RateCDR] => 1 ) [2025-01-15 22:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:34:04' and `end` < '2025-01-15 22:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:34:17] Production.INFO: count ==1350 [2025-01-15 22:34:17] Production.ERROR: pbx CDR StartTime 2025-01-15 19:34:04 - End Time 2025-01-15 22:34:04 [2025-01-15 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256703', 'tblTempUsageDetail_20' ) start [2025-01-15 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256703', 'tblTempUsageDetail_20' ) end [2025-01-15 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256703', 'tblTempVendorCDR_20' ) start [2025-01-15 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256703', 'tblTempVendorCDR_20' ) end [2025-01-15 22:34:17] Production.INFO: ProcessCDR(1,14256703,1,1,2) [2025-01-15 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256703', 'tblTempUsageDetail_20' ) start [2025-01-15 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256703', 'tblTempUsageDetail_20' ) end [2025-01-15 22:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:34:20] Production.INFO: ==31561== Releasing lock... [2025-01-15 22:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:34:20] Production.INFO: 38.75 MB #Memory Used# [2025-01-15 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:35:05 [end_date_ymd] => 2025-01-15 22:35:05 [RateCDR] => 1 ) [2025-01-15 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:35:05' and `end` < '2025-01-15 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:35:17] Production.INFO: count ==1349 [2025-01-15 22:35:17] Production.ERROR: pbx CDR StartTime 2025-01-15 19:35:05 - End Time 2025-01-15 22:35:05 [2025-01-15 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256708', 'tblTempUsageDetail_20' ) start [2025-01-15 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256708', 'tblTempUsageDetail_20' ) end [2025-01-15 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256708', 'tblTempVendorCDR_20' ) start [2025-01-15 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256708', 'tblTempVendorCDR_20' ) end [2025-01-15 22:35:17] Production.INFO: ProcessCDR(1,14256708,1,1,2) [2025-01-15 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256708', 'tblTempUsageDetail_20' ) start [2025-01-15 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256708', 'tblTempUsageDetail_20' ) end [2025-01-15 22:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:35:20] Production.INFO: ==31643== Releasing lock... [2025-01-15 22:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:35:20] Production.INFO: 39.25 MB #Memory Used# [2025-01-15 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:36:05 [end_date_ymd] => 2025-01-15 22:36:05 [RateCDR] => 1 ) [2025-01-15 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:36:05' and `end` < '2025-01-15 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:36:18] Production.INFO: count ==1349 [2025-01-15 22:36:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:36:05 - End Time 2025-01-15 22:36:05 [2025-01-15 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256713', 'tblTempUsageDetail_20' ) start [2025-01-15 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256713', 'tblTempUsageDetail_20' ) end [2025-01-15 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256713', 'tblTempVendorCDR_20' ) start [2025-01-15 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256713', 'tblTempVendorCDR_20' ) end [2025-01-15 22:36:18] Production.INFO: ProcessCDR(1,14256713,1,1,2) [2025-01-15 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256713', 'tblTempUsageDetail_20' ) start [2025-01-15 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256713', 'tblTempUsageDetail_20' ) end [2025-01-15 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:36:23] Production.INFO: ==31763== Releasing lock... [2025-01-15 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:36:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-15 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:37:05 [end_date_ymd] => 2025-01-15 22:37:05 [RateCDR] => 1 ) [2025-01-15 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:37:05' and `end` < '2025-01-15 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:37:18] Production.INFO: count ==1348 [2025-01-15 22:37:19] Production.ERROR: pbx CDR StartTime 2025-01-15 19:37:05 - End Time 2025-01-15 22:37:05 [2025-01-15 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256718', 'tblTempUsageDetail_20' ) start [2025-01-15 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256718', 'tblTempUsageDetail_20' ) end [2025-01-15 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256718', 'tblTempVendorCDR_20' ) start [2025-01-15 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256718', 'tblTempVendorCDR_20' ) end [2025-01-15 22:37:19] Production.INFO: ProcessCDR(1,14256718,1,1,2) [2025-01-15 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256718', 'tblTempUsageDetail_20' ) start [2025-01-15 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256718', 'tblTempUsageDetail_20' ) end [2025-01-15 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:37:22] Production.INFO: ==31835== Releasing lock... [2025-01-15 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:37:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-15 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:38:05 [end_date_ymd] => 2025-01-15 22:38:05 [RateCDR] => 1 ) [2025-01-15 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:38:05' and `end` < '2025-01-15 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:38:19] Production.INFO: count ==1349 [2025-01-15 22:38:19] Production.ERROR: pbx CDR StartTime 2025-01-15 19:38:05 - End Time 2025-01-15 22:38:05 [2025-01-15 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256723', 'tblTempUsageDetail_20' ) start [2025-01-15 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256723', 'tblTempUsageDetail_20' ) end [2025-01-15 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256723', 'tblTempVendorCDR_20' ) start [2025-01-15 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256723', 'tblTempVendorCDR_20' ) end [2025-01-15 22:38:19] Production.INFO: ProcessCDR(1,14256723,1,1,2) [2025-01-15 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256723', 'tblTempUsageDetail_20' ) start [2025-01-15 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256723', 'tblTempUsageDetail_20' ) end [2025-01-15 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:38:23] Production.INFO: ==31905== Releasing lock... [2025-01-15 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:38:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-15 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:39:05 [end_date_ymd] => 2025-01-15 22:39:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 19:39:05' and `end` < '2025-01-15 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-01-15 22:39:17] Production.INFO: count ==1350 [2025-01-15 22:39:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:39:05 - End Time 2025-01-15 22:39:05 [2025-01-15 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256728', 'tblTempUsageDetail_20' ) start [2025-01-15 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256728', 'tblTempUsageDetail_20' ) end [2025-01-15 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256728', 'tblTempVendorCDR_20' ) start [2025-01-15 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256728', 'tblTempVendorCDR_20' ) end [2025-01-15 22:39:18] Production.INFO: ProcessCDR(1,14256728,1,1,2) [2025-01-15 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256728', 'tblTempUsageDetail_20' ) start [2025-01-15 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256728', 'tblTempUsageDetail_20' ) end [2025-01-15 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:39:21] Production.INFO: ==31978== Releasing lock... [2025-01-15 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:39:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-15 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:40:06 [end_date_ymd] => 2025-01-15 22:40:06 [RateCDR] => 1 ) [2025-01-15 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:40:06' and `end` < '2025-01-15 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:40:18] Production.INFO: count ==1348 [2025-01-15 22:40:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:40:06 - End Time 2025-01-15 22:40:06 [2025-01-15 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256734', 'tblTempUsageDetail_20' ) start [2025-01-15 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256734', 'tblTempUsageDetail_20' ) end [2025-01-15 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256734', 'tblTempVendorCDR_20' ) start [2025-01-15 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256734', 'tblTempVendorCDR_20' ) end [2025-01-15 22:40:19] Production.INFO: ProcessCDR(1,14256734,1,1,2) [2025-01-15 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256734', 'tblTempUsageDetail_20' ) start [2025-01-15 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256734', 'tblTempUsageDetail_20' ) end [2025-01-15 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:40:22] Production.INFO: ==32059== Releasing lock... [2025-01-15 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:40:22] Production.INFO: 39 MB #Memory Used# [2025-01-15 22:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:41:04 [end_date_ymd] => 2025-01-15 22:41:04 [RateCDR] => 1 ) [2025-01-15 22:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:41:04' and `end` < '2025-01-15 22:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:41:17] Production.INFO: count ==1341 [2025-01-15 22:41:17] Production.ERROR: pbx CDR StartTime 2025-01-15 19:41:04 - End Time 2025-01-15 22:41:04 [2025-01-15 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256739', 'tblTempUsageDetail_20' ) start [2025-01-15 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256739', 'tblTempUsageDetail_20' ) end [2025-01-15 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256739', 'tblTempVendorCDR_20' ) start [2025-01-15 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256739', 'tblTempVendorCDR_20' ) end [2025-01-15 22:41:17] Production.INFO: ProcessCDR(1,14256739,1,1,2) [2025-01-15 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256739', 'tblTempUsageDetail_20' ) start [2025-01-15 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256739', 'tblTempUsageDetail_20' ) end [2025-01-15 22:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:41:20] Production.INFO: ==32134== Releasing lock... [2025-01-15 22:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:41:20] Production.INFO: 38.25 MB #Memory Used# [2025-01-15 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:42:05 [end_date_ymd] => 2025-01-15 22:42:05 [RateCDR] => 1 ) [2025-01-15 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:42:05' and `end` < '2025-01-15 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:42:18] Production.INFO: count ==1340 [2025-01-15 22:42:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:42:05 - End Time 2025-01-15 22:42:05 [2025-01-15 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256744', 'tblTempUsageDetail_20' ) start [2025-01-15 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256744', 'tblTempUsageDetail_20' ) end [2025-01-15 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256744', 'tblTempVendorCDR_20' ) start [2025-01-15 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256744', 'tblTempVendorCDR_20' ) end [2025-01-15 22:42:18] Production.INFO: ProcessCDR(1,14256744,1,1,2) [2025-01-15 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256744', 'tblTempUsageDetail_20' ) start [2025-01-15 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256744', 'tblTempUsageDetail_20' ) end [2025-01-15 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:42:21] Production.INFO: ==32205== Releasing lock... [2025-01-15 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:42:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-15 22:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:43:04 [end_date_ymd] => 2025-01-15 22:43:04 [RateCDR] => 1 ) [2025-01-15 22:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:43:04' and `end` < '2025-01-15 22:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:43:17] Production.INFO: count ==1343 [2025-01-15 22:43:17] Production.ERROR: pbx CDR StartTime 2025-01-15 19:43:04 - End Time 2025-01-15 22:43:04 [2025-01-15 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256749', 'tblTempUsageDetail_20' ) start [2025-01-15 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256749', 'tblTempUsageDetail_20' ) end [2025-01-15 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256749', 'tblTempVendorCDR_20' ) start [2025-01-15 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256749', 'tblTempVendorCDR_20' ) end [2025-01-15 22:43:17] Production.INFO: ProcessCDR(1,14256749,1,1,2) [2025-01-15 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256749', 'tblTempUsageDetail_20' ) start [2025-01-15 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256749', 'tblTempUsageDetail_20' ) end [2025-01-15 22:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:43:20] Production.INFO: ==32281== Releasing lock... [2025-01-15 22:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:43:20] Production.INFO: 38.5 MB #Memory Used# [2025-01-15 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:44:05 [end_date_ymd] => 2025-01-15 22:44:05 [RateCDR] => 1 ) [2025-01-15 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:44:05' and `end` < '2025-01-15 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:44:18] Production.INFO: count ==1344 [2025-01-15 22:44:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:44:05 - End Time 2025-01-15 22:44:05 [2025-01-15 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256754', 'tblTempUsageDetail_20' ) start [2025-01-15 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256754', 'tblTempUsageDetail_20' ) end [2025-01-15 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256754', 'tblTempVendorCDR_20' ) start [2025-01-15 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256754', 'tblTempVendorCDR_20' ) end [2025-01-15 22:44:18] Production.INFO: ProcessCDR(1,14256754,1,1,2) [2025-01-15 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256754', 'tblTempUsageDetail_20' ) start [2025-01-15 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256754', 'tblTempUsageDetail_20' ) end [2025-01-15 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:44:22] Production.INFO: ==32364== Releasing lock... [2025-01-15 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:44:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-15 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:45:05 [end_date_ymd] => 2025-01-15 22:45:05 [RateCDR] => 1 ) [2025-01-15 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:45:05' and `end` < '2025-01-15 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:45:17] Production.INFO: count ==1337 [2025-01-15 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:45:05 - End Time 2025-01-15 22:45:05 [2025-01-15 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256758', 'tblTempUsageDetail_20' ) start [2025-01-15 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256758', 'tblTempUsageDetail_20' ) end [2025-01-15 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256758', 'tblTempVendorCDR_20' ) start [2025-01-15 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256758', 'tblTempVendorCDR_20' ) end [2025-01-15 22:45:18] Production.INFO: ProcessCDR(1,14256758,1,1,2) [2025-01-15 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256758', 'tblTempUsageDetail_20' ) start [2025-01-15 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256758', 'tblTempUsageDetail_20' ) end [2025-01-15 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:45:21] Production.INFO: ==32460== Releasing lock... [2025-01-15 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:45:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-15 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:46:05 [end_date_ymd] => 2025-01-15 22:46:05 [RateCDR] => 1 ) [2025-01-15 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:46:05' and `end` < '2025-01-15 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:46:18] Production.INFO: count ==1335 [2025-01-15 22:46:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:46:05 - End Time 2025-01-15 22:46:05 [2025-01-15 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256764', 'tblTempUsageDetail_20' ) start [2025-01-15 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256764', 'tblTempUsageDetail_20' ) end [2025-01-15 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256764', 'tblTempVendorCDR_20' ) start [2025-01-15 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256764', 'tblTempVendorCDR_20' ) end [2025-01-15 22:46:18] Production.INFO: ProcessCDR(1,14256764,1,1,2) [2025-01-15 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256764', 'tblTempUsageDetail_20' ) start [2025-01-15 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256764', 'tblTempUsageDetail_20' ) end [2025-01-15 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:46:22] Production.INFO: ==32545== Releasing lock... [2025-01-15 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:46:22] Production.INFO: 39 MB #Memory Used# [2025-01-15 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:47:05 [end_date_ymd] => 2025-01-15 22:47:05 [RateCDR] => 1 ) [2025-01-15 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:47:05' and `end` < '2025-01-15 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:47:17] Production.INFO: count ==1329 [2025-01-15 22:47:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:47:05 - End Time 2025-01-15 22:47:05 [2025-01-15 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256769', 'tblTempUsageDetail_20' ) start [2025-01-15 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256769', 'tblTempUsageDetail_20' ) end [2025-01-15 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256769', 'tblTempVendorCDR_20' ) start [2025-01-15 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256769', 'tblTempVendorCDR_20' ) end [2025-01-15 22:47:18] Production.INFO: ProcessCDR(1,14256769,1,1,2) [2025-01-15 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256769', 'tblTempUsageDetail_20' ) start [2025-01-15 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256769', 'tblTempUsageDetail_20' ) end [2025-01-15 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:47:21] Production.INFO: ==32638== Releasing lock... [2025-01-15 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:47:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-15 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:48:05 [end_date_ymd] => 2025-01-15 22:48:05 [RateCDR] => 1 ) [2025-01-15 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:48:05' and `end` < '2025-01-15 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:48:21] Production.INFO: count ==1328 [2025-01-15 22:48:21] Production.ERROR: pbx CDR StartTime 2025-01-15 19:48:05 - End Time 2025-01-15 22:48:05 [2025-01-15 22:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256774', 'tblTempUsageDetail_20' ) start [2025-01-15 22:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256774', 'tblTempUsageDetail_20' ) end [2025-01-15 22:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256774', 'tblTempVendorCDR_20' ) start [2025-01-15 22:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256774', 'tblTempVendorCDR_20' ) end [2025-01-15 22:48:21] Production.INFO: ProcessCDR(1,14256774,1,1,2) [2025-01-15 22:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256774', 'tblTempUsageDetail_20' ) start [2025-01-15 22:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256774', 'tblTempUsageDetail_20' ) end [2025-01-15 22:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:48:25] Production.INFO: ==32725== Releasing lock... [2025-01-15 22:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:48:25] Production.INFO: 38.75 MB #Memory Used# [2025-01-15 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:49:05 [end_date_ymd] => 2025-01-15 22:49:05 [RateCDR] => 1 ) [2025-01-15 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:49:05' and `end` < '2025-01-15 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:49:18] Production.INFO: count ==1319 [2025-01-15 22:49:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:49:05 - End Time 2025-01-15 22:49:05 [2025-01-15 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256779', 'tblTempUsageDetail_20' ) start [2025-01-15 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256779', 'tblTempUsageDetail_20' ) end [2025-01-15 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256779', 'tblTempVendorCDR_20' ) start [2025-01-15 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256779', 'tblTempVendorCDR_20' ) end [2025-01-15 22:49:18] Production.INFO: ProcessCDR(1,14256779,1,1,2) [2025-01-15 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256779', 'tblTempUsageDetail_20' ) start [2025-01-15 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256779', 'tblTempUsageDetail_20' ) end [2025-01-15 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:49:21] Production.INFO: ==363== Releasing lock... [2025-01-15 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:49:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-15 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:50:05 [end_date_ymd] => 2025-01-15 22:50:05 [RateCDR] => 1 ) [2025-01-15 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:50:05' and `end` < '2025-01-15 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:50:18] Production.INFO: count ==1319 [2025-01-15 22:50:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:50:05 - End Time 2025-01-15 22:50:05 [2025-01-15 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256784', 'tblTempUsageDetail_20' ) start [2025-01-15 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256784', 'tblTempUsageDetail_20' ) end [2025-01-15 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256784', 'tblTempVendorCDR_20' ) start [2025-01-15 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256784', 'tblTempVendorCDR_20' ) end [2025-01-15 22:50:18] Production.INFO: ProcessCDR(1,14256784,1,1,2) [2025-01-15 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256784', 'tblTempUsageDetail_20' ) start [2025-01-15 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256784', 'tblTempUsageDetail_20' ) end [2025-01-15 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:50:22] Production.INFO: ==452== Releasing lock... [2025-01-15 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:50:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-15 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:51:05 [end_date_ymd] => 2025-01-15 22:51:05 [RateCDR] => 1 ) [2025-01-15 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:51:05' and `end` < '2025-01-15 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:51:18] Production.INFO: count ==1269 [2025-01-15 22:51:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:51:05 - End Time 2025-01-15 22:51:05 [2025-01-15 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256790', 'tblTempUsageDetail_20' ) start [2025-01-15 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256790', 'tblTempUsageDetail_20' ) end [2025-01-15 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256790', 'tblTempVendorCDR_20' ) start [2025-01-15 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256790', 'tblTempVendorCDR_20' ) end [2025-01-15 22:51:18] Production.INFO: ProcessCDR(1,14256790,1,1,2) [2025-01-15 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256790', 'tblTempUsageDetail_20' ) start [2025-01-15 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256790', 'tblTempUsageDetail_20' ) end [2025-01-15 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:51:21] Production.INFO: ==544== Releasing lock... [2025-01-15 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:51:21] Production.INFO: 38 MB #Memory Used# [2025-01-15 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:52:05 [end_date_ymd] => 2025-01-15 22:52:05 [RateCDR] => 1 ) [2025-01-15 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:52:05' and `end` < '2025-01-15 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:52:18] Production.INFO: count ==1273 [2025-01-15 22:52:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:52:05 - End Time 2025-01-15 22:52:05 [2025-01-15 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256795', 'tblTempUsageDetail_20' ) start [2025-01-15 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256795', 'tblTempUsageDetail_20' ) end [2025-01-15 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256795', 'tblTempVendorCDR_20' ) start [2025-01-15 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256795', 'tblTempVendorCDR_20' ) end [2025-01-15 22:52:18] Production.INFO: ProcessCDR(1,14256795,1,1,2) [2025-01-15 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256795', 'tblTempUsageDetail_20' ) start [2025-01-15 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256795', 'tblTempUsageDetail_20' ) end [2025-01-15 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:52:21] Production.INFO: ==709== Releasing lock... [2025-01-15 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:52:21] Production.INFO: 38 MB #Memory Used# [2025-01-15 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:53:05 [end_date_ymd] => 2025-01-15 22:53:05 [RateCDR] => 1 ) [2025-01-15 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:53:05' and `end` < '2025-01-15 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:53:19] Production.INFO: count ==1265 [2025-01-15 22:53:19] Production.ERROR: pbx CDR StartTime 2025-01-15 19:53:05 - End Time 2025-01-15 22:53:05 [2025-01-15 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256800', 'tblTempUsageDetail_20' ) start [2025-01-15 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256800', 'tblTempUsageDetail_20' ) end [2025-01-15 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256800', 'tblTempVendorCDR_20' ) start [2025-01-15 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256800', 'tblTempVendorCDR_20' ) end [2025-01-15 22:53:19] Production.INFO: ProcessCDR(1,14256800,1,1,2) [2025-01-15 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256800', 'tblTempUsageDetail_20' ) start [2025-01-15 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256800', 'tblTempUsageDetail_20' ) end [2025-01-15 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:53:23] Production.INFO: ==799== Releasing lock... [2025-01-15 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:53:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-15 22:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:54:04 [end_date_ymd] => 2025-01-15 22:54:04 [RateCDR] => 1 ) [2025-01-15 22:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:54:04' and `end` < '2025-01-15 22:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:54:17] Production.INFO: count ==1259 [2025-01-15 22:54:17] Production.ERROR: pbx CDR StartTime 2025-01-15 19:54:04 - End Time 2025-01-15 22:54:04 [2025-01-15 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256805', 'tblTempUsageDetail_20' ) start [2025-01-15 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256805', 'tblTempUsageDetail_20' ) end [2025-01-15 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256805', 'tblTempVendorCDR_20' ) start [2025-01-15 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256805', 'tblTempVendorCDR_20' ) end [2025-01-15 22:54:17] Production.INFO: ProcessCDR(1,14256805,1,1,2) [2025-01-15 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256805', 'tblTempUsageDetail_20' ) start [2025-01-15 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256805', 'tblTempUsageDetail_20' ) end [2025-01-15 22:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:54:20] Production.INFO: ==885== Releasing lock... [2025-01-15 22:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:54:20] Production.INFO: 37.75 MB #Memory Used# [2025-01-15 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:55:05 [end_date_ymd] => 2025-01-15 22:55:05 [RateCDR] => 1 ) [2025-01-15 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:55:05' and `end` < '2025-01-15 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:55:18] Production.INFO: count ==1231 [2025-01-15 22:55:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:55:05 - End Time 2025-01-15 22:55:05 [2025-01-15 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256810', 'tblTempUsageDetail_20' ) start [2025-01-15 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256810', 'tblTempUsageDetail_20' ) end [2025-01-15 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256810', 'tblTempVendorCDR_20' ) start [2025-01-15 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256810', 'tblTempVendorCDR_20' ) end [2025-01-15 22:55:18] Production.INFO: ProcessCDR(1,14256810,1,1,2) [2025-01-15 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256810', 'tblTempUsageDetail_20' ) start [2025-01-15 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256810', 'tblTempUsageDetail_20' ) end [2025-01-15 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:55:21] Production.INFO: ==973== Releasing lock... [2025-01-15 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:55:21] Production.INFO: 38 MB #Memory Used# [2025-01-15 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:56:05 [end_date_ymd] => 2025-01-15 22:56:05 [RateCDR] => 1 ) [2025-01-15 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:56:05' and `end` < '2025-01-15 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:56:19] Production.INFO: count ==1151 [2025-01-15 22:56:19] Production.ERROR: pbx CDR StartTime 2025-01-15 19:56:05 - End Time 2025-01-15 22:56:05 [2025-01-15 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256815', 'tblTempUsageDetail_20' ) start [2025-01-15 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256815', 'tblTempUsageDetail_20' ) end [2025-01-15 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256815', 'tblTempVendorCDR_20' ) start [2025-01-15 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256815', 'tblTempVendorCDR_20' ) end [2025-01-15 22:56:19] Production.INFO: ProcessCDR(1,14256815,1,1,2) [2025-01-15 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256815', 'tblTempUsageDetail_20' ) start [2025-01-15 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256815', 'tblTempUsageDetail_20' ) end [2025-01-15 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:56:23] Production.INFO: ==1061== Releasing lock... [2025-01-15 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:56:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-15 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:57:05 [end_date_ymd] => 2025-01-15 22:57:05 [RateCDR] => 1 ) [2025-01-15 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:57:05' and `end` < '2025-01-15 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:57:17] Production.INFO: count ==1068 [2025-01-15 22:57:17] Production.ERROR: pbx CDR StartTime 2025-01-15 19:57:05 - End Time 2025-01-15 22:57:05 [2025-01-15 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256820', 'tblTempUsageDetail_20' ) start [2025-01-15 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256820', 'tblTempUsageDetail_20' ) end [2025-01-15 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256820', 'tblTempVendorCDR_20' ) start [2025-01-15 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256820', 'tblTempVendorCDR_20' ) end [2025-01-15 22:57:17] Production.INFO: ProcessCDR(1,14256820,1,1,2) [2025-01-15 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256820', 'tblTempUsageDetail_20' ) start [2025-01-15 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256820', 'tblTempUsageDetail_20' ) end [2025-01-15 22:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:57:21] Production.INFO: ==1141== Releasing lock... [2025-01-15 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:57:21] Production.INFO: 36 MB #Memory Used# [2025-01-15 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:58:05 [end_date_ymd] => 2025-01-15 22:58:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 19:58:05' and `end` < '2025-01-15 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-01-15 22:58:17] Production.INFO: count ==987 [2025-01-15 22:58:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:58:05 - End Time 2025-01-15 22:58:05 [2025-01-15 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256825', 'tblTempUsageDetail_20' ) start [2025-01-15 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256825', 'tblTempUsageDetail_20' ) end [2025-01-15 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256825', 'tblTempVendorCDR_20' ) start [2025-01-15 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256825', 'tblTempVendorCDR_20' ) end [2025-01-15 22:58:18] Production.INFO: ProcessCDR(1,14256825,1,1,2) [2025-01-15 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256825', 'tblTempUsageDetail_20' ) start [2025-01-15 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256825', 'tblTempUsageDetail_20' ) end [2025-01-15 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:58:21] Production.INFO: ==1228== Releasing lock... [2025-01-15 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:58:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-15 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 19:59:05 [end_date_ymd] => 2025-01-15 22:59:05 [RateCDR] => 1 ) [2025-01-15 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 19:59:05' and `end` < '2025-01-15 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 22:59:18] Production.INFO: count ==905 [2025-01-15 22:59:18] Production.ERROR: pbx CDR StartTime 2025-01-15 19:59:05 - End Time 2025-01-15 22:59:05 [2025-01-15 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256830', 'tblTempUsageDetail_20' ) start [2025-01-15 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256830', 'tblTempUsageDetail_20' ) end [2025-01-15 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256830', 'tblTempVendorCDR_20' ) start [2025-01-15 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256830', 'tblTempVendorCDR_20' ) end [2025-01-15 22:59:18] Production.INFO: ProcessCDR(1,14256830,1,1,2) [2025-01-15 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256830', 'tblTempUsageDetail_20' ) start [2025-01-15 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256830', 'tblTempUsageDetail_20' ) end [2025-01-15 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 22:59:21] Production.INFO: ==1323== Releasing lock... [2025-01-15 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 22:59:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-15 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:00:06 [end_date_ymd] => 2025-01-15 23:00:06 [RateCDR] => 1 ) [2025-01-15 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:00:06' and `end` < '2025-01-15 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:00:18] Production.INFO: count ==827 [2025-01-15 23:00:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:00:06 - End Time 2025-01-15 23:00:06 [2025-01-15 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256836', 'tblTempUsageDetail_20' ) start [2025-01-15 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256836', 'tblTempUsageDetail_20' ) end [2025-01-15 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256836', 'tblTempVendorCDR_20' ) start [2025-01-15 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256836', 'tblTempVendorCDR_20' ) end [2025-01-15 23:00:18] Production.INFO: ProcessCDR(1,14256836,1,1,2) [2025-01-15 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256836', 'tblTempUsageDetail_20' ) start [2025-01-15 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256836', 'tblTempUsageDetail_20' ) end [2025-01-15 23:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:00:21] Production.INFO: ==1420== Releasing lock... [2025-01-15 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:00:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-15 23:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:01:04 [end_date_ymd] => 2025-01-15 23:01:04 [RateCDR] => 1 ) [2025-01-15 23:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:01:04' and `end` < '2025-01-15 23:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:01:17] Production.INFO: count ==712 [2025-01-15 23:01:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:01:04 - End Time 2025-01-15 23:01:04 [2025-01-15 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256841', 'tblTempUsageDetail_20' ) start [2025-01-15 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256841', 'tblTempUsageDetail_20' ) end [2025-01-15 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256841', 'tblTempVendorCDR_20' ) start [2025-01-15 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256841', 'tblTempVendorCDR_20' ) end [2025-01-15 23:01:17] Production.INFO: ProcessCDR(1,14256841,1,1,2) [2025-01-15 23:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256841', 'tblTempUsageDetail_20' ) start [2025-01-15 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256841', 'tblTempUsageDetail_20' ) end [2025-01-15 23:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:01:20] Production.INFO: ==1590== Releasing lock... [2025-01-15 23:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:01:20] Production.INFO: 32.75 MB #Memory Used# [2025-01-15 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:02:05 [end_date_ymd] => 2025-01-15 23:02:05 [RateCDR] => 1 ) [2025-01-15 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:02:05' and `end` < '2025-01-15 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:02:18] Production.INFO: count ==672 [2025-01-15 23:02:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:02:05 - End Time 2025-01-15 23:02:05 [2025-01-15 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256846', 'tblTempUsageDetail_20' ) start [2025-01-15 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256846', 'tblTempUsageDetail_20' ) end [2025-01-15 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256846', 'tblTempVendorCDR_20' ) start [2025-01-15 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256846', 'tblTempVendorCDR_20' ) end [2025-01-15 23:02:18] Production.INFO: ProcessCDR(1,14256846,1,1,2) [2025-01-15 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256846', 'tblTempUsageDetail_20' ) start [2025-01-15 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256846', 'tblTempUsageDetail_20' ) end [2025-01-15 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:02:21] Production.INFO: ==1789== Releasing lock... [2025-01-15 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:02:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-15 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:03:05 [end_date_ymd] => 2025-01-15 23:03:05 [RateCDR] => 1 ) [2025-01-15 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:03:05' and `end` < '2025-01-15 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:03:17] Production.INFO: count ==672 [2025-01-15 23:03:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:03:05 - End Time 2025-01-15 23:03:05 [2025-01-15 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256851', 'tblTempUsageDetail_20' ) start [2025-01-15 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256851', 'tblTempUsageDetail_20' ) end [2025-01-15 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256851', 'tblTempVendorCDR_20' ) start [2025-01-15 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256851', 'tblTempVendorCDR_20' ) end [2025-01-15 23:03:18] Production.INFO: ProcessCDR(1,14256851,1,1,2) [2025-01-15 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256851', 'tblTempUsageDetail_20' ) start [2025-01-15 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256851', 'tblTempUsageDetail_20' ) end [2025-01-15 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:03:21] Production.INFO: ==1908== Releasing lock... [2025-01-15 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:03:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-15 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:04:05 [end_date_ymd] => 2025-01-15 23:04:05 [RateCDR] => 1 ) [2025-01-15 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:04:05' and `end` < '2025-01-15 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:04:17] Production.INFO: count ==672 [2025-01-15 23:04:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:04:05 - End Time 2025-01-15 23:04:05 [2025-01-15 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256856', 'tblTempUsageDetail_20' ) start [2025-01-15 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256856', 'tblTempUsageDetail_20' ) end [2025-01-15 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256856', 'tblTempVendorCDR_20' ) start [2025-01-15 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256856', 'tblTempVendorCDR_20' ) end [2025-01-15 23:04:17] Production.INFO: ProcessCDR(1,14256856,1,1,2) [2025-01-15 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256856', 'tblTempUsageDetail_20' ) start [2025-01-15 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256856', 'tblTempUsageDetail_20' ) end [2025-01-15 23:04:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:04:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:04:20] Production.INFO: ==2024== Releasing lock... [2025-01-15 23:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:04:20] Production.INFO: 32.5 MB #Memory Used# [2025-01-15 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:05:05 [end_date_ymd] => 2025-01-15 23:05:05 [RateCDR] => 1 ) [2025-01-15 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:05:05' and `end` < '2025-01-15 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:05:18] Production.INFO: count ==672 [2025-01-15 23:05:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:05:05 - End Time 2025-01-15 23:05:05 [2025-01-15 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256861', 'tblTempUsageDetail_20' ) start [2025-01-15 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256861', 'tblTempUsageDetail_20' ) end [2025-01-15 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256861', 'tblTempVendorCDR_20' ) start [2025-01-15 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256861', 'tblTempVendorCDR_20' ) end [2025-01-15 23:05:18] Production.INFO: ProcessCDR(1,14256861,1,1,2) [2025-01-15 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256861', 'tblTempUsageDetail_20' ) start [2025-01-15 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256861', 'tblTempUsageDetail_20' ) end [2025-01-15 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:05:21] Production.INFO: ==2222== Releasing lock... [2025-01-15 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:05:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-15 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:06:05 [end_date_ymd] => 2025-01-15 23:06:05 [RateCDR] => 1 ) [2025-01-15 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:06:05' and `end` < '2025-01-15 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:06:17] Production.INFO: count ==672 [2025-01-15 23:06:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:06:05 - End Time 2025-01-15 23:06:05 [2025-01-15 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256866', 'tblTempUsageDetail_20' ) start [2025-01-15 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256866', 'tblTempUsageDetail_20' ) end [2025-01-15 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256866', 'tblTempVendorCDR_20' ) start [2025-01-15 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256866', 'tblTempVendorCDR_20' ) end [2025-01-15 23:06:17] Production.INFO: ProcessCDR(1,14256866,1,1,2) [2025-01-15 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256866', 'tblTempUsageDetail_20' ) start [2025-01-15 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256866', 'tblTempUsageDetail_20' ) end [2025-01-15 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:06:21] Production.INFO: ==2334== Releasing lock... [2025-01-15 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:06:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-15 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:07:05 [end_date_ymd] => 2025-01-15 23:07:05 [RateCDR] => 1 ) [2025-01-15 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:07:05' and `end` < '2025-01-15 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:07:17] Production.INFO: count ==671 [2025-01-15 23:07:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:07:05 - End Time 2025-01-15 23:07:05 [2025-01-15 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256871', 'tblTempUsageDetail_20' ) start [2025-01-15 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256871', 'tblTempUsageDetail_20' ) end [2025-01-15 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256871', 'tblTempVendorCDR_20' ) start [2025-01-15 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256871', 'tblTempVendorCDR_20' ) end [2025-01-15 23:07:17] Production.INFO: ProcessCDR(1,14256871,1,1,2) [2025-01-15 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256871', 'tblTempUsageDetail_20' ) start [2025-01-15 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256871', 'tblTempUsageDetail_20' ) end [2025-01-15 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:07:21] Production.INFO: ==2486== Releasing lock... [2025-01-15 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:07:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-15 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:08:05 [end_date_ymd] => 2025-01-15 23:08:05 [RateCDR] => 1 ) [2025-01-15 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:08:05' and `end` < '2025-01-15 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:08:17] Production.INFO: count ==671 [2025-01-15 23:08:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:08:05 - End Time 2025-01-15 23:08:05 [2025-01-15 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256876', 'tblTempUsageDetail_20' ) start [2025-01-15 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256876', 'tblTempUsageDetail_20' ) end [2025-01-15 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256876', 'tblTempVendorCDR_20' ) start [2025-01-15 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256876', 'tblTempVendorCDR_20' ) end [2025-01-15 23:08:17] Production.INFO: ProcessCDR(1,14256876,1,1,2) [2025-01-15 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256876', 'tblTempUsageDetail_20' ) start [2025-01-15 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256876', 'tblTempUsageDetail_20' ) end [2025-01-15 23:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:08:20] Production.INFO: ==2678== Releasing lock... [2025-01-15 23:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:08:20] Production.INFO: 32.5 MB #Memory Used# [2025-01-15 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:09:05 [end_date_ymd] => 2025-01-15 23:09:05 [RateCDR] => 1 ) [2025-01-15 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:09:05' and `end` < '2025-01-15 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:09:18] Production.INFO: count ==671 [2025-01-15 23:09:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:09:05 - End Time 2025-01-15 23:09:05 [2025-01-15 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256881', 'tblTempUsageDetail_20' ) start [2025-01-15 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256881', 'tblTempUsageDetail_20' ) end [2025-01-15 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256881', 'tblTempVendorCDR_20' ) start [2025-01-15 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256881', 'tblTempVendorCDR_20' ) end [2025-01-15 23:09:18] Production.INFO: ProcessCDR(1,14256881,1,1,2) [2025-01-15 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256881', 'tblTempUsageDetail_20' ) start [2025-01-15 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256881', 'tblTempUsageDetail_20' ) end [2025-01-15 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:09:21] Production.INFO: ==2793== Releasing lock... [2025-01-15 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:09:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-15 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:10:05 [end_date_ymd] => 2025-01-15 23:10:05 [RateCDR] => 1 ) [2025-01-15 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:10:05' and `end` < '2025-01-15 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:10:17] Production.INFO: count ==668 [2025-01-15 23:10:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:10:05 - End Time 2025-01-15 23:10:05 [2025-01-15 23:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256886', 'tblTempUsageDetail_20' ) start [2025-01-15 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256886', 'tblTempUsageDetail_20' ) end [2025-01-15 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256886', 'tblTempVendorCDR_20' ) start [2025-01-15 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256886', 'tblTempVendorCDR_20' ) end [2025-01-15 23:10:17] Production.INFO: ProcessCDR(1,14256886,1,1,2) [2025-01-15 23:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256886', 'tblTempUsageDetail_20' ) start [2025-01-15 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256886', 'tblTempUsageDetail_20' ) end [2025-01-15 23:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:10:21] Production.INFO: ==2910== Releasing lock... [2025-01-15 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:10:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-15 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:11:05 [end_date_ymd] => 2025-01-15 23:11:05 [RateCDR] => 1 ) [2025-01-15 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:11:05' and `end` < '2025-01-15 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:11:17] Production.INFO: count ==650 [2025-01-15 23:11:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:11:05 - End Time 2025-01-15 23:11:05 [2025-01-15 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256892', 'tblTempUsageDetail_20' ) start [2025-01-15 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256892', 'tblTempUsageDetail_20' ) end [2025-01-15 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256892', 'tblTempVendorCDR_20' ) start [2025-01-15 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256892', 'tblTempVendorCDR_20' ) end [2025-01-15 23:11:17] Production.INFO: ProcessCDR(1,14256892,1,1,2) [2025-01-15 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256892', 'tblTempUsageDetail_20' ) start [2025-01-15 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256892', 'tblTempUsageDetail_20' ) end [2025-01-15 23:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:11:20] Production.INFO: ==3025== Releasing lock... [2025-01-15 23:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:11:20] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:12:05 [end_date_ymd] => 2025-01-15 23:12:05 [RateCDR] => 1 ) [2025-01-15 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:12:05' and `end` < '2025-01-15 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:12:19] Production.INFO: count ==650 [2025-01-15 23:12:19] Production.ERROR: pbx CDR StartTime 2025-01-15 20:12:05 - End Time 2025-01-15 23:12:05 [2025-01-15 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256897', 'tblTempUsageDetail_20' ) start [2025-01-15 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256897', 'tblTempUsageDetail_20' ) end [2025-01-15 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256897', 'tblTempVendorCDR_20' ) start [2025-01-15 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256897', 'tblTempVendorCDR_20' ) end [2025-01-15 23:12:19] Production.INFO: ProcessCDR(1,14256897,1,1,2) [2025-01-15 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256897', 'tblTempUsageDetail_20' ) start [2025-01-15 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256897', 'tblTempUsageDetail_20' ) end [2025-01-15 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:12:22] Production.INFO: ==3188== Releasing lock... [2025-01-15 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:12:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:13:05 [end_date_ymd] => 2025-01-15 23:13:05 [RateCDR] => 1 ) [2025-01-15 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:13:05' and `end` < '2025-01-15 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:13:18] Production.INFO: count ==646 [2025-01-15 23:13:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:13:05 - End Time 2025-01-15 23:13:05 [2025-01-15 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256902', 'tblTempUsageDetail_20' ) start [2025-01-15 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256902', 'tblTempUsageDetail_20' ) end [2025-01-15 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256902', 'tblTempVendorCDR_20' ) start [2025-01-15 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256902', 'tblTempVendorCDR_20' ) end [2025-01-15 23:13:18] Production.INFO: ProcessCDR(1,14256902,1,1,2) [2025-01-15 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256902', 'tblTempUsageDetail_20' ) start [2025-01-15 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256902', 'tblTempUsageDetail_20' ) end [2025-01-15 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:13:21] Production.INFO: ==3270== Releasing lock... [2025-01-15 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:13:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:14:06 [end_date_ymd] => 2025-01-15 23:14:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 20:14:06' and `end` < '2025-01-15 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-01-15 23:14:19] Production.INFO: count ==645 [2025-01-15 23:14:19] Production.ERROR: pbx CDR StartTime 2025-01-15 20:14:06 - End Time 2025-01-15 23:14:06 [2025-01-15 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256907', 'tblTempUsageDetail_20' ) start [2025-01-15 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256907', 'tblTempUsageDetail_20' ) end [2025-01-15 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256907', 'tblTempVendorCDR_20' ) start [2025-01-15 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256907', 'tblTempVendorCDR_20' ) end [2025-01-15 23:14:19] Production.INFO: ProcessCDR(1,14256907,1,1,2) [2025-01-15 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256907', 'tblTempUsageDetail_20' ) start [2025-01-15 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256907', 'tblTempUsageDetail_20' ) end [2025-01-15 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:14:22] Production.INFO: ==3341== Releasing lock... [2025-01-15 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:14:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:15:05 [end_date_ymd] => 2025-01-15 23:15:05 [RateCDR] => 1 ) [2025-01-15 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:15:05' and `end` < '2025-01-15 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:15:17] Production.INFO: count ==644 [2025-01-15 23:15:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:15:05 - End Time 2025-01-15 23:15:05 [2025-01-15 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256912', 'tblTempUsageDetail_20' ) start [2025-01-15 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256912', 'tblTempUsageDetail_20' ) end [2025-01-15 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256912', 'tblTempVendorCDR_20' ) start [2025-01-15 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256912', 'tblTempVendorCDR_20' ) end [2025-01-15 23:15:17] Production.INFO: ProcessCDR(1,14256912,1,1,2) [2025-01-15 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256912', 'tblTempUsageDetail_20' ) start [2025-01-15 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256912', 'tblTempUsageDetail_20' ) end [2025-01-15 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:15:21] Production.INFO: ==3488== Releasing lock... [2025-01-15 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:15:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:16:05 [end_date_ymd] => 2025-01-15 23:16:05 [RateCDR] => 1 ) [2025-01-15 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:16:05' and `end` < '2025-01-15 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:16:19] Production.INFO: count ==644 [2025-01-15 23:16:19] Production.ERROR: pbx CDR StartTime 2025-01-15 20:16:05 - End Time 2025-01-15 23:16:05 [2025-01-15 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256917', 'tblTempUsageDetail_20' ) start [2025-01-15 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256917', 'tblTempUsageDetail_20' ) end [2025-01-15 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256917', 'tblTempVendorCDR_20' ) start [2025-01-15 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256917', 'tblTempVendorCDR_20' ) end [2025-01-15 23:16:19] Production.INFO: ProcessCDR(1,14256917,1,1,2) [2025-01-15 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256917', 'tblTempUsageDetail_20' ) start [2025-01-15 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256917', 'tblTempUsageDetail_20' ) end [2025-01-15 23:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:16:23] Production.INFO: ==3561== Releasing lock... [2025-01-15 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:16:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:17:05 [end_date_ymd] => 2025-01-15 23:17:05 [RateCDR] => 1 ) [2025-01-15 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:17:05' and `end` < '2025-01-15 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:17:17] Production.INFO: count ==644 [2025-01-15 23:17:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:17:05 - End Time 2025-01-15 23:17:05 [2025-01-15 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256922', 'tblTempUsageDetail_20' ) start [2025-01-15 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256922', 'tblTempUsageDetail_20' ) end [2025-01-15 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256922', 'tblTempVendorCDR_20' ) start [2025-01-15 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256922', 'tblTempVendorCDR_20' ) end [2025-01-15 23:17:18] Production.INFO: ProcessCDR(1,14256922,1,1,2) [2025-01-15 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256922', 'tblTempUsageDetail_20' ) start [2025-01-15 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256922', 'tblTempUsageDetail_20' ) end [2025-01-15 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:17:21] Production.INFO: ==3632== Releasing lock... [2025-01-15 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:17:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:18:05 [end_date_ymd] => 2025-01-15 23:18:05 [RateCDR] => 1 ) [2025-01-15 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:18:05' and `end` < '2025-01-15 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:18:18] Production.INFO: count ==642 [2025-01-15 23:18:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:18:05 - End Time 2025-01-15 23:18:05 [2025-01-15 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256927', 'tblTempUsageDetail_20' ) start [2025-01-15 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256927', 'tblTempUsageDetail_20' ) end [2025-01-15 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256927', 'tblTempVendorCDR_20' ) start [2025-01-15 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256927', 'tblTempVendorCDR_20' ) end [2025-01-15 23:18:18] Production.INFO: ProcessCDR(1,14256927,1,1,2) [2025-01-15 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256927', 'tblTempUsageDetail_20' ) start [2025-01-15 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256927', 'tblTempUsageDetail_20' ) end [2025-01-15 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:18:21] Production.INFO: ==3703== Releasing lock... [2025-01-15 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:18:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:19:05 [end_date_ymd] => 2025-01-15 23:19:05 [RateCDR] => 1 ) [2025-01-15 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:19:05' and `end` < '2025-01-15 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:19:18] Production.INFO: count ==640 [2025-01-15 23:19:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:19:05 - End Time 2025-01-15 23:19:05 [2025-01-15 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256932', 'tblTempUsageDetail_20' ) start [2025-01-15 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256932', 'tblTempUsageDetail_20' ) end [2025-01-15 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256932', 'tblTempVendorCDR_20' ) start [2025-01-15 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256932', 'tblTempVendorCDR_20' ) end [2025-01-15 23:19:18] Production.INFO: ProcessCDR(1,14256932,1,1,2) [2025-01-15 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256932', 'tblTempUsageDetail_20' ) start [2025-01-15 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256932', 'tblTempUsageDetail_20' ) end [2025-01-15 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:19:21] Production.INFO: ==3771== Releasing lock... [2025-01-15 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:19:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:20:06 [end_date_ymd] => 2025-01-15 23:20:06 [RateCDR] => 1 ) [2025-01-15 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:20:06' and `end` < '2025-01-15 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:20:19] Production.INFO: count ==638 [2025-01-15 23:20:19] Production.ERROR: pbx CDR StartTime 2025-01-15 20:20:06 - End Time 2025-01-15 23:20:06 [2025-01-15 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256938', 'tblTempUsageDetail_20' ) start [2025-01-15 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256938', 'tblTempUsageDetail_20' ) end [2025-01-15 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256938', 'tblTempVendorCDR_20' ) start [2025-01-15 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256938', 'tblTempVendorCDR_20' ) end [2025-01-15 23:20:19] Production.INFO: ProcessCDR(1,14256938,1,1,2) [2025-01-15 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256938', 'tblTempUsageDetail_20' ) start [2025-01-15 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256938', 'tblTempUsageDetail_20' ) end [2025-01-15 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:20:22] Production.INFO: ==3844== Releasing lock... [2025-01-15 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:20:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-15 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:21:04 [end_date_ymd] => 2025-01-15 23:21:04 [RateCDR] => 1 ) [2025-01-15 23:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:21:04' and `end` < '2025-01-15 23:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:21:18] Production.INFO: count ==634 [2025-01-15 23:21:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:21:04 - End Time 2025-01-15 23:21:04 [2025-01-15 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256943', 'tblTempUsageDetail_20' ) start [2025-01-15 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256943', 'tblTempUsageDetail_20' ) end [2025-01-15 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256943', 'tblTempVendorCDR_20' ) start [2025-01-15 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256943', 'tblTempVendorCDR_20' ) end [2025-01-15 23:21:18] Production.INFO: ProcessCDR(1,14256943,1,1,2) [2025-01-15 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256943', 'tblTempUsageDetail_20' ) start [2025-01-15 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256943', 'tblTempUsageDetail_20' ) end [2025-01-15 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:21:21] Production.INFO: ==3917== Releasing lock... [2025-01-15 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:21:21] Production.INFO: 32 MB #Memory Used# [2025-01-15 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:22:05 [end_date_ymd] => 2025-01-15 23:22:05 [RateCDR] => 1 ) [2025-01-15 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:22:05' and `end` < '2025-01-15 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:22:19] Production.INFO: count ==634 [2025-01-15 23:22:19] Production.ERROR: pbx CDR StartTime 2025-01-15 20:22:05 - End Time 2025-01-15 23:22:05 [2025-01-15 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256948', 'tblTempUsageDetail_20' ) start [2025-01-15 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256948', 'tblTempUsageDetail_20' ) end [2025-01-15 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256948', 'tblTempVendorCDR_20' ) start [2025-01-15 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256948', 'tblTempVendorCDR_20' ) end [2025-01-15 23:22:19] Production.INFO: ProcessCDR(1,14256948,1,1,2) [2025-01-15 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256948', 'tblTempUsageDetail_20' ) start [2025-01-15 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256948', 'tblTempUsageDetail_20' ) end [2025-01-15 23:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:22:24] Production.INFO: ==3990== Releasing lock... [2025-01-15 23:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:22:24] Production.INFO: 32 MB #Memory Used# [2025-01-15 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:23:05 [end_date_ymd] => 2025-01-15 23:23:05 [RateCDR] => 1 ) [2025-01-15 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:23:05' and `end` < '2025-01-15 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:23:17] Production.INFO: count ==631 [2025-01-15 23:23:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:23:05 - End Time 2025-01-15 23:23:05 [2025-01-15 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256953', 'tblTempUsageDetail_20' ) start [2025-01-15 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256953', 'tblTempUsageDetail_20' ) end [2025-01-15 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256953', 'tblTempVendorCDR_20' ) start [2025-01-15 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256953', 'tblTempVendorCDR_20' ) end [2025-01-15 23:23:17] Production.INFO: ProcessCDR(1,14256953,1,1,2) [2025-01-15 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256953', 'tblTempUsageDetail_20' ) start [2025-01-15 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256953', 'tblTempUsageDetail_20' ) end [2025-01-15 23:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:23:20] Production.INFO: ==4100== Releasing lock... [2025-01-15 23:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:23:20] Production.INFO: 32 MB #Memory Used# [2025-01-15 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:24:05 [end_date_ymd] => 2025-01-15 23:24:05 [RateCDR] => 1 ) [2025-01-15 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:24:05' and `end` < '2025-01-15 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:24:18] Production.INFO: count ==630 [2025-01-15 23:24:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:24:05 - End Time 2025-01-15 23:24:05 [2025-01-15 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256958', 'tblTempUsageDetail_20' ) start [2025-01-15 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256958', 'tblTempUsageDetail_20' ) end [2025-01-15 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256958', 'tblTempVendorCDR_20' ) start [2025-01-15 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256958', 'tblTempVendorCDR_20' ) end [2025-01-15 23:24:18] Production.INFO: ProcessCDR(1,14256958,1,1,2) [2025-01-15 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256958', 'tblTempUsageDetail_20' ) start [2025-01-15 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256958', 'tblTempUsageDetail_20' ) end [2025-01-15 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:24:21] Production.INFO: ==4173== Releasing lock... [2025-01-15 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:24:21] Production.INFO: 32 MB #Memory Used# [2025-01-15 23:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:25:04 [end_date_ymd] => 2025-01-15 23:25:04 [RateCDR] => 1 ) [2025-01-15 23:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:25:04' and `end` < '2025-01-15 23:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:25:17] Production.INFO: count ==630 [2025-01-15 23:25:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:25:04 - End Time 2025-01-15 23:25:04 [2025-01-15 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256963', 'tblTempUsageDetail_20' ) start [2025-01-15 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256963', 'tblTempUsageDetail_20' ) end [2025-01-15 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256963', 'tblTempVendorCDR_20' ) start [2025-01-15 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256963', 'tblTempVendorCDR_20' ) end [2025-01-15 23:25:17] Production.INFO: ProcessCDR(1,14256963,1,1,2) [2025-01-15 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256963', 'tblTempUsageDetail_20' ) start [2025-01-15 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256963', 'tblTempUsageDetail_20' ) end [2025-01-15 23:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:25:20] Production.INFO: ==4241== Releasing lock... [2025-01-15 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:25:20] Production.INFO: 32 MB #Memory Used# [2025-01-15 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:26:05 [end_date_ymd] => 2025-01-15 23:26:05 [RateCDR] => 1 ) [2025-01-15 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:26:05' and `end` < '2025-01-15 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:26:17] Production.INFO: count ==623 [2025-01-15 23:26:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:26:05 - End Time 2025-01-15 23:26:05 [2025-01-15 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256968', 'tblTempUsageDetail_20' ) start [2025-01-15 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256968', 'tblTempUsageDetail_20' ) end [2025-01-15 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256968', 'tblTempVendorCDR_20' ) start [2025-01-15 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256968', 'tblTempVendorCDR_20' ) end [2025-01-15 23:26:17] Production.INFO: ProcessCDR(1,14256968,1,1,2) [2025-01-15 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256968', 'tblTempUsageDetail_20' ) start [2025-01-15 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256968', 'tblTempUsageDetail_20' ) end [2025-01-15 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:26:21] Production.INFO: ==4313== Releasing lock... [2025-01-15 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:26:21] Production.INFO: 32 MB #Memory Used# [2025-01-15 23:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:27:04 [end_date_ymd] => 2025-01-15 23:27:04 [RateCDR] => 1 ) [2025-01-15 23:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:27:04' and `end` < '2025-01-15 23:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:27:17] Production.INFO: count ==620 [2025-01-15 23:27:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:27:04 - End Time 2025-01-15 23:27:04 [2025-01-15 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256973', 'tblTempUsageDetail_20' ) start [2025-01-15 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256973', 'tblTempUsageDetail_20' ) end [2025-01-15 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256973', 'tblTempVendorCDR_20' ) start [2025-01-15 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256973', 'tblTempVendorCDR_20' ) end [2025-01-15 23:27:17] Production.INFO: ProcessCDR(1,14256973,1,1,2) [2025-01-15 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256973', 'tblTempUsageDetail_20' ) start [2025-01-15 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256973', 'tblTempUsageDetail_20' ) end [2025-01-15 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:27:21] Production.INFO: ==4390== Releasing lock... [2025-01-15 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:27:21] Production.INFO: 32 MB #Memory Used# [2025-01-15 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:28:05 [end_date_ymd] => 2025-01-15 23:28:05 [RateCDR] => 1 ) [2025-01-15 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:28:05' and `end` < '2025-01-15 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:28:17] Production.INFO: count ==616 [2025-01-15 23:28:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:28:05 - End Time 2025-01-15 23:28:05 [2025-01-15 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256978', 'tblTempUsageDetail_20' ) start [2025-01-15 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256978', 'tblTempUsageDetail_20' ) end [2025-01-15 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256978', 'tblTempVendorCDR_20' ) start [2025-01-15 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256978', 'tblTempVendorCDR_20' ) end [2025-01-15 23:28:17] Production.INFO: ProcessCDR(1,14256978,1,1,2) [2025-01-15 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256978', 'tblTempUsageDetail_20' ) start [2025-01-15 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256978', 'tblTempUsageDetail_20' ) end [2025-01-15 23:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:28:20] Production.INFO: ==4462== Releasing lock... [2025-01-15 23:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:28:20] Production.INFO: 32 MB #Memory Used# [2025-01-15 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:29:05 [end_date_ymd] => 2025-01-15 23:29:05 [RateCDR] => 1 ) [2025-01-15 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:29:05' and `end` < '2025-01-15 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:29:18] Production.INFO: count ==615 [2025-01-15 23:29:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:29:05 - End Time 2025-01-15 23:29:05 [2025-01-15 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256983', 'tblTempUsageDetail_20' ) start [2025-01-15 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256983', 'tblTempUsageDetail_20' ) end [2025-01-15 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256983', 'tblTempVendorCDR_20' ) start [2025-01-15 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256983', 'tblTempVendorCDR_20' ) end [2025-01-15 23:29:18] Production.INFO: ProcessCDR(1,14256983,1,1,2) [2025-01-15 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256983', 'tblTempUsageDetail_20' ) start [2025-01-15 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256983', 'tblTempUsageDetail_20' ) end [2025-01-15 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:29:21] Production.INFO: ==4532== Releasing lock... [2025-01-15 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:29:21] Production.INFO: 32 MB #Memory Used# [2025-01-15 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:30:05 [end_date_ymd] => 2025-01-15 23:30:05 [RateCDR] => 1 ) [2025-01-15 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:30:05' and `end` < '2025-01-15 23:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:30:17] Production.INFO: count ==612 [2025-01-15 23:30:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:30:05 - End Time 2025-01-15 23:30:05 [2025-01-15 23:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256988', 'tblTempUsageDetail_20' ) start [2025-01-15 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256988', 'tblTempUsageDetail_20' ) end [2025-01-15 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256988', 'tblTempVendorCDR_20' ) start [2025-01-15 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256988', 'tblTempVendorCDR_20' ) end [2025-01-15 23:30:17] Production.INFO: ProcessCDR(1,14256988,1,1,2) [2025-01-15 23:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256988', 'tblTempUsageDetail_20' ) start [2025-01-15 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256988', 'tblTempUsageDetail_20' ) end [2025-01-15 23:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:30:21] Production.INFO: ==4612== Releasing lock... [2025-01-15 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:30:21] Production.INFO: 32 MB #Memory Used# [2025-01-15 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:31:05 [end_date_ymd] => 2025-01-15 23:31:05 [RateCDR] => 1 ) [2025-01-15 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:31:05' and `end` < '2025-01-15 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:31:18] Production.INFO: count ==597 [2025-01-15 23:31:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:31:05 - End Time 2025-01-15 23:31:05 [2025-01-15 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256994', 'tblTempUsageDetail_20' ) start [2025-01-15 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256994', 'tblTempUsageDetail_20' ) end [2025-01-15 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256994', 'tblTempVendorCDR_20' ) start [2025-01-15 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256994', 'tblTempVendorCDR_20' ) end [2025-01-15 23:31:18] Production.INFO: ProcessCDR(1,14256994,1,1,2) [2025-01-15 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256994', 'tblTempUsageDetail_20' ) start [2025-01-15 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256994', 'tblTempUsageDetail_20' ) end [2025-01-15 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:31:21] Production.INFO: ==4688== Releasing lock... [2025-01-15 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:31:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:32:05 [end_date_ymd] => 2025-01-15 23:32:05 [RateCDR] => 1 ) [2025-01-15 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:32:05' and `end` < '2025-01-15 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:32:17] Production.INFO: count ==600 [2025-01-15 23:32:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:32:05 - End Time 2025-01-15 23:32:05 [2025-01-15 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256999', 'tblTempUsageDetail_20' ) start [2025-01-15 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14256999', 'tblTempUsageDetail_20' ) end [2025-01-15 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256999', 'tblTempVendorCDR_20' ) start [2025-01-15 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14256999', 'tblTempVendorCDR_20' ) end [2025-01-15 23:32:17] Production.INFO: ProcessCDR(1,14256999,1,1,2) [2025-01-15 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14256999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14256999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14256999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14256999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256999', 'tblTempUsageDetail_20' ) start [2025-01-15 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14256999', 'tblTempUsageDetail_20' ) end [2025-01-15 23:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:32:20] Production.INFO: ==4757== Releasing lock... [2025-01-15 23:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:32:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:33:05 [end_date_ymd] => 2025-01-15 23:33:05 [RateCDR] => 1 ) [2025-01-15 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:33:05' and `end` < '2025-01-15 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:33:17] Production.INFO: count ==602 [2025-01-15 23:33:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:33:05 - End Time 2025-01-15 23:33:05 [2025-01-15 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257003', 'tblTempUsageDetail_20' ) start [2025-01-15 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257003', 'tblTempUsageDetail_20' ) end [2025-01-15 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257003', 'tblTempVendorCDR_20' ) start [2025-01-15 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257003', 'tblTempVendorCDR_20' ) end [2025-01-15 23:33:17] Production.INFO: ProcessCDR(1,14257003,1,1,2) [2025-01-15 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257003', 'tblTempUsageDetail_20' ) start [2025-01-15 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257003', 'tblTempUsageDetail_20' ) end [2025-01-15 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:33:21] Production.INFO: ==4829== Releasing lock... [2025-01-15 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:33:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:34:04 [end_date_ymd] => 2025-01-15 23:34:04 [RateCDR] => 1 ) [2025-01-15 23:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:34:04' and `end` < '2025-01-15 23:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:34:18] Production.INFO: count ==602 [2025-01-15 23:34:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:34:04 - End Time 2025-01-15 23:34:04 [2025-01-15 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257008', 'tblTempUsageDetail_20' ) start [2025-01-15 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257008', 'tblTempUsageDetail_20' ) end [2025-01-15 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257008', 'tblTempVendorCDR_20' ) start [2025-01-15 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257008', 'tblTempVendorCDR_20' ) end [2025-01-15 23:34:18] Production.INFO: ProcessCDR(1,14257008,1,1,2) [2025-01-15 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257008', 'tblTempUsageDetail_20' ) start [2025-01-15 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257008', 'tblTempUsageDetail_20' ) end [2025-01-15 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:34:21] Production.INFO: ==4901== Releasing lock... [2025-01-15 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:34:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:35:05 [end_date_ymd] => 2025-01-15 23:35:05 [RateCDR] => 1 ) [2025-01-15 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:35:05' and `end` < '2025-01-15 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:35:17] Production.INFO: count ==598 [2025-01-15 23:35:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:35:05 - End Time 2025-01-15 23:35:05 [2025-01-15 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257014', 'tblTempUsageDetail_20' ) start [2025-01-15 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257014', 'tblTempUsageDetail_20' ) end [2025-01-15 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257014', 'tblTempVendorCDR_20' ) start [2025-01-15 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257014', 'tblTempVendorCDR_20' ) end [2025-01-15 23:35:17] Production.INFO: ProcessCDR(1,14257014,1,1,2) [2025-01-15 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257014', 'tblTempUsageDetail_20' ) start [2025-01-15 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257014', 'tblTempUsageDetail_20' ) end [2025-01-15 23:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:35:20] Production.INFO: ==5042== Releasing lock... [2025-01-15 23:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:35:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:36:05 [end_date_ymd] => 2025-01-15 23:36:05 [RateCDR] => 1 ) [2025-01-15 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-01-15 20:36:05' and `end` < '2025-01-15 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-01-15 23:36:17] Production.INFO: count ==603 [2025-01-15 23:36:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:36:05 - End Time 2025-01-15 23:36:05 [2025-01-15 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257019', 'tblTempUsageDetail_20' ) start [2025-01-15 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257019', 'tblTempUsageDetail_20' ) end [2025-01-15 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257019', 'tblTempVendorCDR_20' ) start [2025-01-15 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257019', 'tblTempVendorCDR_20' ) end [2025-01-15 23:36:17] Production.INFO: ProcessCDR(1,14257019,1,1,2) [2025-01-15 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257019', 'tblTempUsageDetail_20' ) start [2025-01-15 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257019', 'tblTempUsageDetail_20' ) end [2025-01-15 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:36:21] Production.INFO: ==5113== Releasing lock... [2025-01-15 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:36:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:37:05 [end_date_ymd] => 2025-01-15 23:37:05 [RateCDR] => 1 ) [2025-01-15 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:37:05' and `end` < '2025-01-15 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:37:17] Production.INFO: count ==603 [2025-01-15 23:37:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:37:05 - End Time 2025-01-15 23:37:05 [2025-01-15 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257024', 'tblTempUsageDetail_20' ) start [2025-01-15 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257024', 'tblTempUsageDetail_20' ) end [2025-01-15 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257024', 'tblTempVendorCDR_20' ) start [2025-01-15 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257024', 'tblTempVendorCDR_20' ) end [2025-01-15 23:37:17] Production.INFO: ProcessCDR(1,14257024,1,1,2) [2025-01-15 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257024', 'tblTempUsageDetail_20' ) start [2025-01-15 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257024', 'tblTempUsageDetail_20' ) end [2025-01-15 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:37:21] Production.INFO: ==5182== Releasing lock... [2025-01-15 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:37:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:38:05 [end_date_ymd] => 2025-01-15 23:38:05 [RateCDR] => 1 ) [2025-01-15 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:38:05' and `end` < '2025-01-15 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:38:19] Production.INFO: count ==603 [2025-01-15 23:38:19] Production.ERROR: pbx CDR StartTime 2025-01-15 20:38:05 - End Time 2025-01-15 23:38:05 [2025-01-15 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257029', 'tblTempUsageDetail_20' ) start [2025-01-15 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257029', 'tblTempUsageDetail_20' ) end [2025-01-15 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257029', 'tblTempVendorCDR_20' ) start [2025-01-15 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257029', 'tblTempVendorCDR_20' ) end [2025-01-15 23:38:19] Production.INFO: ProcessCDR(1,14257029,1,1,2) [2025-01-15 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257029', 'tblTempUsageDetail_20' ) start [2025-01-15 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257029', 'tblTempUsageDetail_20' ) end [2025-01-15 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:38:22] Production.INFO: ==5292== Releasing lock... [2025-01-15 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:38:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:39:05 [end_date_ymd] => 2025-01-15 23:39:05 [RateCDR] => 1 ) [2025-01-15 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:39:05' and `end` < '2025-01-15 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:39:18] Production.INFO: count ==603 [2025-01-15 23:39:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:39:05 - End Time 2025-01-15 23:39:05 [2025-01-15 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257034', 'tblTempUsageDetail_20' ) start [2025-01-15 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257034', 'tblTempUsageDetail_20' ) end [2025-01-15 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257034', 'tblTempVendorCDR_20' ) start [2025-01-15 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257034', 'tblTempVendorCDR_20' ) end [2025-01-15 23:39:18] Production.INFO: ProcessCDR(1,14257034,1,1,2) [2025-01-15 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257034', 'tblTempUsageDetail_20' ) start [2025-01-15 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257034', 'tblTempUsageDetail_20' ) end [2025-01-15 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:39:22] Production.INFO: ==5361== Releasing lock... [2025-01-15 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:39:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:40:05 [end_date_ymd] => 2025-01-15 23:40:05 [RateCDR] => 1 ) [2025-01-15 23:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:40:05' and `end` < '2025-01-15 23:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:40:18] Production.INFO: count ==603 [2025-01-15 23:40:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:40:05 - End Time 2025-01-15 23:40:05 [2025-01-15 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257039', 'tblTempUsageDetail_20' ) start [2025-01-15 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257039', 'tblTempUsageDetail_20' ) end [2025-01-15 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257039', 'tblTempVendorCDR_20' ) start [2025-01-15 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257039', 'tblTempVendorCDR_20' ) end [2025-01-15 23:40:18] Production.INFO: ProcessCDR(1,14257039,1,1,2) [2025-01-15 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257039', 'tblTempUsageDetail_20' ) start [2025-01-15 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257039', 'tblTempUsageDetail_20' ) end [2025-01-15 23:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:40:21] Production.INFO: ==5435== Releasing lock... [2025-01-15 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:40:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:41:05 [end_date_ymd] => 2025-01-15 23:41:05 [RateCDR] => 1 ) [2025-01-15 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:41:05' and `end` < '2025-01-15 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:41:19] Production.INFO: count ==563 [2025-01-15 23:41:19] Production.ERROR: pbx CDR StartTime 2025-01-15 20:41:05 - End Time 2025-01-15 23:41:05 [2025-01-15 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257045', 'tblTempUsageDetail_20' ) start [2025-01-15 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257045', 'tblTempUsageDetail_20' ) end [2025-01-15 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257045', 'tblTempVendorCDR_20' ) start [2025-01-15 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257045', 'tblTempVendorCDR_20' ) end [2025-01-15 23:41:19] Production.INFO: ProcessCDR(1,14257045,1,1,2) [2025-01-15 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257045', 'tblTempUsageDetail_20' ) start [2025-01-15 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257045', 'tblTempUsageDetail_20' ) end [2025-01-15 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:41:22] Production.INFO: ==5514== Releasing lock... [2025-01-15 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:41:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-15 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:42:05 [end_date_ymd] => 2025-01-15 23:42:05 [RateCDR] => 1 ) [2025-01-15 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:42:05' and `end` < '2025-01-15 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:42:17] Production.INFO: count ==566 [2025-01-15 23:42:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:42:05 - End Time 2025-01-15 23:42:05 [2025-01-15 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257050', 'tblTempUsageDetail_20' ) start [2025-01-15 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257050', 'tblTempUsageDetail_20' ) end [2025-01-15 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257050', 'tblTempVendorCDR_20' ) start [2025-01-15 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257050', 'tblTempVendorCDR_20' ) end [2025-01-15 23:42:17] Production.INFO: ProcessCDR(1,14257050,1,1,2) [2025-01-15 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257050', 'tblTempUsageDetail_20' ) start [2025-01-15 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257050', 'tblTempUsageDetail_20' ) end [2025-01-15 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:42:21] Production.INFO: ==5585== Releasing lock... [2025-01-15 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:42:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-15 23:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:43:06 [end_date_ymd] => 2025-01-15 23:43:06 [RateCDR] => 1 ) [2025-01-15 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-01-15 20:43:06' and `end` < '2025-01-15 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-01-15 23:43:19] Production.INFO: count ==567 [2025-01-15 23:43:19] Production.ERROR: pbx CDR StartTime 2025-01-15 20:43:06 - End Time 2025-01-15 23:43:06 [2025-01-15 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257055', 'tblTempUsageDetail_20' ) start [2025-01-15 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257055', 'tblTempUsageDetail_20' ) end [2025-01-15 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257055', 'tblTempVendorCDR_20' ) start [2025-01-15 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257055', 'tblTempVendorCDR_20' ) end [2025-01-15 23:43:19] Production.INFO: ProcessCDR(1,14257055,1,1,2) [2025-01-15 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257055', 'tblTempUsageDetail_20' ) start [2025-01-15 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257055', 'tblTempUsageDetail_20' ) end [2025-01-15 23:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:43:23] Production.INFO: ==5683== Releasing lock... [2025-01-15 23:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:43:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-15 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:44:05 [end_date_ymd] => 2025-01-15 23:44:05 [RateCDR] => 1 ) [2025-01-15 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:44:05' and `end` < '2025-01-15 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:44:18] Production.INFO: count ==566 [2025-01-15 23:44:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:44:05 - End Time 2025-01-15 23:44:05 [2025-01-15 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257060', 'tblTempUsageDetail_20' ) start [2025-01-15 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257060', 'tblTempUsageDetail_20' ) end [2025-01-15 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257060', 'tblTempVendorCDR_20' ) start [2025-01-15 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257060', 'tblTempVendorCDR_20' ) end [2025-01-15 23:44:18] Production.INFO: ProcessCDR(1,14257060,1,1,2) [2025-01-15 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257060', 'tblTempUsageDetail_20' ) start [2025-01-15 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257060', 'tblTempUsageDetail_20' ) end [2025-01-15 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:44:21] Production.INFO: ==5789== Releasing lock... [2025-01-15 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-15 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:45:05 [end_date_ymd] => 2025-01-15 23:45:05 [RateCDR] => 1 ) [2025-01-15 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:45:05' and `end` < '2025-01-15 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:45:18] Production.INFO: count ==566 [2025-01-15 23:45:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:45:05 - End Time 2025-01-15 23:45:05 [2025-01-15 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257065', 'tblTempUsageDetail_20' ) start [2025-01-15 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257065', 'tblTempUsageDetail_20' ) end [2025-01-15 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257065', 'tblTempVendorCDR_20' ) start [2025-01-15 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257065', 'tblTempVendorCDR_20' ) end [2025-01-15 23:45:18] Production.INFO: ProcessCDR(1,14257065,1,1,2) [2025-01-15 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257065', 'tblTempUsageDetail_20' ) start [2025-01-15 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257065', 'tblTempUsageDetail_20' ) end [2025-01-15 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:45:21] Production.INFO: ==5894== Releasing lock... [2025-01-15 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:45:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-15 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:46:05 [end_date_ymd] => 2025-01-15 23:46:05 [RateCDR] => 1 ) [2025-01-15 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:46:05' and `end` < '2025-01-15 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:46:18] Production.INFO: count ==567 [2025-01-15 23:46:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:46:05 - End Time 2025-01-15 23:46:05 [2025-01-15 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257070', 'tblTempUsageDetail_20' ) start [2025-01-15 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257070', 'tblTempUsageDetail_20' ) end [2025-01-15 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257070', 'tblTempVendorCDR_20' ) start [2025-01-15 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257070', 'tblTempVendorCDR_20' ) end [2025-01-15 23:46:18] Production.INFO: ProcessCDR(1,14257070,1,1,2) [2025-01-15 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257070', 'tblTempUsageDetail_20' ) start [2025-01-15 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257070', 'tblTempUsageDetail_20' ) end [2025-01-15 23:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:46:23] Production.INFO: ==5999== Releasing lock... [2025-01-15 23:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:46:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:47:05 [end_date_ymd] => 2025-01-15 23:47:05 [RateCDR] => 1 ) [2025-01-15 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:47:05' and `end` < '2025-01-15 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:47:18] Production.INFO: count ==569 [2025-01-15 23:47:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:47:05 - End Time 2025-01-15 23:47:05 [2025-01-15 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257075', 'tblTempUsageDetail_20' ) start [2025-01-15 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257075', 'tblTempUsageDetail_20' ) end [2025-01-15 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257075', 'tblTempVendorCDR_20' ) start [2025-01-15 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257075', 'tblTempVendorCDR_20' ) end [2025-01-15 23:47:18] Production.INFO: ProcessCDR(1,14257075,1,1,2) [2025-01-15 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257075', 'tblTempUsageDetail_20' ) start [2025-01-15 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257075', 'tblTempUsageDetail_20' ) end [2025-01-15 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:47:22] Production.INFO: ==6103== Releasing lock... [2025-01-15 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:47:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-15 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:48:05 [end_date_ymd] => 2025-01-15 23:48:05 [RateCDR] => 1 ) [2025-01-15 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:48:05' and `end` < '2025-01-15 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:48:17] Production.INFO: count ==569 [2025-01-15 23:48:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:48:05 - End Time 2025-01-15 23:48:05 [2025-01-15 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257080', 'tblTempUsageDetail_20' ) start [2025-01-15 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257080', 'tblTempUsageDetail_20' ) end [2025-01-15 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257080', 'tblTempVendorCDR_20' ) start [2025-01-15 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257080', 'tblTempVendorCDR_20' ) end [2025-01-15 23:48:17] Production.INFO: ProcessCDR(1,14257080,1,1,2) [2025-01-15 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257080', 'tblTempUsageDetail_20' ) start [2025-01-15 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257080', 'tblTempUsageDetail_20' ) end [2025-01-15 23:48:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:48:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:48:20] Production.INFO: ==6171== Releasing lock... [2025-01-15 23:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:48:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-15 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:49:05 [end_date_ymd] => 2025-01-15 23:49:05 [RateCDR] => 1 ) [2025-01-15 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:49:05' and `end` < '2025-01-15 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:49:19] Production.INFO: count ==569 [2025-01-15 23:49:19] Production.ERROR: pbx CDR StartTime 2025-01-15 20:49:05 - End Time 2025-01-15 23:49:05 [2025-01-15 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257085', 'tblTempUsageDetail_20' ) start [2025-01-15 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257085', 'tblTempUsageDetail_20' ) end [2025-01-15 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257085', 'tblTempVendorCDR_20' ) start [2025-01-15 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257085', 'tblTempVendorCDR_20' ) end [2025-01-15 23:49:19] Production.INFO: ProcessCDR(1,14257085,1,1,2) [2025-01-15 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257085', 'tblTempUsageDetail_20' ) start [2025-01-15 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257085', 'tblTempUsageDetail_20' ) end [2025-01-15 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:49:22] Production.INFO: ==6244== Releasing lock... [2025-01-15 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:49:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-15 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:50:05 [end_date_ymd] => 2025-01-15 23:50:05 [RateCDR] => 1 ) [2025-01-15 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:50:05' and `end` < '2025-01-15 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:50:18] Production.INFO: count ==572 [2025-01-15 23:50:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:50:05 - End Time 2025-01-15 23:50:05 [2025-01-15 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257091', 'tblTempUsageDetail_20' ) start [2025-01-15 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257091', 'tblTempUsageDetail_20' ) end [2025-01-15 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257091', 'tblTempVendorCDR_20' ) start [2025-01-15 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257091', 'tblTempVendorCDR_20' ) end [2025-01-15 23:50:18] Production.INFO: ProcessCDR(1,14257091,1,1,2) [2025-01-15 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257091', 'tblTempUsageDetail_20' ) start [2025-01-15 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257091', 'tblTempUsageDetail_20' ) end [2025-01-15 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:50:22] Production.INFO: ==6315== Releasing lock... [2025-01-15 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:50:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-15 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:51:05 [end_date_ymd] => 2025-01-15 23:51:05 [RateCDR] => 1 ) [2025-01-15 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:51:05' and `end` < '2025-01-15 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:51:17] Production.INFO: count ==579 [2025-01-15 23:51:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:51:05 - End Time 2025-01-15 23:51:05 [2025-01-15 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257096', 'tblTempUsageDetail_20' ) start [2025-01-15 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257096', 'tblTempUsageDetail_20' ) end [2025-01-15 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257096', 'tblTempVendorCDR_20' ) start [2025-01-15 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257096', 'tblTempVendorCDR_20' ) end [2025-01-15 23:51:17] Production.INFO: ProcessCDR(1,14257096,1,1,2) [2025-01-15 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257096', 'tblTempUsageDetail_20' ) start [2025-01-15 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257096', 'tblTempUsageDetail_20' ) end [2025-01-15 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:51:22] Production.INFO: ==6390== Releasing lock... [2025-01-15 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:51:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:52:05 [end_date_ymd] => 2025-01-15 23:52:05 [RateCDR] => 1 ) [2025-01-15 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:52:05' and `end` < '2025-01-15 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:52:18] Production.INFO: count ==579 [2025-01-15 23:52:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:52:05 - End Time 2025-01-15 23:52:05 [2025-01-15 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257101', 'tblTempUsageDetail_20' ) start [2025-01-15 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257101', 'tblTempUsageDetail_20' ) end [2025-01-15 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257101', 'tblTempVendorCDR_20' ) start [2025-01-15 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257101', 'tblTempVendorCDR_20' ) end [2025-01-15 23:52:18] Production.INFO: ProcessCDR(1,14257101,1,1,2) [2025-01-15 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257101', 'tblTempUsageDetail_20' ) start [2025-01-15 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257101', 'tblTempUsageDetail_20' ) end [2025-01-15 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:52:21] Production.INFO: ==6463== Releasing lock... [2025-01-15 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:52:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:53:05 [end_date_ymd] => 2025-01-15 23:53:05 [RateCDR] => 1 ) [2025-01-15 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:53:05' and `end` < '2025-01-15 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:53:18] Production.INFO: count ==578 [2025-01-15 23:53:18] Production.ERROR: pbx CDR StartTime 2025-01-15 20:53:05 - End Time 2025-01-15 23:53:05 [2025-01-15 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257106', 'tblTempUsageDetail_20' ) start [2025-01-15 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257106', 'tblTempUsageDetail_20' ) end [2025-01-15 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257106', 'tblTempVendorCDR_20' ) start [2025-01-15 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257106', 'tblTempVendorCDR_20' ) end [2025-01-15 23:53:18] Production.INFO: ProcessCDR(1,14257106,1,1,2) [2025-01-15 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257106', 'tblTempUsageDetail_20' ) start [2025-01-15 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257106', 'tblTempUsageDetail_20' ) end [2025-01-15 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:53:21] Production.INFO: ==6533== Releasing lock... [2025-01-15 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:53:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:54:05 [end_date_ymd] => 2025-01-15 23:54:05 [RateCDR] => 1 ) [2025-01-15 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:54:05' and `end` < '2025-01-15 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:54:17] Production.INFO: count ==578 [2025-01-15 23:54:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:54:05 - End Time 2025-01-15 23:54:05 [2025-01-15 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257111', 'tblTempUsageDetail_20' ) start [2025-01-15 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257111', 'tblTempUsageDetail_20' ) end [2025-01-15 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257111', 'tblTempVendorCDR_20' ) start [2025-01-15 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257111', 'tblTempVendorCDR_20' ) end [2025-01-15 23:54:17] Production.INFO: ProcessCDR(1,14257111,1,1,2) [2025-01-15 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257111', 'tblTempUsageDetail_20' ) start [2025-01-15 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257111', 'tblTempUsageDetail_20' ) end [2025-01-15 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:54:22] Production.INFO: ==6648== Releasing lock... [2025-01-15 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:54:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:55:05 [end_date_ymd] => 2025-01-15 23:55:05 [RateCDR] => 1 ) [2025-01-15 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:55:05' and `end` < '2025-01-15 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:55:17] Production.INFO: count ==579 [2025-01-15 23:55:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:55:05 - End Time 2025-01-15 23:55:05 [2025-01-15 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257116', 'tblTempUsageDetail_20' ) start [2025-01-15 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257116', 'tblTempUsageDetail_20' ) end [2025-01-15 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257116', 'tblTempVendorCDR_20' ) start [2025-01-15 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257116', 'tblTempVendorCDR_20' ) end [2025-01-15 23:55:17] Production.INFO: ProcessCDR(1,14257116,1,1,2) [2025-01-15 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257116', 'tblTempUsageDetail_20' ) start [2025-01-15 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257116', 'tblTempUsageDetail_20' ) end [2025-01-15 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:55:22] Production.INFO: ==6721== Releasing lock... [2025-01-15 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:55:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:56:05 [end_date_ymd] => 2025-01-15 23:56:05 [RateCDR] => 1 ) [2025-01-15 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:56:05' and `end` < '2025-01-15 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:56:18] Production.INFO: count ==576 [2025-01-15 23:56:19] Production.ERROR: pbx CDR StartTime 2025-01-15 20:56:05 - End Time 2025-01-15 23:56:05 [2025-01-15 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257121', 'tblTempUsageDetail_20' ) start [2025-01-15 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257121', 'tblTempUsageDetail_20' ) end [2025-01-15 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257121', 'tblTempVendorCDR_20' ) start [2025-01-15 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257121', 'tblTempVendorCDR_20' ) end [2025-01-15 23:56:19] Production.INFO: ProcessCDR(1,14257121,1,1,2) [2025-01-15 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257121', 'tblTempUsageDetail_20' ) start [2025-01-15 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257121', 'tblTempUsageDetail_20' ) end [2025-01-15 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:56:22] Production.INFO: ==6794== Releasing lock... [2025-01-15 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:56:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:57:04 [end_date_ymd] => 2025-01-15 23:57:04 [RateCDR] => 1 ) [2025-01-15 23:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:57:04' and `end` < '2025-01-15 23:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:57:17] Production.INFO: count ==576 [2025-01-15 23:57:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:57:04 - End Time 2025-01-15 23:57:04 [2025-01-15 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257126', 'tblTempUsageDetail_20' ) start [2025-01-15 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257126', 'tblTempUsageDetail_20' ) end [2025-01-15 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257126', 'tblTempVendorCDR_20' ) start [2025-01-15 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257126', 'tblTempVendorCDR_20' ) end [2025-01-15 23:57:17] Production.INFO: ProcessCDR(1,14257126,1,1,2) [2025-01-15 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257126', 'tblTempUsageDetail_20' ) start [2025-01-15 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257126', 'tblTempUsageDetail_20' ) end [2025-01-15 23:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:57:20] Production.INFO: ==6864== Releasing lock... [2025-01-15 23:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:57:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:58:05 [end_date_ymd] => 2025-01-15 23:58:05 [RateCDR] => 1 ) [2025-01-15 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:58:05' and `end` < '2025-01-15 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:58:17] Production.INFO: count ==576 [2025-01-15 23:58:17] Production.ERROR: pbx CDR StartTime 2025-01-15 20:58:05 - End Time 2025-01-15 23:58:05 [2025-01-15 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257131', 'tblTempUsageDetail_20' ) start [2025-01-15 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257131', 'tblTempUsageDetail_20' ) end [2025-01-15 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257131', 'tblTempVendorCDR_20' ) start [2025-01-15 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257131', 'tblTempVendorCDR_20' ) end [2025-01-15 23:58:17] Production.INFO: ProcessCDR(1,14257131,1,1,2) [2025-01-15 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257131', 'tblTempUsageDetail_20' ) start [2025-01-15 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257131', 'tblTempUsageDetail_20' ) end [2025-01-15 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:58:21] Production.INFO: ==6933== Releasing lock... [2025-01-15 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:58:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-15 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-15 20:59:04 [end_date_ymd] => 2025-01-15 23:59:04 [RateCDR] => 1 ) [2025-01-15 23:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-15 20:59:04' and `end` < '2025-01-15 23:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-15 23:59:19] Production.INFO: count ==578 [2025-01-15 23:59:19] Production.ERROR: pbx CDR StartTime 2025-01-15 20:59:04 - End Time 2025-01-15 23:59:04 [2025-01-15 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-15 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257136', 'tblTempUsageDetail_20' ) start [2025-01-15 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14257136', 'tblTempUsageDetail_20' ) end [2025-01-15 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257136', 'tblTempVendorCDR_20' ) start [2025-01-15 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14257136', 'tblTempVendorCDR_20' ) end [2025-01-15 23:59:19] Production.INFO: ProcessCDR(1,14257136,1,1,2) [2025-01-15 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14257136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14257136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-15 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14257136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14257136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-15 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257136', 'tblTempUsageDetail_20' ) start [2025-01-15 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14257136', 'tblTempUsageDetail_20' ) end [2025-01-15 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-15 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-15 23:59:22] Production.INFO: ==7006== Releasing lock... [2025-01-15 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-15 23:59:22] Production.INFO: 31.75 MB #Memory Used#